Support » Plugins » Hacks » woocommerce gallery

  • Hi there

    I was wondering if anyone could help me, as I am new to wordpress.

    This is my website when you click on the product the product is enlarged, however at the bottom there are some thumbnails when you hover over the enlarge picture. I want to remove it.

    I have tried the following code
    .pp_gallery {display:none;}

    But it does not work any help will be appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz


    .thumbnails {display: none;} will do it, but could cause undesirable side effects elsewhere in elements with the same class descriptor.

    Where it is placed will also have say on whether it works or not. It will work as inline element or page style, but involves template editing. Editing templates or other CSS files mean your change will be lost during an update. The best place for this is in a child theme, if it works. Sometimes adding !important will do the trick. Another approach is to start a new CSS file and include it with wp_enqueue_style() .

    I used that but then it removes the thumbnails on the page, I want to remove the thumbnails on hover only!

    Moderator bcworkz


    Ah, I see now. Sorry for my confusion. This isn’t a straight CSS solution, as javascript or probably jQuery is changing the visibility on the rollover event. You would need to find where in the script the event handler is assigned and comment it out.

    To confuse things, most of the script is minified, you will need to dig into the development version to find the code, make the change, then reference the altered file instead of the minified one on your template. You still would want to protect your changes as mentioned above.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘woocommerce gallery’ is closed to new replies.