Tagged: x
-
AuthorPosts
-
April 27, 2016 at 9:46 pm #903363
MadenyParticipantHi, I looked everywhere in the forum about how to fixed left “x-one-page-navigation” as my homepage. so can you please help fix that.
again how to have a post description with essential grid?
Best regards
April 28, 2016 at 8:30 am #904090
ZeshanMemberHi there @madeny,
Thanks for writing in!
By default, when the One Page Navigation is activated, navbar is set to fixed top. If you want it to use default navbar position selection from the Customizer, you can follow this workaround:
Because this requires a template change, I’d advise that you setup 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.
After that, add following code in your child theme’s functions.php file:
// Get Navbar Positioning // ============================================================================= if ( ! function_exists( 'x_get_navbar_positioning' ) ) : function x_get_navbar_positioning() { $output = x_get_option( 'x_navbar_positioning', 'static-top' ); return $output; } add_action( 'customize_save', 'x_get_navbar_positioning' ); endif;Thank you!
April 28, 2016 at 11:24 am #904341
MadenyParticipantSorry but still not working!!
April 28, 2016 at 11:25 am #904346
MadenyParticipantThis reply has been marked as private.April 28, 2016 at 1:16 pm #904485
MadenyParticipantNever mind!! my goals was to have different navbar background color, but I just figure it out by targeting page id.
The easier way to get page “id or post” is to set your permalink to first option from top. and you you’ll see “http:yourdomain.com/?p=123” i.e 123 is your page id.
Thanks for the support.
April 29, 2016 at 1:22 am #905230
Paul RModeratorHi,
Glad you were able to figure it out.
Have a great day!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-903363 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
