Remove default stretched block layout spacing
|
/ Documentation /Custom Code Snippets/ Remove default stretched block layout spacing

Remove default stretched block layout spacing

With the latest update of the Astra theme, we have added a spacing around the full width streched layout for elegant looks of the streched layout.

Remove default stretched block layout spacing

If you are looking to disable the spacing and would like to get the old look of the streched layout, you will need to add the following filter to the function.php file of your child theme.

add_filter( 'astra_stretched_layout_with_spacing', '__return_false' );

This is how it will look after adding the above code to the function.php file of your child theme.

ast-full width streched layout spacing removed

If you are not sure how to add the code to the function.php file, here is an article that will guide you through. If you are not aware what is a child theme and how to install a child them, here is an article that will be helpful.

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

Need help? Contact Support
On this page

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

This field is required.

REWIND

YEAR IN REVIEW

Scroll to Top
Now choose your preferred
page builder addon
Choose your preferred page builder addon

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Astra Theme - Modal Popup Form