posts - How to center all text body in single.php at once?

I'd like to center all of the text bodies (or content body before "read more") of all posts (in single.ph

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 badges
Add a comment  | 

1 Answer 1

Reset to default 0

There 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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745443863a4627955.html

相关推荐

  • posts - How to center all text body in single.php at once?

    I'd like to center all of the text bodies (or content body before "read more") of all posts (in single.ph

    14小时前
    20

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信