• Resolved Garry

    (@mrgarry05)


    Hi there, Default margin for “container” blocks is 40px can I make it 0px so that I don’t have to change the value every time I add a container in the post, which in my case is like 20 containers per post.

    Thanks heaps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Tom

    (@edge22)

    Absolutely, this will be an option in our pro version.

    You can also use a filter like this:

    add_filter( 'generateblocks_defaults', function( $defaults ) {
        $defaults['container']['paddingTop'] = '0';
        $defaults['container']['paddingRight'] = '0';
        $defaults['container']['paddingBottom'] = '0';
        $defaults['container']['paddingLeft'] = '0';
    
        return $defaults;
    } );

    Hope this helps!

    Plugin Author Tom

    (@edge22)

    I’m going to go ahead and mark this as resolved. Let me know if you need more help ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Default margins for containers’ is closed to new replies.