Data at Your Fingertips: Explore Our New Reporting and Statistical Capabilities By Ryan Ashbrook 19 hours ago
Ocean West Posted April 19, 2018 Share Posted April 19, 2018 so i have a block that is a nav bar that will just display a category like https://invisioncommunity.com/forums/forum/307-community-led-resources/ i am trying to figure out how to make the nav bar sticky so when they click on that button / tab after it redirects to the url the button becomes the active one ? Link to comment Share on other sites More sharing options...
Ocean West Posted April 22, 2018 Author Share Posted April 22, 2018 any suggestions? Link to comment Share on other sites More sharing options...
opentype Posted April 22, 2018 Share Posted April 22, 2018 How without seeing the code that generates it? Link to comment Share on other sites More sharing options...
Ocean West Posted April 22, 2018 Author Share Posted April 22, 2018 this is the custom block. nav.txt Link to comment Share on other sites More sharing options...
opentype Posted April 22, 2018 Share Posted April 22, 2018 The first obvious thing is that the block contains a full HTML page, which shouldn’t be done, unless everything is in an iframe. That needs correction. If you want to stick with this manual coding approach, you could simply read the URL of the page and then add an “active” CSS class for the entry that matches. A cleaner approach would be do redo it as plugin. Then the forums would simple be selected and the active state can be read directly from the forum ID. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.