Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #801151

    Hello,

    I have a query regarding the CSS of a single product page:
    example page

    i would like to get rid of the border and black padding of the main image. Essentially for it to look like it does in a :hover state.

    View post on imgur.com


    I can’t seem to find what the CSS class is?

    Also, bonus question, I would like to wrap the whole gallery (main image + thumbs) in a grey border (not the the individual elements) what would the CSS class be for that?

    Cheers,

    Itai

    #801157

    Hey Itai,

    Try adding this css code in Quick CSS (located in Enfold > General Styling):

    .single-product-main-image .images > a {
        border: 0 !important;
        padding: 0 !important;
    }

    Let us know if this helps :)

    Best regards,
    Nikko

    #801162

    Hi Nikko,

    No it doesn’t. :-(
    It also creates a little artifact below the lightbox button:

    View post on imgur.com

    #801301

    So now I got it to look like I want:

    .single-product-main-image .images a, div.images img {border: 0px!important; padding: 0px!important;}
    
    div.flex-viewport {margin-bottom: 2px!important;}
    
    .single-product .av_header_transparency + #main > .container_wrap_first {
        padding-top: 140px;
    }

    But that artifact is still there. Any idea what it is? It seems to be caused by the first CSS statement. If I put a padding-top of 4px or higher, it’s masked ?! It’s driving me crazy…

    • This reply was modified 7 years, 5 months ago by Itai.
    #801314

    Hi,

    Just add the follow custom CSS code:

      .emoji {
        display: none !important;
      }
    

    Best regards,
    John Torvik

    #801318

    Doesn’t work. No difference.
    ( What would an emoji be doing there anyway?)

    #801361

    Hi!

    If you view the page’s code, the image that you don’t want to see has the class “emoji”. This is why John’s code is like that.

    Please try this code instead:

    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:before {display:none;}

    This will remove the yellow square, but leave the magnifying glass. If you want to remove the magnifying glass as well, please use this instead:

    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {display:none;}

    Best regards,
    Sarah

    #801558

    Hi Sarah,

    Thanks those work but what I want is to keep the yellow square and remove the emoji.
    .emoji {display: none !important;} does not remove the emoji unfortunately.

    What should I use?

    Itai

    #801564

    Please try this instead:

    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger .emoji {display:none !important;}
    

    Best regards,
    Sarah

    #801572

    Well the yellow square is back…but so is the emoji ;-(
    I’ve updated my online enfold child css, you can see for yourself.

    Cheers,

    i

    #801670

    Ok,
    This is what I came up with, in case anyone is also struggling with this. Not perfect but it works
    I decided to show the magnifying glass on a hover:

    
    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger  {height: 1.5em;!important;}
    
    .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger:hover  {height: 6em;!important;}
    
    #801680

    Hi,

    Glad that you figured it out and thanks for sharing the solution that works for you, it would help a lot :)

    Best regards,
    Nikko

Viewing 12 posts - 1 through 12 (of 12 total)
  • You must be logged in to reply to this topic.