• hi. im wondering how i can add my sidebar to my single.php file and have it work properly. i tried to plug it in within the existing structure of the file, but i dont want to get too nuts with my experimentation. currently, that is the only format in my blog that doesnt have the sidebar visible.

    here is my blog…

    https://flyerflies.com/blogs/The_FlyerFly

    thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter TheFlyerFly

    (@theflyerfly)

    okay…just that fast, i managed to find a solution to add the sidebar in the right place on the single post page. but for some reason it is only showing a small portion of the entire sidebar layout. any ideas why this is?

    Check out if functions of sidebar which don’t show up in single post view (links, calender etc.) are defined by if is_home

    Thread Starter TheFlyerFly

    (@theflyerfly)

    it wouldnt appear as if those elements are being defined that way, but im no PHP expert thats for sure.

    il have to take a closer look…

    Thread Starter TheFlyerFly

    (@theflyerfly)

    got it…

    i just added is_single() to the conditions in the if statement. so now the line i edited looks like this…

    <?php /* If this is the frontpage */ if ( is_home() || is_page() || is_single() ) { ?>
    <?php get_links_list(_name); ?>

    Hi- I just wanted to thank you both for this post. It resolved my exact same difficulty.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘how to add sidebar to single.php?’ is closed to new replies.