Categoría: BRICKS FREE HOOKS
-
Useful Action Hooks in Bricks
Updated on 29 Nov 2023 Bricks has a few handy action hooks that can be used to inject/add code in various areas of your websites. Here are a few commonly-used ones. bricks_meta_tags To add code as high in the head as possible. Screenshot from WPCodeBox: wp_head To add code before closing head tag. bricks_body To…
-
How to wrap main element in custom divs in Bricks
Looking to wrap the main element that is between header and footer with some custom div(s)? Bricks provides ample hooks throughout its codebase. Add this sample code in your child theme‘s functions.php or a code snippets plugin and tweak as needed: add_action( ‘bricks_after_header’, function () { ?> <div id=»smooth-wrapper»><div id=»smooth-content»> <?php }); add_action( ‘bricks_before_footer’, function…
-

Floating Element in Bricks
In Bricks Facebook group a user asks: If I have a floating element to show on each pages, cpt, articles… of the site, in wich template should I join it ? In oxygen I would have place it in the main… but with bricks? Bricks offers a lot of flexibility, which means there are many…