My featured images are all set left, which is ok when they fill the column.
But when they’re smaller, they just look odd.
Is there some way to centre them?
If it’s a coding issue, please give specific instructions (what I call ‘Noddy to Big Ears, because I don’t know coding from a hole in the head) otherwise, I won’t really know what you’re telling me.
But if it’s a function already available on Dashboard, that would be fantastic.
Paul
Hi Paul,
If you upload small images, then it depends on the post type you chose. DIfferent poist types will display the image differently. You can use a css trick to center your images like so:
.td-post-template-default .td-post-featured-image img,
.td-post-template-1 .td-post-featured-image img,
.td-post-template-2 .td-post-featured-image img
{
margin-left: auto!important;
margin-right: auto!important;
}
This will work for the default, template 1 and template 2 post types.
Thanks.
Hi Bogdan,
Sorry, lost the link to this. I replied by email, but it pinged back.
So – I’m sorry, I don’t understand a word above.
Can you tell me in words of one syllable, step by step, what I have to do?
You cannot offend me, or patronise me! I know nothing about code, wouldn’t even know where to put it.
So if you are able to help, you will need to tell me where to start, and then step by step what to do.
Thanks.
Paul
Hi Paul,
I did not mean to offend or patronize you in any way nor do I intend to. The solution I provided above only requires you to copy the red piece of code I provided and paste it in here: http://screencast.com/t/kepmNnZ4u
That’s about it. Now your images should be centered for post styles default, 1 and 2: http://screencast.com/t/cCDvsYOZX
On different post templates, the image will position differently but it will not need changes as the images will be centered.
I hope this helps.
Thank you!