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

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

1 Like

Hi @Nancy_OMalley

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

Hi!

Thanks for replying :slightly_smiling_face:

It’s https://injewels.net

1 Like

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

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!

1 Like

You’re magical :slightly_smiling_face: Thank you SOOOO much!

1 Like

Is there a way to edit the sort tag labels?

eg. ‘Date, new to old’ update to ‘Latest

1 Like