Sidebar elements mysteriously appearing in main body
-
Hi Agentevolution,
I notified you yesterday of a problem I was encountering where sidebar elements such as ‘search bar’ and lists of my site’s pages, archive etc were appearing in the main body of the single-listing and multiple-listings views. It was even more mysterious since I do not use a sidebar in my theme and you told that your templates also do not use sidebars.
I discovered the solution and I wanted to share it with you and the community.
Included in my WordPress installation is a folder called wp-includes/theme-compat and this includes files such as sidebar.php which apparently are there to help compatibility with older themes. For some reason the wp-listings plugin was causing this sidebar.php file to be included. Since my theme is a modern one and I have no need for the code within this sidebar.php file I replaced the standard one with a blank sidebar.php file..and this resolved the issue – it was necessary to have a sidebar.php file of some sort as there is a ‘require’ statement in another file
- The topic ‘Sidebar elements mysteriously appearing in main body’ is closed to new replies.