I'd like to center all of the text bodies (or content body before "read more") of all posts (in single.php) at once with simple (or advanced) code. How can i do that?
I'd like to center all of the text bodies (or content body before "read more") of all posts (in single.php) at once with simple (or advanced) code. How can i do that?
Share Improve this question asked Jun 1, 2019 at 19:15 vordinerdovordinerdo 54 bronze badges1 Answer
Reset to default 0There is probably some CSS you can add via Additional CSS (in Theme CUstomization) that you could use. Use the Inspector tool of your browser (F12) to see the CSS 'class' element used in the content. If the class is called 'the_content', then add this to your Additional CSS:
.the_content{text-align:center !important;}
You might need this, if the content is inside 'p' tags:
.the_content p {text-align:center !important;}
Adjust it for what you like (you may not need the !important
). In the Inspector, you can add CSS stuff to that element to try things out. There are googles/bings/ducks on how to use the Inspector.