WordPress.org

Ready to get started?Download WordPress

Forums

Leaf
[resolved] Sidebar for front page not showing (5 posts)

  1. wigglebutt
    Member
    Posted 1 year ago #

    Hi Brad,

    I'm trying to have a different sidebar on the front page as on the other pages. I have populated the 'homepage sidebar' with a subset of widgets that is on the main sidebar, however my main sidebar keeps showing up on the front page.

    my skeleton site: http://parkpack.juliac.com

    I have downloaded a plugin that allows me to remove plugins from the sidebar depending on what page I'm on, so I know I can do that... it would just be cleaner (I think) for me to just use the homepage sidebar if I can.

    Do I need to do anything to activate that bar somehow?

    Thank you!
    Julia

  2. bradthomas127
    Member
    Theme Author

    Posted 1 year ago #

    Hi Julia, I need to fix that in the sidebar description, The Home Page sidebar only works on the default Home Page with the slider. You would need to use a plugin.

  3. wigglebutt
    Member
    Posted 1 year ago #

    Ok. No problem. I think I'm just too literal.

    Thank you, Brad.
    /j.

  4. webmystery
    Member
    Posted 9 months ago #

    I was confused by that too, even though it says "default" now. I found that it only works when you have "Your latest Posts" set as the home page in your reading settings, not when you have a static page set as your home page. Other than that I like this theme a lot so far.

  5. webmystery
    Member
    Posted 9 months ago #

    Hacked it. In my child theme, in page.php I replaced
    <?php get_sidebar(); ?>

    with

    <?php // conditional home page sidebar
    if (is_front_page() && is_active_sidebar( 'sidebar-home' ) ) :
    			get_sidebar( 'home' );
    		else:
    	get_sidebar();
    endif;
    ?>

    ...because I think it will be more confusing to other users besides me to use a plugin for a separate non-default home page sidebar. I'd rather fix it this way than explain it to everybody.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic