Tagged: featured images
This topic contains 5 replies, has 2 voices, and was last updated by StartupWP 5 years, 9 months ago.
- AuthorPosts
- June 13, 2013 at 8:57 AM #833
Hi there,
Just bought Pro and it’s really clean and lovely to work with. I am having trouble with featured images. They are not re-sizing to the size set for them – they are remaining full size. I have played around with editing/cropping and they do not save (the save button is not clickable). This seems to be a template-specific problem because the featured images work correctly on the default templates.
Site is temporarily here: http://174.120.23.123/~william
Any advice would be appreciated – it’s my only stumbling block.
June 13, 2013 at 10:02 AM #834We’ve purposely left it blank, so to speak.
Use:
.attachment-post-thumbnail { height: auto; max-width: 300px !important; }
Change 300 to your desired width.
Or if you want it to say, float left with a margin for text to wrap around, use:
.attachment-post-thumbnail { float: left; height: auto; margin: 10px; max-width: 300px !important; }
Please see: https://startupwp.com/topic/customizing-your-theme/
June 13, 2013 at 10:43 AM #835Many thanks for your quick response.
This works – except that the image in the post itself is now also conforming to that thumbnail size, and I want it to be full size. Here is a blog that shows what I want: http://www.healthyhomecleaning.com/
See how the thumbnails are all squares of the very same size? It gives a nice, uniform look. Then if you go to the actual post, you can see that the image is full-size.
June 14, 2013 at 6:16 AM #838You can just add
.blog
in front like so:.blog .attachment-post-thumbnail { height: auto; max-width: 300px !important; }
June 14, 2013 at 7:03 AM #840Thanks very much. That did the trick. Nice template for a great price. :0)
June 14, 2013 at 6:40 PM #843You’re welcome.
- AuthorPosts
You must be logged in to reply to this topic.