Tab Block – Changing anchor links
-
One thing that is really bothering my about this block is that we cannot change the anchor links of the tabs.
I have some links on the page outside of the Tab block that need to open specific tabs and they look really ugly, sitename.com/#uagb-tabs__tab0. I’ve used other plugins that allow you to change the name so the url isn’t so bad looking.
I’ve tried changing them via JS and Jquery, but it doesn’t seem to work.
This code (and every variation of it);
document.getElementById(“uagb-tabs__tab0”).setAttribute(“id”,”css-excel”);
just throws a “Cannot set properties of null error”, even when the code is set to run once everything is loaded. Strange thing is that it works in the console, just not in an external JS file.Is there any solution to this so we can have clean looking anchor links?
The topic ‘Tab Block – Changing anchor links’ is closed to new replies.