Image size over a post
Hello,
(I’m sorry for my english, it’s the translator)
How can I get an automatic resize my images above my posts. Is it possible to change the size of this image? Link example.
I have this problem with all the posts. I resized the images in library but nothing changes.
Thank you in advance for your replies
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
7Hi nitrous
You can try the following under Appearance > Custom CSS and adjust as required.
/* Set a max-width for the single post and archive featured image */ .single .entry-thumbnail img { margin-right: auto; margin-left: auto; max-width: 50%; } article.post .entry-header .entry-thumbnail img { margin-right: auto; margin-left: auto; max-width: 50%; }Thank you for your reply.
This solution solved the problem for the width but not the height.
Example: http://www.nitro-design.be/beach-flag-vitalite-services/
I added “max-height: 30%;” , but nothing has changed.
There is also the image isn’t complete display
Example: http://www.nitro-design.be/blocs-note-autocopiant/
http://www.nitro-design.be/feuilles-autocopiantes/
But not on all posts
Please try the following and see how that goes:
/* Set size for the single post and archive featured image */ .single .entry-thumbnail img { margin-right: auto; margin-left: auto; height: 50%; } article.post .entry-header .entry-thumbnail img { margin-right: auto; margin-left: auto; height: 50%; }Adjust as required.
You can remove margin-left: auto; margin-right: auto; if you don’t want the image to center.
I tried but nothing changed
Except “margin”, it works well.
Phew, ok, if I go back to my original CSS, that does seem to work:
/* Set a max-width for the single post and archive featured image */ .single .entry-thumbnail img { margin-right: auto; margin-left: auto; max-width: 50%; } article.post .entry-header .entry-thumbnail img { margin-right: auto; margin-left: auto; max-width: 50%; }The other option is to use the Simple Image Sizes plugin to change the size of the images:
https://wordpress.org/plugins/simple-image-sizes/
After using that, you need to run the Regen Thumbnails plugin:
https://wordpress.org/plugins/regenerate-thumbnails/
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.