• There are two checkboxes related to displaying the sidebar. One is “Check this box to show the sidebar on the frontpage” and the other is “Check this box to show the sidebar on pages.”

    Is there a way to get the sidebar to show up on every page except the frontpage?

Viewing 15 replies - 1 through 15 (of 20 total)
  • Theme Author Carolina Nymark

    (@poena)

    Well, checking this box: Check this box to show the sidebar on pages.
    should not show a sidebar on the frontpage,
    only on actual page items.
    If it is, then we have another bug ;p

    Thread Starter AprilD

    (@aprild)

    Then I guess this is a bug report. Sorry to be the bearer of bad news.

    Theme Author Carolina Nymark

    (@poena)

    But the other checkbox is unchecked right?
    Are you using a static front page?

    Thread Starter AprilD

    (@aprild)

    I’m using a static front page, and the other box is unchecked, yes.

    Theme Author Carolina Nymark

    (@poena)

    Then that is why. It’s more of a missing functionality then. I will add it with the next update.

    Open functions.php and find function aaron_no_sidebars($classes) on about line 260ish.

    The section that starts as “if ( is_front_page() && “
    needs to be replaced with:

    if ( is_front_page() && get_theme_mod('aaron_front_sidebar') ==""  || is_page() && get_theme_mod('aaron_show_sidebar_on_pages')=="" || is_front_page() && get_theme_mod('aaron_show_sidebar_on_pages')=="" || ! is_active_sidebar( 'sidebar-1' ) ) {
    	$classes[] = 'no-sidebar';
    }

    Thread Starter AprilD

    (@aprild)

    I’ll give that a shot when I’m at home. Thanks!

    Theme Author Carolina Nymark

    (@poena)

    Ignore the above…

    Instead, in sidebar.php, add this code:

    if ( is_front_page() && is_page() && get_theme_mod('aaron_front_sidebar')===""){
    return;
    }

    above the other if ( is_front_page()…

    Thread Starter AprilD

    (@aprild)

    This works in the live preview, but not actually on the site. I cleared cache and cookies and reloaded and it was now showing on the title page but *not* the blog page. Maybe there’s a misnamed variable in there somewhere?

    i guess you have name clash in your CSS codes , i suggest you to set different parts for your css codes , it seems that there is a class in your main css that has the same name as a class in another css (name clash), i had just the same problem in my website here , so i changed some class name in css and my problem solved.

    Thread Starter AprilD

    (@aprild)

    I’m not using any custom CSS, though.

    Theme Author Carolina Nymark

    (@poena)

    No the sidebar is not hidden with css. In the right conditions it shouldn’t load at all *scratches head*.

    Theme Author Carolina Nymark

    (@poena)

    What do you mean by title page?

    For me “blog page” is the page chosen to display the latest posts.

    Theme Author Carolina Nymark

    (@poena)

    I have submitted an update.
    The new code for sidebar.php is here:
    https://themes.svn.www.ads-software.com/aaron/2.0/sidebar.php

    Thread Starter AprilD

    (@aprild)

    Using the Static Front Page menu, I have set the Front Page to a page I’ve named Welcome. My Posts page is a page called Blog. Sorry for the ambiguity. As of this morning, sidebars aren’t showing up anywhere when I use the “Check this box to show the sidebar on pages” but will show up on the front page (and nowhere else) if I use the “Check this box to show the sidebar on the frontpage” box.

    I can’t submit php updates to my blog while I’m at work (I don’t have access to FTP to go in and replace the php files with backups if necessary) so I’ll give your updated code a whirl when I get home.

    Thanks for your hard work on this, by the way, I really love this theme and can’t wait for it to be up and running.

    Thread Starter AprilD

    (@aprild)

    I tried the new code. I’m still having trouble. It will only display the sidebar on the front page.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Sidebar displaying on all pages’ is closed to new replies.