Mini-Sidebar for Home Page Only
-
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
-
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.
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,
NaazBeyond what I said above also do this, open
sidebar-browse.phpand 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 ?>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
Actually change it to:
<?php if ( !is_single() ) { // Disable or Enable Mini-Sidebar ?>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
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'; }Hello,
Thanks for the continues support. Its perfect.. Exactly the way i want..
Many Thanks once again.
Naaz
The topic ‘Mini-Sidebar for Home Page Only’ is closed to new replies.
