Child theme template problem when filename.php changed
-
Hi all,
I am creating a basic child theme for Twenty Eleven and wanted the existing sidebar-page.php as my home page WITH a full width Easy Rotator plugin positioned under the main navigation on this page.
I added the side-bar.php file to the child theme, added the plugin into the PHP, created a div in the CSS file and it works fine.
Obviously the side-bar.php in the child then made every page on the site using this template display the slider plugin.
So I changed the FILE name to side-bar-child.php but the styling of the page content seems to revert to the sample page template styling, i.e, it introduced a large left boarder which pushed the widgets under the content.
If i change the file name back to what it was, it works fine.
What am I missing here? How has changing the file name messed up the styling of the content?
See the home page here: https://greenhat-test.co.uk/, and see also the side bar template on the main navigation. They both use the EXACTLY the same code on the PHP but have different file names?
Many thanks for any assistance!
Sealyspeak
- The topic ‘Child theme template problem when filename.php changed’ is closed to new replies.