Astra Theme Versions 3.8.3 and Brizy - Block padding (solution)
I'm sharing this so others don't waste several hours like I did this morning.
Per Astra the latest version has block padding that causes a white border around Brizy blocks. At first I thought this was a Brizy specific issues, but it's Astra. Below is the suggested fix by adding some php to an Astra child theme.
I hope this saves others some time.
Note: according to Astra this affects new installs, not upgrades to old legacy versions already installed.
Here is the article how to add the following PHP code to fix this issue:
https://wpastra.com/docs/add-custom-php-code/#3.-in-child-theme
Add this to the bottom of child theme functions php file:
add_filter( 'astra_get_option_customizer-default-layout-update', '__return_false' );
If you can’t see the theme editor this might be the problem:
https://wordpress.org/support/topic/editor-is-not-showing-2/
This fixed my issue and the padding around Brizy blocks is gone!
-
I've had the same problem, "spent a long time on it". However, it was solved by the Asta support team, they inserted some code on the page and I got this reply back from them...
add_filter( 'astra_get_option_customizer-default-layout-update', '__return_false' );
Here's the reference screencast: https://d.pr/v/hgDhsH.
The spacing was added due to the new customizer default settings improvements with the Astra 3.8.3.
However, I have reported this to our core development team, and we will improve this with future updates.
- so hopefully the problem will be solved in future updates of Astra - hopefully, as I can't code, insert CSS or PHP ;-)
Translated with www.DeepL.com/Translator (free version)
0 -
It's good to know it wasn't only me with this problem :)
0 -
Exactly - I feel the same ;-)
0
Please sign in to leave a comment.
Comments
3 comments