How to Change Padding Left from 30px to 10px

Code to Change Padding Left from 30px to 10px or 20px etc

Wordpress paragraph style is normally set using the default code, but some website managers prefer to use alternative indent settings. This can be achieved by adding a bit of CSS code.

The code to change the common indent from padding-left: 30px to padding-left: 10px is placed in functions.php file in the child theme:


Code to Change Padding Left from 30px to 10px or 20px etc..

WordPress paragraph style is normally set using the default code, but some website managers prefer to use alternative indent settings. This can be achieved by adding a bit of CSS code.

The code to change the common indent from padding-left: 30px to padding-left: 10px is placed in functions.php file in the child theme, is:



/**
* Name: Manipulate the Parent to change indent from 30 to 10
* Requires: To be added in functions.php Child theme
*/
function modify_tinymce_settings($settings) {
$settings['indentation'] = '10px';
return $settings;
}
add_filter('tiny_mce_before_init', 'modify_tinymce_settings');


I have placed this code as the last item in my functions.php file.


100.1 - 868,074
Scroll down for Comments
0 0 votes
Article Rating
Subscribe
Notify of

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x