New Landing How can we help? Themeforest Theme Support Neighborhood Getting rid of .woocommerce-ordering and .woocommerce-count-wrap on mobile view

Viewing 9 posts - 1 through 9 (of 9 total)
  • #196858
    MarieWorks
    Member
    Post count: 225

    Hi,

    I have tried to get rid of the the two elements shown in the screen shot (.woocommerce-ordering and .woocommerce-count-wrap) using the example code below:

    /*remove showing 24 products and view 24 etc at top of mobile shop pages*/
    @media only screen and (max-width: 979px)
    .woocommerce-ordering {
    display: none !important;
    }

    However it doesnt seem to working – for either .woocommerce-ordering OR .woocommerce-count-wrap – what am I doing wrong?

    Thanks,

    Chris

    Attachments:
    You must be logged in to view attached files.
    #196905
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Try the code below.

    @media only screen and (max-width: 979px){
     .woocommerce-shop-page .woocommerce-ordering, .woocommerce-shop-page .woocommerce-count-wrap {
      display: none;
    }
    }

    -Rui

    #196977
    MarieWorks
    Member
    Post count: 225

    Hi Rui,

    Thanks for sending this through – unfortunately no joy,

    I also tried adding the !important and still nothing, not sure why?

    thanks

    Chris

    #196982
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    It’s likely you have an error somewhere in your custom css which is causing everything below to not work. Please move the css to the top of your custom css

    – Kyle

    #196995
    MarieWorks
    Member
    Post count: 225

    Thanks Kyle – I have moved it to the top and it now seems to be working.

    I hadn’t noticed any of the other excerpts in our custom css not working on the site – so am wondering what the best way to find the error is ?

    thanks

    Chris

    #196999
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    You’ll just have to scan through until your find a mistake

    – Kyke

    #197002
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    It seems this piece of code, it’s missing 2 closing brackets.

    /*hide home instagram on mobile*/
    @media only screen and (max-width: 979px) {
    .homeinstagram {
    display:none;
    }
    
    /*shape filter for mobile shop*/
    @media only screen and (min-width: 979px) {
    .mobileshapetoggle {
    display:none!important;
    }

    replace it by this

    /*hide home instagram on mobile*/
    @media only screen and (max-width: 979px) {
    .homeinstagram {
    display:none;
    }
    }
    
    /*shape filter for mobile shop*/
    @media only screen and (min-width: 979px) {
    .mobileshapetoggle {
    display:none!important;
    }
    }
    

    -Rui

    #197015
    MarieWorks
    Member
    Post count: 225

    Amazing – thank you so much Kyle and Rui!

    Great support once again!

    Best,
    C

    #197017
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem 🙂

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register