Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/* Add this code to Design -> Custom CSS */
.arch-style {
/* add your styles here */
}
// Add this code to Settings -> Advanced -> Code Injection -> Footer
<script>
(function () {
window.addEventListener("load", function () {
var navLinks = document.querySelectorAll("header a, footer a,a");
var getActiveLink = navLinks.forEach((item) => {
if (item.href === window.location.href) {
item.classList.add("arch-style");
console.log(item);
}
});
});
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.