where to add the sidebar.php
-
Hey
I started to design a basic template layout.
It already got some working pages (index.php category.php single.php footer.php)…
When I try to devide the sidebar section from my pages
(the sidebar is currently located in a div in every page that I use)
I copy the sidebar div from the pages and paste it to a new page sidebar.php.
As I may think I call that page (sidebar.php) from its original position in the main page (index.php)
like I doo with the header.php and footer.php
<?php get_sidebar() ?>
but th e template stucks…
I also see that in other templates I go over to learn they call the sidebar.php at the bottom of the index.php page just before the get_footer()…
Can someone help me clear that mess?PEACE
- The topic ‘where to add the sidebar.php’ is closed to new replies.