Solved on this thread: Fashionistas – Centred the featured image on posts by Maruti Mohanty:
Hi
To make all the featured images centre. Please add the following css in your theme’s style.css file.
I will suggest you to do the changes using child theme or by using the my custom css plugin, so that the changes made remain preserved even after upgrades.
.entry-thumbnail img {
margin: auto;
}
Hope it helps!
Thanks
Try that and let me know if it works or not.
Thread Starter
dorinL
(@dorinl)
Hi thanks so much
unfortunately it does not work…
Another suggestion:
- Download Custom CSS Plugin
- Use this code:
.entry-thumbnail img {
display: block;
margin: 1em auto;
}
You don’t necessarily have to do step 1, but it’s recommended. I went on your site and tested this bit of code and it appears to work for me. Give it a shot!
Code from paulwpxp on this thread
Thread Starter
dorinL
(@dorinl)
still nothing :\
I dont get why my site is so stubborn
You can navigate to your styles.css file through your themes editor right? Go in there and CTRL or CMD-F for .entry-thumbnail img and let me know you find it.
Thread Starter
dorinL
(@dorinl)
Yes found it!
.entry-thumbnail img {
display: block;
}
Ok, after
display: block;
add
margin: 1em auto;
so that you end up with:
.entry-thumbnail img {
display: block;
margin: 1em auto;
}
Thread Starter
dorinL
(@dorinl)
YES it finally worked! Thank you much for your patience, I dont know what kind of theme I have that is so difficult to manage
Finally centered, thanks again!
Happy to help. Please mark the thread as resolved and good luck with your site π
Thread Starter
dorinL
(@dorinl)
Hi again!
I updated my site, and its back on the left!
The custom coding has stayed but not working anymore…
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
That will happen when you make your modifications directly in the theme’s style.css file (just in case you didn’t know).
- Install this Custom CSS Manager plugin http://wordpress.org/plugins/custom-css-manager-plugin
- use its “CSS Code” section of the dashboard to hold your CSS modifications:
-
(put this code in)
body .entry-thumbnail img {
display: block;
margin: 1em auto;
}
- Save
Thread Starter
dorinL
(@dorinl)
Is there another way?
It downloaded directly to my computer and I dont know how to upload it to WP
It also tells me it hasnt been updated in over 2 years, and might not be capable.
Thread Starter
dorinL
(@dorinl)
Nevermind, managed to download it, did all you explained but still doesnt work
I think I have a really difficult theme to manage…
Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
See this plugin installation guide: https://codex.wordpress.org/Managing_Plugins#Automatic_Plugin_Installation
The plugin works and is my personal recommendation, but you can always do your own research to satisfy any of your worries.