Home Forums Basel support forum Default Sorting

Default Sorting

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #7384

    cg
    Participant

    Hi,

    Hi can I disable the woocommerce default “Sort by” from the shop page?

    Thanks.

    #7385

    cg
    Participant

    I found this:

    .woocommerce-result-count, .woocommerce-ordering {
    display: none;
    }

    But the “Sort By” box still shows. How can I disable/hide it?

    Thanks.

    #7387

    Artem Temos
    Keymaster

    Hello,

    Thank you for your question.

    You can disable this widget by placing the following snippet to the functions.php file in your child theme.

    add_filter( 'basel_use_custom_order_widget', '__return_false', 10 );

    Kind Regards
    XTemos Studio

    #7396

    cg
    Participant

    1. I am not a developer, where exactly do I need to add the code in the functions.php?

    2. Next time I update the theme, do I need to add the code again?

    Thanks.

    #7401

    Artem Temos
    Keymaster

    You need to place it at the end of this file in CHILD THEME. And you will not lose this code after parent theme update in the future.

    Regards

    #7403

    cg
    Participant

    Done! I added it at the end of the CHILD theme functions.php. Now, it is showing next to the filters (see image attached). How do I disable/hide that?

    Thanks.

    Attachments:
    You must be logged in to view attached files.
    #7408

    Artem Temos
    Keymaster

    Add this to the custom CSS also

    .shop-loop-head .woocommerce-ordering { display:none!important;}

    #7419

    cg
    Participant

    The “Showing all 8 results” text is still showing.

    #7422

    Artem Temos
    Keymaster

    Add this part also

    .shop-loop-head .woocommerce-result-count { display:none!important;}

    #7434

    cg
    Participant

    Perfect. Thanks.

    #7441

    Artem Temos
    Keymaster

    You are welcome!

Viewing 11 posts - 1 through 11 (of 11 total)