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:

ai2

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.


These Adverts help to pay for this site.

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.


24.1 - 546,309
Scroll down for Comments
0 0 vote
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