How to remove these items?

Solved
Highlighted
New Member
3 0 0

Originally we had planned on doing online ordering for a food delivery service, but after opening up a brick and mortar location, we have decided to halt online ordering for now and want the ecommerce features disabled.  I am using the Minimalist theme and was wondering how to remove the items circled in the image.  Any help would be greatly appreciated!sshhv.jpg

0 Likes
Excursionist
16 3 4

@koopakidd ,

 

For you to remove the Login / Create account link. You have to go to SETTINGS > CHECKOUT  and make the ACCOUNTS DISABLE under customer accounts. But that will only remove the login and create account link.

 

You might also want to remove or comment out the whole thing on your header.liquid under sections folder of your theme.

 

screenshot-mark-day.myshopify.com-2019.09.17-04_30_14.png

 

          {% if shop.customer_accounts_enabled %}
            <ul class="header-bar__module header-bar__module--list">
              {% if customer %}
                <li>
                  <a href="/account">{{ 'layout.customer.account' | t }}</a>
                </li>
                <li>
                  {{ 'layout.customer.log_out' | t | customer_logout_link }}
                </li>
              {% else %}
                <li>
                  {{ 'layout.customer.log_in' | t | customer_login_link }}
                </li>
                <li>{{ 'layout.customer.or' | t }}</li>
                <li>
                  {{ 'layout.customer.create_account' | t | customer_register_link }}
                </li>
              {% endif %}
            </ul>
          {% endif %}
0 Likes
New Member
3 0 0

Thank you so much!  This certainly helped.  Now I just need to find out how to remove the cart icon.  Is that as simple as the first edit?

0 Likes

Success.

Excursionist
16 3 4

Hi @koopakidd ,

 

Yes, that's easy but i suggest hide the icon using CSS instead. Get the class name "header-bar__cart-icon" and hide it on CSS. Or if you will remove the code and put it on another template or area. Code must be like this one on your header.liquid

 

          <div class="header-bar__module">
            <span class="header-bar__sep" aria-hidden="true"></span>
            <a href="/cart" class="cart-page-link">
              <span class="icon icon-cart header-bar__cart-icon" aria-hidden="true"></span>
            </a>
          </div>

          <div class="header-bar__module">
            <a href="/cart" class="cart-page-link">
              {{ 'layout.cart.title' | t }}{% unless cart.item_count == 0 %}:{% endunless %}
              <span class="cart-count header-bar__cart-count{% if cart.item_count == 0 %} hidden-count{% endif %}">{{ cart.item_count }}</span>
            </a>
          </div>
0 Likes
New Member
3 0 0

Soooooo helpful!  Thank you so much Mark!  :-)

0 Likes