Viewing 3 replies - 1 through 3 (of 3 total)
  • Take the code that displays the sidebar on the front page, and add it to page.php, single.php and any other templates you are using.

    If there is a lot of code, put it in a include file, and just include the code on the pages.

    If your sidebar is in a theme file called “get_sidebar()”, as it should be for ease-of-use, just add this tag to your single.php, index.php, category/search &c&c:
    <?php get_sidebar(); ?>
    If there isn’t a sidebar.php file, make one in your favorite text editor and save it as sidebar.php.

    N.B. If you name it anything else, sidebr.php, thesidebar.php, dancing_bears.php, &c, the WordPress tag get_sidebar won’t work. You’ll need to use an “include” function at that point.

    Save yourself the hassle; name it sidebar.

    Cheers!

    Thread Starter gametimeaudio

    (@gametimeaudio)

    so it looks like the <?php get_sidebar(); ?> is already in the pages i want it on, but it still doesnt show up

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sidebar on all pages’ is closed to new replies.