Filter to Add Support for Gutenberg Cover and Group blocks

No results found. Try again with different words?

Search must be at least 3 characters.

    Filter to Add Support for Gutenberg Cover and Group blocks

    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?

    Was this article helpful?
    Did not find a solution? We are here to help you succeed.

    Related Docs

    Scroll to Top

    Download is Just A Click Away!

    Be among the first to try the beta version of Astra’s Header Footer Builder. Filling the form will ensure you’ll be the first to learn about updates and features.

    Download is Just A Click Away!

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