Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #197738

    Hi guys,

    I have disabled the Page Sidebar Navigation in the Theme Options, since I don’t want the sidebar to show by default for the main part of the site. But for one part, I would like it to show. I could do this by using widgets and add a custom menu, but I’m worried that other publicists might not grasp all the steps they need to perform, when creating a new page for the page to be visible in the tree. Also, the custom menu and widget option, does not behave exactly as your page sidebar navigation (with nodes opening and closing).

    Do you have an idea on how I could solve this? I would still like to use your avia_sidebar_menu, but I would like it to show only for pages that use the template page “Members”. Is that possible? I would be ever so greatful for some feedback, please. :-)

    Kind regards,
    Katarina

    #197934

    Hi KattaC!

    You can add this on your custom.css or Quick CSS to remove it from other pages.

    .widget_pages, .widget_categories, .widget_archive {
    display: none !important;
    }

    Then inspect the page that you want the sidebar navigation to show. You can use the Google Chrome Inspect Element. Look for the unique css body class.

    On the example above, the page’s unique selector is .page-id-2251. We can use it to alter the display of the sidebar navigation on that specific page.

    .page-id-2251 .widget_pages, .page-id-2251 .widget_categories, .page-id-2251 .widget_archive  {
    display: block !important;
    }

    Make sure that this is at the bottom of the first css code provided.

    Cheers!
    Ismael

    #197995

    Good idea, didn’t think about just making changes to the CSS. Works like a charm with some minor adjustments (nothing in my rendered HTML that says “widget_pages”).

    .inner_sidebar nav.widget_nav_menu {
    display: none !important;
    }
    .page-template-template-member-php .inner_sidebar nav.widget_nav_menu {
    display: block !important;
    }

    Thanks!
    Katarina

Viewing 3 posts - 1 through 3 (of 3 total)

The topic ‘DIsplay sidebar with navigation – but not by default’ is closed to new replies.