How to Indent in WordPress

104 237
    • 1). Log in to the WordPress dashboard from the "wp-admin" directory of your website. Go to "Posts" or "Pages" and click on the name of the post or page you want to edit. Click the "Visual" tab on top of the editor box and press "Alt+Shift+Z" to show a second row of buttons on the editor toolbar. Place the cursor in front of the text you want to indent in the editor box and click the "Indent" button.

    • 2). Click the "HTML" tab on the editor box to view the HTML of your post or page. Locate the HTML tag in front of the content you want to indent and add "padding-left: 30px;" to the "style" attribute:

      <p style="padding-left: 30px;">

      The editor generates this same code for indents when you indent using the "Visual" editing mode. Change "30px" to a different pixel amount to change the size of the indentation.

    • 3). Replace "padding-left" with "text-indent" if you only want to indent the first line of a paragraph:

      <p style="text-indent: 30px;">

      No equivalent button exists in the "Visual" editing mode, but WordPress will not strip this code out after you switch to "Visual" and save.

Source...
Subscribe to our newsletter
Sign up here to get the latest news, updates and special offers delivered directly to your inbox.
You can unsubscribe at any time

Leave A Reply

Your email address will not be published.