Waving Portfolio
[resolved] Gallery images in pop-up window too large (2 posts)

  1. czeller
    Posted 1 year ago #

    Once in pop-up window, the gallery images are very large, and it's also not possible to scroll down the page in the popup. Why are the gallery images not tiny thumbnails, like in your demo?

    Here's my portfolio item shortcode:
    <div style="display: none;">

    [gallery ids="853,784,787"]



  2. aelbuni
    Plugin Author

    Posted 1 year ago #

    Again this is due to the same styling reason you have.

    I recommend to remove the negative constraints your theme have defined over the whole images in style.css (Line 243):

    img {
    max-width: 100%;
    height: auto;
    width: auto;

    And if you benefit from this line of style, try to give your targeted images a class name and then assign these styles only for the images tagged with your chosen class name. For instance:

    <img src="???" class="img-auto">

    img.img-auto {
    max-width: 100%;
    height: auto;
    width: auto;

    Again applying a style to a specific HTML tag like <img> is a bad practice, and it will cause you more problems in the future.

    And it is even forbidding for plugin developers to override a specific HTML tag style, such as (span, img, div, & etc), because this will mess the whole plugin users websites. So even for me I can't fix this issue from my end, because if I do, other users websites will start to collapse.

    I know that my answer was verbose :)

    But I hope this will help.

    Thanks for asking,

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Waving Portfolio
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic