Where can I edit the source code for main page links?

Can anyone tell me where I can edit the following code? This was copied from the source code on my main page but I can’t seem to find it, and therefore where to edit it, in my “edit code” sheets. I am wanting to change the links.

<div id="menu-drawer" class="menu-drawer motion-reduce" tabindex="-1">
            <div class="menu-drawer__inner-container">
              <div class="menu-drawer__navigation-container">
                <nav class="menu-drawer__navigation">
                  <ul class="menu-drawer__menu list-menu" role="list"><li><a href="/" class="menu-drawer__menu-item list-menu__item link link--text focus-inset menu-drawer__menu-item--active" aria-current="page">                            Home
                          </a></li><li><a href="/collections/all" class="menu-drawer__menu-item list-menu__item link link--text focus-inset">                            Catalog
                          </a></li><li><a href="/pages/contact" class="menu-drawer__menu-item list-menu__item link link--text focus-inset">                            Contact
                          </a></li><li><a href="/pages/wholesale" class="menu-drawer__menu-item list-menu__item link link--text focus-inset">                            Wholesale
                          </a></li><li><a href="https://www-cascadebodyjewelry-store.myshopify.com/account/login" class="menu-drawer__menu-item list-menu__item link link--text focus-inset">                            Login
                          </a></li></ul>
                </nav>
                <div class="menu-drawer__utility-links"><a href="/account" class="menu-drawer__account link focus-inset h5">
                      <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" role="presentation" class="icon icon-account" fill="none" viewBox="0 0 18 19">
  <path fill-rule="evenodd" clip-rule="evenodd" d="M6 4.5a3 3 0 116 0 3 3 0 01-6 0zm3-4a4 4 0 100 8 4 4 0 000-8zm5.58 12.15c1.12.82 1.83 2.24 1.91 4.85H1.51c.08-2.6.79-4.03 1.9-4.85C4.66 11.75 6.5 11.5 9 11.5s4.35.26 5.58 1.15zM9 10.5c-2.5 0-4.65.24-6.17 1.35C1.27 12.98.5 14.93.5 18v.5h17V18c0-3.07-.77-5.02-2.33-6.15-1.52-1.1-3.67-1.35-6.17-1.35z" fill="currentColor">
</svg>

Try your header.liquid file (doesn’t have to be same name, depends on the theme)

@cascadetrouble - this looks like header code, please go to your theme and find header/head liuid file, you should have all this code in it

Thank you for the reply. I can edit the links to the top icons (search, account, cart), but not the posted code with links for main menu buttons isn’t in that file. At least not for my theme (Dawn).

@cascadetrouble it’d be much easier for you to edit if it wasn’t hardcoded, use link_list for the menu, but feel free to share your store URL, that might help in locating the file :slightly_smiling_face:

@cascadetrouble - did you copy this code from browser? actually you can edit menu from navigation option

I did copy the code from “view page source” in my browser. I need to do more than you’re allowed to in navigation. I am able to link a page there and in that page create a button that goes where I want it, but I’m trying to bypass the extra page and have the menu button just go straight to where I want it if the customer is logged in, or to log in page if not. I believe you can’t really do any coding in the “link” box in navigation. Is that correct?

I’m not sure how to use or where to find link_list. I don’t have a file by that name anywhere.

https://www-cascadebodyjewelry-store.myshopify.com/

@cascadetrouble - yes no coding in link box, you need to find some other way to do what you want

Thats what I thought, and why I am looking for where I can edit the posted code. I agree that it should be in my header file, but it’s not. It has to be somewhere though, right?

@cascadetrouble - actually no, because your header has liquid code and it is converted into html when you load your site, so no direct html code

this is done to make site dynamic

1 Like

So, you’re saying I have no direct control over what my menu buttons do? I have to link to a page under navigation and then use a button on that page?

@cascadetrouble - yes no direct control, but yes you can add required page in menu, this will be visible to all