-
mbanks
Good Morning,
Just purchased both generate premium and blocks and looks great on first inspection.
I have been trying to set the default inner container padding, so I dont have to set it on a individual container basis or select a global style.
Using the function below, is there a way too target the inner container so everytime i add one default padding is set.
// Cancels the GP automated 40px padding.
add_filter( ‘generateblocks_defaults’, function( $defaults ) {
$defaults[‘container’][‘paddingTop’] = ‘0’;
$defaults[‘container’][‘paddingRight’] = ‘0’;
$defaults[‘container’][‘paddingBottom’] = ‘0’;
$defaults[‘container’][‘paddingLeft’] = ‘0’;return $defaults;
} );Thanks in advance
-
David
Hi there,
as a Pro user.
You can:1. Create a Global Style to control your padding.
2. then create a Local Pattern and apply your local styles.Now you can simply add the appropriate local pattern, and if in the future you want to modify them just update the Global Styles.
- You must be logged in to reply to this topic.