Add to basket alignment

Home Forums Jevelin Theme Add to basket alignment

Home Forums Jevelin Theme Add to basket alignment

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    RESOLVED Posts
  • pzl
    Participant

    Hello Support,

    I am having a bit of issue with the alignment of the “Add to basket” button. As you can see in the screenshot, it is at an awkward position. How can we shift it to either beside quantity or below it? Thank you.

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

    Hi @pzl,

     

    I hope you are well today and thank you for your question.

     

    Could you please share the page URL from your site where it is displaying so that I can troubleshoot it?

     

    Best regards,
    Shufflehound team

    pzl
    Participant

    This is the URL. Thank you so much!

    You can achieve it by adding the following CSS code in the Custom CSS code option of your theme on the below path.

     

    Admin Area -> Appearance -> Theme Settings -> Custom Code -> CSS Code

     

    .woocommerce #page-container div.product form.cart div.quantity {
        margin: 0;
    }
    
    .woocommerce #page-container div.product form.cart .button {
        margin-top: 30px;
    }

    pzl
    Participant

    That works for the first product. However, I noticed the the CSS does not work for the other products. Is there a universal code that I can use? Here are the other two products in the shop at the moment. Thank you so much.

    Please replace the above shared CSS code as below.

     

    .woocommerce #page-container div.product form.cart .button {
        position: absolute;
        bottom: 0;
        left: 130px;
    }
    
    .woocommerce div.product form.cart {
        position: relative;
    }

    pzl
    Participant

    The code looks fine on desktop. However, it is not working well on mobile. Please see attached image.

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

    Solution for this topic

    Please use the below CSS code instead of above.

     

    @media (min-width: 400px){
    .woocommerce #page-container div.product form.cart .button {
        position: absolute;
        bottom: 0;
        left: 130px;
    }
    
    .woocommerce div.product form.cart {
        position: relative;
    }
    }
    
    .woocommerce #page-container div.product form.cart .button {
        clear: both;
        float: none !important;
        margin-top: 25px;
    }

    pzl
    Participant

    Great! This works perfectly. Thank you so much!

    You are always welcome here 🙂

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