Forums

Sidebar on all pages (4 posts)

  1. gametimeaudio
    Member
    Posted 3 years ago #

    my site is http://www.gametimeaudio.com.

    Right now my sidebar only shows up on my home page. I would like it to show up on all of my pages. I have messed around with the code a little bit but with no luck. Help! Thanks!

  2. spstieng
    Member
    Posted 3 years ago #

    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.

  3. ginntonic
    Member
    Posted 3 years ago #

    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!

  4. gametimeaudio
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic