I would like to be able to click the links on some of my drop down items in the menu of my website without removing the drop down feature of the titles.
These include the titles: Fødevareindustrien, Veterinærsektoren, Fiskefabrikker, Institutioner. (See screenshot)
I would like it so that it is only the arrow that enables the drop down menu, whereas clicking on the text itself redirects the visitor to that exact page. That way, i can both have links on the drop down menu but also use the function of a drop down menu.
In the left-hand sidebar, click on the “Sections” folder to expand it.
Look for the file that controls your website’s navigation menu. It might be named something like header.liquid or navigation.liquid. Click on the file to open the file editor.
Find the section of code that generates the dropdown menu items you mentioned: “Fødevareindustrien, Veterinærsektoren, Fiskefabrikker, Institutioner.”
Modify the code for those dropdown items to include both a link and the dropdown functionality. Here’s an example:
- Title of Dropdown Item
- Link to Exact Page
- Another Dropdown Item
I don’t have the file “navigation.liquid” and in my “header.liquid” there is nowhere i can actually see the titles of the dropdown menus. Could it be located in a different file?