Okay
  Public Ticket #2962612
Shop sidebar filters at top on mobile phone
Closed

Comments

  •  2
    IvanJimenez75 started the conversation

    Hi!

    I need the filters that placed in the "shop sidebar" to be located at the top on mobile devices, just before the products.

    Kind regards!

  • [deleted] replied

    Hi Ivan,

    Hmm, I don't know if this is possible or not but I will try to check if that is possible with a CSS change.

    Please share your WordPress credentials, because I need to login to your site and test this live.

    To include your credentials click the Insert Credentials button in the editor toolbar (see how) so your reply will be private.

    Thanks!

  •   IvanJimenez75 replied privately
  • [deleted] replied

    Hi Ivan,

    Please add the code below to your Custom CSS area:

    @media screen and (max-width: 769px) {
        .woocommerce .products-archive--has-sidebar.products-archive--sidebar-left .products-archive--products {
            order: 2;
        }
    }

    Have a nice day!

  •  2
    IvanJimenez75 replied

    It works! Thank you!!

    Just one more question although I don't know if it´s woocommerce bugging.

    When I try to set those two filters in two columns in the "shop sidebar" widget, they dissapear. Could you help me?

    Kind regards!

  • [deleted] replied

    Hi Ivan,

    Can you please try to be very specific about the question and explain it more to me so I can easily understand you and give you the proper answer.

    If you record a video of the problem that would be a huge help.

    Thanks!

  •  2
    IvanJimenez75 replied

    Hi Ylli!

    I have tried to organize these "shop sidebar" filters in two columns by converting them into dropdown tabs in order to put them next to the main filter (next step), but the filters disappear. I hope image 1 is clarifying.
    In case it can't be done easily or that may affect the aesthetics of the theme, could we reduce the list's row height?  (image 2).

    Regards!

  • [deleted] replied

    Hi Ivan,

    This is a customization question and support doesn't offer customization services as we wrote on our support homepage and on this area.

    I will help you to decrease their padding (reduce row height).

    Please add the code below to your Custom CSS area:

    @media screen and (max-width: 991px) {
        .yith-woocommerce-ajax-product-filter li {
            padding: 10px 0 !important;
        }
        .yith-woocommerce-ajax-product-filter {
            margin-bottom: 0px;
        }
        .products-archive--has-sidebar {
            margin-top: 0px !important;
        }
    }
    Have a nice day!

  •  2
    IvanJimenez75 replied

    Hi Ylli,

    Absolutely understood! Thank you very much for your code, it works perfectly!!

    Regarding this topic, I'm sending you one last request for help to reduce margins and font size. Hope the image helps to explain my question.

    Let me know.

    Regards


  • [deleted] replied

    Hi Ivan,

    Please just add this CSS code to your Custom CSS area:

    @media screen and (max-width: 991px) {
        .oxygen-top-menu>.wrapper>.main-menu-top {
            margin-bottom: 10px;
        }
        
        .oxygen-top-menu>.wrapper>.main {
            padding-top: 10px;
        }
        .sidebar ul li a {
            font-size: 12px;
        }
    }

    * if any of the codes doesn't work, then add the !important rule.

    Have a nice day!

  •  2
    IvanJimenez75 replied

    Hi Ylli!

    Thank you so much for your answer!

    There is a part that we have solved and another that is pending. Please, find attached an image detailing what is fixed and what is pending.

    On the other hand, I would like to ask you how to reduce the font size on the product category pages. I also attach an image of this page https://www.helenaherrero.com/todos-los-accesorios/pendientes/

    Regards!

  • [deleted] replied

    Hi Ivan,

    I would not recommend you to remove the spaces between items and also to make fonts much smaller because that will create a more ugly design and Google also has some standards such as how much space should be and font sizes for mobile devices so users will not have difficulties to press the text in touch devices.

    Anyway if you prefer to decrease the space from that dropdown you can add this CSS code to your Custom CSS area:

    .woocommerce-ordering--dropdown.form-group.sort {
        margin-bottom: 5px;
    }

    As for your last question, here is the CSS code:

    .woocommerce .products .type-product .product-description .woocommerce-loop-product__title {
        margin: 0;
        font-size: 15px;
    }

    Have a nice day!

  •  2
    IvanJimenez75 replied

    Hi Ylli,

    Agree, and sorry cause I was not precise.

    What I would like to reduce is the font size of woocommerce-result-count, as you can see in the attached image.

    Regarding the last question, I'm afraid there has been a misunderstanding as well.

    I do not want to reduce the font size of the product description, but the woocommerce-loop-category__title that we can find on the product category pages like this https://www.helenaherrero.com/todos-los-accesorios/pendientes/

    Regards

  • [deleted] replied

    Hi Ivan,

    Your questions are customization questions and support doesn't offer customization services as we wrote on our support homepage and on this area.

    Please see this video how you can find the selector to make changes: https://d.pr/v/dtrfdc

    Thanks for your understanding.

    P.S: If you're looking for professional help in this matter, there's always someone available for such tasks on Codeable or WP Kraken website. Pricing and timeline are always straightforward there and that's the main reason for recommending those services.

  •  2
    IvanJimenez75 replied

    Thank you for your help Ylli!

  • [deleted] replied

    Happy to hear thatsmile.png

    Will mark this ticket as solved from here.