• Hi all,

    I am building a site and trying to get a right sidebar showing on the home screen, which is a blog page. No can do.

    I have tried adding the get_sidebar() call to the page template, but no luck. I also created a new template with that call and still no luck. I even created a new sidebar, registered it, and still no luck.

    Here is my code:

    <?php
    
    /*Template Name: Blog With Sidebar*/
    
    get_header();
    
    get_template_part('loop-post');
    
    get_footer();
    
    get_sidebar('sidebar');
    
    ?>

    A site with a sidebar that works (same theme):
    https://www.xoverland.com

    My Site:
    https://www.kidultimate.com

    Any help would be greatly appreciated!

    Michael

Viewing 5 replies - 1 through 5 (of 5 total)
  • Looks like the problem is that your sidebar is outside the closing HTML tag:

    </body>
    </html><div id="sidebar">
       <ul>
             </ul>
    </div>

    Do you really want the sidebar below the footer?

    Thread Starter gurneyhm

    (@gurneyhm)

    Hi there,

    Thank you for the response. No I want it on the right hand side. Thank you, this gives me something to go on. I’ll let you know if I fix it.

    I’m going to try to put it in like this above the other code and see what happens.

    Thread Starter gurneyhm

    (@gurneyhm)

    OK, some progress. I was able to get the sidebar to show up with the following code:

    <?php
    /*Template Name: Blog With Sidebar*/
    get_header();
    get_template_part('loop-post');
    ?>
    
    <div class="sidebar">
    
    	<div class="sidebar-wrap"><?php get_template_part( 'sidebar-page' ); ?></div>
    
    </div>
    
    <p?php
    get_footer();
    get_sidebar('homepage');
    ?>

    However – it shows up at the bottom of the page instead of the right hand side. Can you help with this?

    Thank you!

    M

    your latest code has an error here:

    <p?php
    get_footer();
    get_sidebar('homepage');
    ?>

    and do follow the advice by @wpyogi to move the sidebar call to above the footer call.

    also possibly review:
    https://codex.www.ads-software.com/Theme_Development

    it might be a good idea to contact the developer of your theme for support;
    as your theme in not from https://www.ads-software.com/extend/themes/, it is not suported by this forum, apart from general suggestions.

    Thread Starter gurneyhm

    (@gurneyhm)

    Oh thank you for this. I didn’t know this was only for certain themes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Theme: Simon] Sidebar not showing on blog’ is closed to new replies.