How can I remove the Best Selling option from my collection sort options?

Solved

How can I remove the Best Selling option from my collection sort options?

Nancy_OMalley
Excursionist
25 0 3

I would like to remove the Best Selling Option from my sort by.  I've tried a bunch of different ways but I either get an error or no change at all.  Here is the coding where i believe the change needs to be made in:

            <div class="collection__sort__option-wrapper" data-collection-sort-options>
              <div class="collection__sort__options">
                <ul class="collection__filter-tags collection__filter-tags--default" collection-sort-by="{{ sort_by }}">
                  {%- for option in sort_options -%}
                    <li class="collection__filter-tag">
                      <input class="collection__sort__input" type="radio" name="sort_by_bar" value="{{ option.value }}" id="filter-bar-{{ option.name | handle | append: option.value | handle | append: section.id }}" data-input-sort{% if option.value == sort_by %} checked{% endif %}>
                      <label class="collection__sort__button" for="filter-bar-{{ option.name | handle | append: option.value | handle | append: section.id }}" tabindex="0">
                        {{- option.name -}}
                      </label>
                    </li>
                  {%- endfor -%}
                </ul>

                <noscript>
                  <button type="submit" class="btn btn--primary btn--solid">{{ 'collection.filters.sort_button' | t }}</button>
                </noscript>
              </div>
            </div>
          </div>{%- endif -%}

Thank you in advance

Accepted Solution (1)
Made4uo-Ribe
Shopify Partner
10036 2387 3013

This is an accepted solution.

Thanks for the info, do you mean remove the Best Selling right?

Made4uoRibe_0-1699823276142.png

Check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

#CollectionStickyBar > div.collection__sort-bar > div > div > ul > li:nth-child(2) > label {
    display: none;
}

 

  • And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.

View solution in original post

Replies 5 (5)

Made4uo-Ribe
Shopify Partner
10036 2387 3013

Hi @Nancy_OMalley 

I know how to remove it but using css. If your intested, you can share your store URL. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Nancy_OMalley
Excursionist
25 0 3

Hi!

 

Thanks for replying 🙂

It's https://injewels.net 

Made4uo-Ribe
Shopify Partner
10036 2387 3013

This is an accepted solution.

Thanks for the info, do you mean remove the Best Selling right?

Made4uoRibe_0-1699823276142.png

Check this one. 

  • From your Shopify admin dashboard, click on "Online Store" and then "Themes".
  • Find the theme that you want to edit and click on "Actions" and then "Edit code".
  • In the "Assets" folder, click on "base.css, style.css or theme.css" file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

 

#CollectionStickyBar > div.collection__sort-bar > div > div > ul > li:nth-child(2) > label {
    display: none;
}

 

  • And Save. 

 

Please don't forget to Like and Mark Solution to the post that helped you. Thanks!

If this fixed your issue, Likes and Accept as Solution are highly appreciated. Coffee tips fuel my dedication.
Get experienced Shopify developers at affordable rates—visit Made4Uo.com for a quick quote!
Need THEME UPDATES but have custom codes? No worries, for an affordable price.
Nancy_OMalley
Excursionist
25 0 3

You're magical 🙂  Thank you SOOOO much!

Legend
Excursionist
15 0 6

Is there a way to edit the sort tag labels?

eg. 'Date, new to old' update to 'Latest'