Tagged: x
-
AuthorPosts
-
June 8, 2016 at 3:02 pm #1032574
katevandyParticipantI’m using Integrity and have set my navbar to be Fixed Left for the entire site.
However, I’m creating a landing page that uses a full-screen revolution slider above the masthead and would like the menu bar to appear at the bottom of the screen. I found other topics that cover how to do this, but only if the global setting of the navbar is set to Top.
Is there a way to change the position of the navbar to the top on the home page only? (Or another way to approach the look I want?). I’d still like the rest of my pages to have the navbar fixed on the left.
Thanks!
June 8, 2016 at 9:38 pm #1033197
Rue NelModeratorHello There,
Thanks for writing in!
Is there a way to change the position of the navbar to the top on the home page only
Yes, there is! What you are trying to accomplish requires a template customization, we would like to suggest that you use a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.Once you already have your child theme active and ready, please insert this following code in your child theme’s functions.php file.
// Custom Navbar Positioning // Always fixed top on the homepage // ============================================================================= function x_get_navbar_positioning() { if ( x_is_one_page_navigation() ) { $output = 'fixed-top'; } else { if( is_home() || is_front_page() ) { $output = 'fixed-top'; } else { $output = x_get_option( 'x_navbar_positioning' ); } } //var_dump($output); return $output; } add_action( 'customize_save', 'x_get_navbar_positioning', 35 ); // =============================================================================We would loved to know if this has work for you. Thank you.
June 13, 2016 at 5:47 pm #1040434
katevandyParticipantThank you so much! You guys have unparalleled customer service. Really appreciate it.
June 13, 2016 at 11:55 pm #1040755
Prasant RaiModeratorYou’re welcome! We are just glad we were able to help you out.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1032574 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
