Header Navigation Menu not working in Craft theme

Header Navigation Menu not working in Craft theme

Cthom1964
Excursionist
37 0 4

I've been making a lot of design changes and have somehow messed something up and now my header nav menu doesn't work.

At first I was trying to make a homepage banner clickable and anchored to a collection beneath it. I used the following code for that and it seemed to work until recently. Now the banner is only clickable on the upper 2/3 of the image and no longer clicks to the anchor below. The only changes I made since installing that prior to it not working recently was a countdown timer in my announcement bar. 


{% if section.settings.link != blank %}
<a href="anchor1"></a> <a class="custom-link"
href="#shopify-section-template--17389677281469__collection_list_7jiGwi"
{% if section.settings.new_tab %}target="_blank"{% endif %}
></a>
<style>
.image-banner-section{
position: relative;
}

So I guess that's my first issue... the banner is not working how I want anymore. I want it fully clickable and anchored to the collection below it.

 

Issue 2) A couple days ago I made a landing page and received help on hiding the header and footer. That code is below. That seemed to have worked ok, except that same pesky countdown timer still showed up. I can live with it till Christmas. However, today I noticed that none of the nav menu tabs are clicking through to their collections. I have checked everything in my navigation and it seems fine. I apparently have messed up my code resulting in a lost navigation.

 

{% if page.url == '/pages/lmsl-and-aegenda' %} <style> footer, header { display: none !important;; } </style> {% endif %}

And

{% if page.url == '/pages/landing-page' %} <style> footer, header { display: none !important;; } </style> {% endif %}

 

Please, I need some help here. thank you!

Replies 0 (0)