After building the website, how to automatically
indent the first lineby two character spaces for each paragraph when publishing posts?
The method to achieve paragraph first-line indentation is very simple, just insert a piece of CSS code. The specific method is as follows:1. Find any article on your blog, then use Chrome's right-click, inspect button, click on the article content, and check the class value of the upper div. For example, the value for Naiba's theme is entry-content, as shown in the figure below:

2. Click Appearance - Customize - Additional CSS, then insert the following CSS code and save.
.entry-content p { text-indent: 2em }Refresh the page, and the function of automatically indenting article paragraphs by two spaces will appear. Of course, if you don't know how to find your theme's class value, you can also directly insert
p { text-indent: 2em }However, this way, text you add in places like Widgets will also automatically indent by two spaces. You can also add the CSS code to your theme's CSS file yourself.
Comments are closed
The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.