• omg

    (@ontramarketing)


    I am using the WordPress Gallery (NOT a plugin) on my website but when I view on a mobile device the gallery image is wider than the screen. What CSS would I use to constrain the width on the mobile device (I have a custom section in my theme for Mobile CSS, so I just need the CSS). Here is a page to view on mobile:

    http://tinyurl.com/lw4xm4v

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is usually a theme issue. What theme are you using? Where did you download it from?

    Thread Starter omg

    (@ontramarketing)

    Thanks, I got it figured out. I used the following code

    .szg-main { max-width: 260px; !important; }
    .szg-main { max-height: 380px; !important; }
    .szg-main-photo { max-height: 380px; !important; }
    .szg-main-photo { max-width: 260px; !important; }

    My theme has a special spot for Mobile CSS, so that it doesn’t affect the desktop version of the site, so I added it in my Mobile CSS Section.

    BTW I am using MySiteMyWay.com themes, they are great

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘WordPress Gallery not responsive on mobile’ is closed to new replies.