Wordpress custom theme issue (It shows the same theme on admin)

i migrated from a standard website to a wordpress theme, but after a day, when i try to login on wp-admin, it shows the theme and a lot of errors like "headers already sent" on pluggable.php.

How can i do to show my custom template without the admin site changes ?

Solutions

The "headers already sent" warning indicates that the error display settings you have on the new server are stricter.

Because the errors are being showed the website cannot redirect you correctly.

Add the following to wp-config:

error_reporting(E_NONE);
ini_set('display_errors', FALSE);

This should help overcome that problem.

Also you should not be outputting anything in your functions.php file because the admin area includes it because you may want to make a complex theme that adds admin menu buttons for theme-configurations, kind-of like a plug-in

Tags: Wordpress / Themes

Similar questions

Next page link shows same posts Wordpress
When I click next page, it goes to the next page (at least in the url it shows "www.url.com/?s=et&paged=2"), but it shows the same posts. What is wrong with my search? search.php http://pastebin.com/VXkpKqAS Thanks
Wordpress, page 2 shows the same posts as page 1
I am working on a premium that got its frontpage as a 'grid' . Here's what it looked like http://i.stack.imgur.com/Y392U.png Then I installed a plugin named: Blog Layout by WebLumia Infomatics to make my frontpage show up as a 'normal blog' and it now looks like this http://i.stack.imgur.com/qYBzG.png which is perfect. But when I click to page 2 to...
Wordpress Multiple Post Type Loop shows same results on every page
So I am using WordPress with an underscores theme. I used code from twenty fourteen's theme with pagination. This worked great when I only had one post type, but now I've made a loop that displays two post types and it works. But on every page its the same group of posts. Anything will help. I've tried a lot.
Wordpress shows wrong time on same configuration
I have identical configuration on both dev and prod servers. But in production wordpress shows me wrong utc time. It can't be plugin because it's a fresh installation of wordpress. I even tried to use production database and rsynced all files from production to development to keep everything identical, but still same problem. You can see my configu...
Wordpress pagination on static front page always shows same posts
I have a problem with pagination on my front page. I want to show all posts from a specific category and paginate them. Here is the code: } But all the time I have the same posts on different pages: domain.com/page/2/ etc. What I'm doing wrong? How to fix it? Thank you for any help.
Same theme name issue with wordpress repository theme
I created new theme with name for example XYZ. its good till now but the issue comes before few days. Wordpress repository has a theme with same name as my theme's name. Now the issue is when the updates comes for wordpress theme, the update notification is display for my themes also. So what can i do for this ? Thanks, Aezaz

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.