• Resolved designsmag

    (@designsmag)


    Hello,

    I would like to enable the MiniSidebar for home page only. Is there anyone who can support me. I would like to disable it for all the inner and internal pages.

    Many Thanks

Viewing 8 replies - 1 through 8 (of 8 total)
  • Theme Author acosmin

    (@acosmin)

    You can try this, open sidebar-browse.php, find:

    <?php if ( !get_theme_mod( 'ac_disable_minisidebar' ) ) { // Disable or Enable Mini-Sidebar ?>

    Change it with:

    <?php if ( !get_theme_mod( 'ac_disable_minisidebar' ) || !is_single() ) { // Disable or Enable Mini-Sidebar ?>

    Also open single.php, find:

    <section class="container<?php ac_mini_disabled() ?> clearfix">

    Change it with:

    <section class="container mini-disabled clearfix">

    I haven’t tried it, so I don’t know if it really works.

    Thread Starter designsmag

    (@designsmag)

    Hello Theme Author,

    I have tried the way you mentioned but it didn’t work. No i need to replace the second <section class=”container mini-disabled clearfix”> in contact-single.php as well.

    Waiting for your response.

    Many Thanks,
    Naaz

    Theme Author acosmin

    (@acosmin)

    Beyond what I said above also do this, open sidebar-browse.php and find:

    <?php if ( !get_theme_mod( 'ac_disable_minisidebar' ) ) { // Disable or Enable Mini-Sidebar ?>

    Change it to:

    <?php if ( !get_theme_mod( 'ac_disable_minisidebar' ) || !is_single() ) { // Disable or Enable Mini-Sidebar ?>

    Thread Starter designsmag

    (@designsmag)

    Hello,

    This is what i did. if you go to my website http://www.designsmag.com you will see the changes. AT this moment the sidebar is enable in the theme customization. If i uncheck this option the home page didn’t work find. the right sidebar move to the bottom.

    Please advise at your earliest

    Naaz

    Theme Author acosmin

    (@acosmin)

    Actually change it to:

    <?php if ( !is_single() ) { // Disable or Enable Mini-Sidebar ?>

    Thread Starter designsmag

    (@designsmag)

    Hello Author,

    I am so sorry to keep disturbing you but that too didn’t work. Currently i uncheck the “Disable Mini-Sidebar”. Hope page appears fine with the mini-sidebar but the inner pages still shows the mini-sidebar.

    When i check “Disable Mini-Sidebar” then inner pages appears fine but home page right sidebar move to the the bottom.

    Thanks for your support and waiting for your help again.

    Naaz

    Theme Author acosmin

    (@acosmin)

    Try opening functions.php, find these lines:

    if ( $is_enabled ) {
        $class = ' mini-disabled';
    }

    Change to:

    if ( $is_enabled || is_single() || is_page() ) {
        $class = ' mini-disabled';
    }
    Thread Starter designsmag

    (@designsmag)

    Hello,

    Thanks for the continues support. Its perfect.. Exactly the way i want..

    Many Thanks once again.

    Naaz

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Mini-Sidebar for Home Page Only’ is closed to new replies.