Tagged: x
-
AuthorPosts
-
November 25, 2016 at 1:36 am #1270251
axirrParticipantHello X-Force,
Great work per usual. I love X-Theme!
Scenario: I have a left-fixed Navbar that collapses down to a top-fixed navbar on mobile. On mobile, you click on any of the links in the submenu and it loads a new page, no biggie…
However, it also reloads the top-fixed navbar each time.
Is it possible to
a) have the navbar not reload with each menu click or page navigation, and stay active at the top….
b) have the top-fixed navbar collapse after someone clicks a menu item to laod a new page?
Thanks for any assistance!
November 25, 2016 at 1:37 am #1270252
axirrParticipantThis reply has been marked as private.November 25, 2016 at 2:03 am #1270286
Paul RModeratorHi,
Thanks for writing in!
a. This is a normal behaviour as for every click your site is loading another page.
b. You can add this under Custom > Edit Global Javascript in the Customizer.
jQuery(function($) { $( ".x-navbar .mobile .x-nav li a" ).on( "click", function() { $('.x-btn-navbar').click(); }); });Hope that helps.
November 25, 2016 at 11:53 pm #1271276
axirrParticipantThanks for the reply on B.
For A, my navbar IS refreshing upon every page clicked and I would like it not to.
November 26, 2016 at 12:08 am #1271280
Rue NelModeratorHello There,
Tha navbar is part of the header of each pages. Every time you load a page, the header will also be included. Regretfully, your particular customization request is outside the scope of our support as this is not related to an issue with the theme and instead has to do with your customization of it. As such, you will need to investigate this particular issue on your own or seek help from a developer should you not feel comfortable making these changes yourself. If you have any further questions about the theme, we are more than happy to provide you with assistance on these inquiries.
Thank you for your understanding.
November 26, 2016 at 7:08 am #1271431
axirrParticipantUnderstandable. Thank you hmfor the help and clarifying! Much appreciated!
November 26, 2016 at 8:33 am #1271460
axirrParticipantSee link for profile page: http://www.scottnicklos.com/profile/
Click on the Navbar and the three submenu items under “Profile.”
They anchor to certain spots on the page, but clicking them does not collapse the navbar. How can i modify what was provided above so those will collapse on clicking as well?
Thanks!
November 26, 2016 at 3:59 pm #1271671
RadModeratorHi there,
Please change the above code to this
jQuery(function($) { $( ".x-navbar .mobile .sub-menu li a" ).off('click touchend touchstart').on( "click", function() { $('.x-btn-navbar').click(); }); });Thanks!
November 26, 2016 at 7:59 pm #1271826
axirrParticipantThank you!
November 26, 2016 at 10:25 pm #1271880
Rue NelModeratorYou’re welcome! We’re happy to help you out.
If you need anything else we can help you with, don’t hesitate to open another thread. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1270251 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
