After setting up the website, how can you achieve automatic first-line indentation for each paragraph when publishing articles?
First-line IndentIndent by two spaces?
The method to achieve paragraph first-line indentation is very simple; you just need to insert a piece of CSS code. The specific steps are 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. Go to 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 the class value for your theme, you can also directly insert
p { text-indent: 2em }However, doing so will also cause text added in places like widgets to 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.