BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › Remove Titlebar Menu For Homepage?
Tagged: Titlebar Menu
- This topic has 9 replies, 5 contibutors, and was last updated 8 years, 7 months ago by Anve S..
Question
October 16, 2015 at 6:44 pm #48885@iic007Hello, can someone please tell me how to remove the Titlebar Menu on the Homepage? I’m using a static page.
I tried the Hide/Show menu items per page plugin, but it only recognizes the buddypanel menu items to be able to hide.
I don’t us the buddypanel for the homepage so this is irrelevant.
Thanks
Answers
October 17, 2015 at 4:00 am #48894@
AnonymousHi @iic007, You can set condition in your header.php for Titlebar Menu
Try this,
<?php if(!is_home()): ?> // your menu code here <?php endif; ?>
Regards
PallaviOctober 17, 2015 at 2:22 pm #48989@iic007I don’t understand. What goes in for // your menu code here?
Also I only want to eliminate the titlebar menu from the homepage. Not all pages.
Thanks
October 18, 2015 at 2:17 am #49008@
AnonymousHi @iic007
you can wrap menu codes inside the conditional logiclike this
You can find it inside header.php close to line 94if(!(is_home() || is_front_page())): if ( !empty( $buddypanel_menu ) || !empty( $titlebar_menu ) ): ?> <!-- Navigation --> <div class="header-navigation"> <div id="header-menu"> <ul> <?php echo $buddypanel_menu . $titlebar_menu; ?> </ul> </div> <a href="#" class="responsive_btn"><i class="fa fa-align-justify"></i></a> </div> <?php endif; ?> <?php endif; ?>
Copy header.php inside the child theme and make your edits inside the child theme header.php
Regards
March 28, 2016 at 11:23 am #65644@bballamHi I want to also remove titlebar menu for homepage.
I only have 77 lines in my header.php file.
Please tell me exactly where to paste your code.March 28, 2016 at 11:34 am #65647@
AnonymousHi @bballam
You can add simple custom css code , it will hide the title bar for homepage
.home .header-navigation { display: none; }
Regards
Varun DubeyMarch 28, 2016 at 11:46 am #65654@bballamHi, I’ve tried that but it doesn’t remove the headers (which i’ve outlined in red pen in the images attached) How can i remove this for desktop and mobile?
March 29, 2016 at 4:33 am #65750@anveHi @bballam,
Try applying following css in custom css option of child theme.
@media screen and (min-width:481px){ .home-page #masthead { display: none; } .home #panels #right-panel { margin-top: 0!important; } } @media screen and (max-width:480px){ .home #mobile-header { display: none; } .home #inner-wrap { margin-top: 0; } }
Regards
AnveMarch 29, 2016 at 5:43 am #65760@bballamThanks that worked great!
March 29, 2016 at 6:40 am #65794
- The question ‘Remove Titlebar Menu For Homepage?’ is closed to new replies.