• Resolved JCKnoell

    (@jcknoell)


    Okay, so there are a thousand posts just like this one, but I don’t understand any of them, and even though I’ve tried them anyway, they’ve had no effect or they’ve completely broken my site. (even broke the back-end on one of them. Had to use my ftp to fix it.)

    I need to add my blog’s sidebar to my single post pages too. My blog’s <https://beta.cleantelligent.com/blog&gt; sidebar is different from the many other sidebars on my website, but I need the blog sidebar on the single posts. Right now, it’s calling a blank sidebar.

    Thank you. any help would be great.

Viewing 15 replies - 1 through 15 (of 33 total)
  • esmi

    (@esmi)

    What theme are you using? Where did you download it from?

    Thread Starter JCKnoell

    (@jcknoell)

    Sorry, forgot to put that. It’s the Twenty Eleven Theme with a customized child theme.

    esmi

    (@esmi)

    You should just be able to add <?php get_sidebar(); ?> to your child theme’s single.php file. Then you will probably need to start adding in some custom CSS to sort out the sidebar display on that page.

    Thread Starter JCKnoell

    (@jcknoell)

    I already added the “get sidebar” php and now it’s only calling a blank sidebar with the images from two other sidebars… randomly…

    If you look in the upper-left corner, you’ll see two gradients.
    https://beta.cleantelligent.com/best-practices/accountability-in-the-workplace#more-1794

    esmi

    (@esmi)

    it’s only calling a blank sidebar with the images from two other sidebars

    What 2 other sidebars? There’s only one sidebar in the parent theme. And what exactly are you adding to single.php?

    Thread Starter JCKnoell

    (@jcknoell)

    I added <?php get_sidebar(); ?> in the correct place (above the footer call) in my single.php.

    Now, if you look at a single post, the only thing you see where the sidebar should be are two little gradient images we use to blend the sidebar into the background of the html div.

    One of them is blue, and is the gradient used on sidebar-blog.php. This is the sidebar for the blog. You can see it by visiting https://www.cleantelligent.com/blog.

    The other one is a grey gradient and it used on the reat of the website. You can see this sidebar on any other page, such at https://www.cleantelligent.com/request-demo.

    All of the sidebars are located in the child theme, as far as I know.

    esmi

    (@esmi)

    I added <?php get_sidebar(); ?> in the correct place (above the footer call) in my single.php.

    That should work. Can you remove the other 2 sidebars from your child theme temporarily?

    Thread Starter JCKnoell

    (@jcknoell)

    remove them? How would I remove them temporarily?

    esmi

    (@esmi)

    Take them out of the child theme’s folder.

    Thread Starter JCKnoell

    (@jcknoell)

    Done… whoah… something’s weird… haha

    esmi

    (@esmi)

    What happened?

    Thread Starter JCKnoell

    (@jcknoell)

    It’s now showing a weird sidebar with items I’ve never even seen before… https://beta.cleantelligent.com/best-practices/accountability-in-the-workplace

    Thread Starter JCKnoell

    (@jcknoell)

    Okay, so I have <?php get_sidebar(); ?>
    Should I be specifying the blog sidebar there?

    Like <?php get_sidebar(‘blog’); ?> for example?

    esmi

    (@esmi)

    Are you running any custom queries/loops in your child theme?

    Thread Starter JCKnoell

    (@jcknoell)

    Hmm… I don’t know what that means… :S Sorry.

Viewing 15 replies - 1 through 15 (of 33 total)
  • The topic ‘Sidebar on single.php’ is closed to new replies.