No results found. Try again with different words?

Search must be at least 3 characters.

Remove default stretched block layout spacing

Sidebar Image

Did not find a solution? We are here to help you succeed.

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 article helpful?
Sidebar Image

Did not find a solution? We are here to help you succeed.

Related Docs

Join 1,653,898+ Happy Site Owners Using Astra

Whether you are a beginner, small business owner, or professional web developer, Astra provides all the tools you need to easily build your beautiful WordPress website.

Download is Just A Click Away!

Membership Retention Checklist Download

REWIND

YEAR IN REVIEW

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
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