pics in footer do not scale

Hello,

i have a footer-layout 1/4 1/4 1/4 1/4.
When i put a pic inside one of these colums, the pic doesn't stays inside the 1/4, it shows in original size.
The text grows and shrinks with the columns, but the pic not.

In Visual Composer e.g. a pic (attribute "FULL") is always shrinking to the size of the column.
In footer this doesn't work. But i need this, because i can't scale the pic beforehand, because it will not be responsive then on other devices.

Can you help me?
Thanks!
Best Regards
Steffen

Comments

  • Hi Steffen,

    did you set scale-with-grid class for those pictures?
  • Hi,

    no, i use a shortcode from "WP Video Lightbox" in one of the footer columns.
    This shortcode plays a youtube-video and the picture is only the placeholder.
    I use a text-widget in footer with this argument:

    [video_lightbox_youtube video_id="YOUTUBE_VIDEO_ID" width="960" height="720" anchor="/wp-content/uploads/2016/12/play_video.jpg"]

    The result is a picture showing in the footer and if you click on that picture a modal window is opening and playing the youtube-video.
    The problem is, that this placeholder-pic is not scaling with the grid.
    How can i solve this problem?

    Thanks!
  • You need to add scale-with-grid class for the images if you want them to be responsive.
  • ok.
    How would this complete text-widget look like then?
    What do i have to write in there in total?

    [video_lightbox_youtube video_id="YOUTUBE_VIDEO_ID" width="960"
    height="720" anchor="/wp-content/uploads/2016/12/play_video.jpg"]

    + what ??
  • The first thing you need to check if this shortcode works with class attribute so you can add the following attribute into above shortcode:
    class="scale-with-grid"
    But if this shortcode does not have such attribute, you need to contact with shortcode author and ask him how to make shortcode images responsive.
  • Unfortunately it doesn't work.  :-(
    I will contact the author.

    Do you maybe know a way for your theme to put a RESPONSIVE pic into one footer column that is only a placeholder and with click on it a youtube-video is being played in a modal / popup window?
  • You can try to use something like below in Text widget:
    <a href="LINK-TO-YT-VIDEO" rel="prettyphoto"><img src="PATH-TO-IMAGE" class="scale-with-grid"></a>
  • Thanks! It works!  :-)
Sign In or Register to comment.
This website uses cookies

We use cookies to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners who may combine it with other information that you’ve provided to them or that they’ve collected from your use of their services.

Cookies are small text files that can be used by websites to make a user's experience more efficient.

The law states that we can store cookies on your device if they are strictly necessary for the operation of this site. For all other types of cookies we need your permission. This means that cookies which are categorized as necessary, are processed based on GDPR Art. 6 (1) (f). All other cookies, meaning those from the categories preferences and marketing, are processed based on GDPR Art. 6 (1) (a) GDPR.

This site uses different types of cookies. Some cookies are placed by third party services that appear on our pages.

You can at any time change or withdraw your consent from the Cookie Declaration on our website.

Learn more about who we are, how you can contact us and how we process personal data in our Privacy Policy.

Please state your consent ID and date when you contact us regarding your consent.