This topic contains 10 replies, has 2 voices, and was last updated by StartupWP 4 years, 1 month ago.
- AuthorPosts
- February 28, 2015 at 9:01 AM #2136
Posts viewed on a desk top look great, but when viewing on an Ipad the photos appear too large. They overlap into the side bar and other words and images appear on top of the photo. How do I adjust?
beyondthechickencoop.comFebruary 28, 2015 at 7:49 PM #2138Here’s the complete code that appears in that page/post:
<div class="wp-caption aligncenter" style="width: 650px" id="attachment_412"><a href="http://www.beyondthechickencoop.com/wp-content/uploads/2015/02/Chopped-Chicken-Salad.jpg"><img width="640" height="480" alt="Oriental Chopped Chicken Salad" src="http://www.beyondthechickencoop.com/wp-content/uploads/2015/02/Chopped-Chicken-Salad.jpg" class="size-full wp-image-412"></a><p class="wp-caption-text">Oriental Chopped Chicken Salad</p></div>
Removing
style="width: 650px"
should be good enough.In responsive design you want to avoid setting fixed pixel widths.
February 28, 2015 at 8:01 PM #2140How do I prevent this from happening with each post? Is there something I can do to prevent this from happening?
March 1, 2015 at 4:13 AM #2143You might try:
.wp-caption { width: 100% !important; }
March 1, 2015 at 6:00 AM #2148Please give me more details. This may seem really simple to you, but I’m afraid I haven’t a clue how to do this. I can’t even find the exact code that you say is for my picture. I find something similar when I go to edit the post and then to text. I see similar language, but not that exact wording. The above directions aren’t enough for me to understand.
Isn’t there a way when I upload pictures to make them responsive, or perhaps on the template itself?
Thank you.
March 1, 2015 at 9:06 PM #21501. Log into your WP admin.
2. From the main menu on the left, navigate to:
Appearance > StartupPro Options > Advanced Editing > Custom CSS
3. Paste in:
.wp-caption { width: 100% !important; }
4. Click “Save Options”.
March 2, 2015 at 4:46 AM #2152Thank you for the detailed directions. I was able to follow them and paste the code, however, I do not see any changes on the pictures when viewing on an Ipad. Is there anything else I need to do?
Thank you.March 2, 2015 at 7:18 AM #2154Doesn’t look like the CSS is being applied.
After adding code make sure to clear all caches, specifically if you’re using a WordPress caching plugin.
March 2, 2015 at 7:53 PM #2156Fixed.
There was an error in your CSS and “Custom Styles & Custom CSS” wasn’t turned on.
March 2, 2015 at 8:21 PM #2159Thank you so much! The pictures are much better.
March 3, 2015 at 8:34 PM #2162You’re welcome.
- AuthorPosts
You must be logged in to reply to this topic.