Are you looking to add support for the Cover and Group blocks? Now with the Astra Theme version 2.5.0, it will be resolved –
For New Users:
On your fresh or new installations, compatibility for Cover and Group blocks will be provided by default.
For Existing Users:
You can use the following filter in the child theme』s functions.php to provide Support for the Cover and Group blocks –
add_filter( 'astra_gtn_group_cover_css_comp', '__return_true' );
Compatibility to Remove Margin-top and Bottom
We have provided another compatibility to remove the margin-top and bottom in case of Full Width – Contained / No sidebar & when No header is selected.
If the users want the top and bottom margin, you can use the following filter in the child theme』s functions.php –
add_filter( 'astra_content_margin_full_width_contained', '__return_false' );
Note
Refer this doc on How to Add Custom PHP Code?