Removing filter in shop - by SocialPepper

This topic has 6 replies, 3 voices, and was last updated 9 years ago ago by Jack Richardson

  • Avatar: SocialPepper
    SocialPepper
    Participant
    December 9, 2015 at 11:48

    Hi,

    I would like to remove the filter option in my shop (the filter stating: sort on newest, sort of price, etc.).

    I tried to use this code in my functions.php file in my child theme, but it did not do the trick:

    remove_action( ‘woocommerce_before_shop_loop’, ‘woocommerce_catalog_ordering’, 30 );

    How can I remove the filter from showing?

    Thank you.

    Regards,

    Richard

    Please, contact administrator
    for this information.
    5 Answers
    Avatar: Brian Johnson
    Brian Johnson
    Member
    December 9, 2015 at 13:06

    Hello

    You may hide it with following css:
    .filter-content{display:none;}

    Regards
    Brian Johnson

    Avatar: SocialPepper
    SocialPepper
    Participant
    December 9, 2015 at 14:29

    Hi Brian,

    Unfortunately that did not work. It is the filter you see on the page: http://protecht.nl/product-category/iphone-4-4s/

    Avatar: Brian Johnson
    Brian Johnson
    Member
    December 9, 2015 at 15:16

    Sorry.

    My mistake. Please add following code into the child-theme style.css:
    .filter-wrap{display:none!important;}

    Regards,
    Brian Johnson

    Avatar: SocialPepper
    SocialPepper
    Participant
    December 9, 2015 at 16:52

    Hi Brian,

    Thanks! It worked!

    Regards,

    Richard

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    December 9, 2015 at 17:35

    Hello,

    You’re welcome.

    Best regards,
    Jack Richardson.

  • Viewing 6 results - 1 through 6 (of 6 total)

The issue related to '‘Removing filter in shop’' has been successfully resolved, and the topic is now closed for further responses

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.