-
Posts
14 -
Joined
-
Last visited
Content Type
Forums
Gallery
Blogs
Events
Store
Downloads
Profiles
Posts posted by snorkelcookislands
-
-
@lahero Hey thanks for that, but it didn't work...
This is what I injected into the Code Injection Footer
<script>
(function()
{window.addEventListener("load", function () {
var tours = document.querySelector('[href="/book-a-tour"]');
tours.addEventListener("click", function () {
window.location = "https://snorkelcookislands.com/book-a-tour";
});
})}
)();
</script>Have I written something wrong here? Because the parent header "Tours" just links to the first link "Reef Snorkelling"
@RyanDejaegher Maybe you can help? 🙃
-
Code totally works for me!
On 12/19/2019 at 5:07 AM, tuanphan said:Add to Home > Design > Custom CSS
.header-nav-item a:hover { color: red !important; }
Is there a way to create a hover underline effect for navigation links in the header menu?
-
Thank you @RyanDejaegher How can input the page I would like the header to be linked to?
I would like it to be linked to this page https://www.snorkelcookislands.com/book-a-tour-bokun-products
-
On 5/15/2020 at 4:29 AM, tuanphan said:
You can use JavaScript to set event click for navigation folder title
Please help @tuanphanhttps://snorkelcookislands.com
I would really like to link the "tours" link to another page, can you please help with this?
Squarespace 7.1 - Linking navigation folder to first item in the folder
in Customize with code
Posted
@lahero Hey, I followed your instructions but it still didn't work.
I changed the code to:
<script>
(function()
{window.addEventListener("load", function () {
var tours = document.querySelector('[href="/folder"]');
tours.addEventListener("click", function () {
window.location = "https://snorkelcookislands.com/book-a-tour";
});
})}
)();
</script>
What am I doing wrong??