Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #1406992

    Hi,

    This is the website that I’m creating:

    EPTQ s300 1.1ml with Lidocaine

    How do I do the following?

    1. How do I make the button bigger and change the colour and styling?

    2. How do I add another ‘Add to Basket’ button on the page at the bottom?

    3. I also want to change the mobile view so only a maximum of 4 pictures are shown but they are reduced so all the important information is ‘above the fold’. Like how this company does it:

    #1407300

    Hey ballindigital,
    Thanks for your patience and the link to your site, to make the Add to Basket button lager and change it’s style you can try some css like this:

    #top.woocommerce-page .main_color .button[name=add-to-cart] {
    	 background-color: #ffd1ed;
    	 width: 200px;
    	 font-size: 16px;
    }

    Enfold_Support_2054.jpeg
    I’m not sure how you want to style the button, please explain further if you need more help with it.
    #2 where on the page do you want the second Add to Basket button, in the Description?
    #3 I don’t see a link to your example site, but even with only 4 images on mobile I don’t believe the info would be “above the fold” perhaps moving the images after the info on mobile would achieve what you would like? If so try this css:

    @media only screen and (max-width: 767px) { 
      #top.single-product .product {
      display: flex !important; 
      flex-wrap: wrap !important; 
      }
      #top.single-product .single-product-main-image {
          order: 2 !important; 
      }
      #top.single-product .single-product-summary {
          order: 1 !important; 
      }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1407376

    Thank you Mike,

    Number 1 works perfectly :)

    2. Just at the bottom of the page so after the additional information.

    3. Appreciate the suggestion but I feel that it is important to have the images showing first. Is there a way to show just two images side by side instead? Perhaps a slider if possible?

    This is the website that I was referring to.

    #1407568

    Hi,
    Thank you for your patience and the link to the page, Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px) { 
    #top.single-product .woocommerce-product-gallery .thumbnails a:nth-child(n+4) {
    	display: none;
    }
    }

    This will show one large image and three thumbnails on mobile so the product info also shows “above the fold”
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1408019

    Thank you for this.

    Ideally, I would like to have four small thumbnail images with two being displayed side by side in a grid of four.

    Is this possible?

    Also, if I just wanted to show the main image, is this the correct CSS code? Or is there a simpler way?

    @media only screen and (max-width: 767px) {
    #top.single-product .woocommerce-product-gallery .thumbnails a:nth-child(n+0) {
    display: none;
    }
    }

    #1408035

    Hi,
    Thank you for your patience but unfortunately I don’t see an easy way to create a grid of four on mobile, I recommend using your css to only show the main image, this looks like it’s working correctly.

    Best regards,
    Mike

    #1408036

    Thanks Mike – what about just showing the thumbnails and not the main image?

    #1408040

    Hi,
    Try this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px) { 
    #top.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > a {
    	display: none;
    }
    }

    Please ensure to copy the code from the forum and not an email notification so the symbols are not converted.
    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1408432

    Mike,

    Thank you so much.

    This is almost perfect – the last change I would like to make is for it to show just three thumbnails instead of all of them please..

    #1408462

    Hi,
    Try adding this CSS in your Enfold Theme Options ▸ General Styling ▸ Quick CSS field:

    @media only screen and (max-width: 767px) { 
    #top.single-product .woocommerce-product-gallery .thumbnails a:nth-child(n+4) {
    	display: none;
    }
    }

    After applying the css, please clear your browser cache and check.

    Best regards,
    Mike

    #1408533

    This actually shows the main image with thumbnails underneath?

    I was just looking to amend the previous code:

    @media only screen and (max-width: 767px) {
    #top.single-product .woocommerce-product-gallery .woocommerce-product-gallery__wrapper > a {
    display: none;
    }
    }

    To show only three thumbnails instead of all of them :)

    #1408558

    Hi,
    I believe that you misunderstood, I suggested adding the last snippet also, that is try using both together.

    Best regards,
    Mike

    #1408571

    Apologies Mike!

    This solution has worked perfectly.. You’re amazing!

    #1408597

    Hi ballindigital,

    I’m glad that Mike could help you :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Add more ‘Add to Basket’ buttons on product page and make button bigger.’ is closed to new replies.