Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Ocean West Posted April 19, 2018 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 ?
opentype Posted April 22, 2018 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.