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)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form