Remove "Log In" and "Create Account" from Narrative Theme

Trying to remove these two links (“Log In” and “Create Account”) from the drop down menu bar. Haven’t come across any previous discussions to help solve.

Thank you!!

www.byisabellaivory.com

Hi @iivory

Please go to your Themes > Edit code > Sections > Open header.liquid > find and comment out the below code


              {% if shop.customer_accounts_enabled %}
                {% if customer %}
                  - {% if customer.first_name != blank %}
                        {% capture first_name %}{{ customer.first_name }}{% endcapture %}
                        {{ 'layout.customer.logged_in_as_html' | t: first_name: first_name }}
                      {% else %}
                        {{ 'layout.customer.account' | t }}
                      {% endif %}
                  

                  - {{ 'layout.customer.log_out' | t }}
                  

                {% else %}
                  - {{ 'layout.customer.log_in' | t }}
                  

                  - {{ 'layout.customer.create_account' | t }}
                  

                {% endif %}
              {% endif %}
              {% for link in linklists[section.settings.secondary_navigation].links %}
                - {{ link.title }}
                
              {% endfor %}
            

Like this screenshot:

If you feel like my answer is helpful, please mark it as a SOLUTION. Let me know if you have any questions!

@iivory

can you try this code

  1. Go to Online Store->Theme->Edit code
  2. Asset->/theme.scss.liquid->paste below code at the bottom of the file.
.navigation__container ul + ul {
    display: none;
}