Browser: Chrome 110 OS: macOS / Windows / Linux / etc. URL: Link to a page that illustrates this issue Video: Short screen recording that illustrates this issue (free tool: jam.dev)
I don’t know if it is a bug. I am testing HOOKS(v1.9.1) In conditions I have added the section template tp “bricks_after_header” and it works. The problem is I want to display on entire site but NOT frontpage. Adding a second condition has NO effect at all, it still shows on frontpage.
I have the same problem, extra conditions don’t work.
The other thing I noticed is, that the inserted template isn’t shown in the editor (like header and footer do), which might complicate designing the content.
Just an example: I’ve used the hook bricks_after_header to insert an additional section showing a page’s featured image, which should appear right after the main navigation placed in the header. Everything is fine on the front end, but when I open a page for editing, no featured image is shown, only the navigation. In this situation it’s quite hard to design the content of the page without seeing this importamt part of the design.
Before this feature was introduced, I tried to do the same using the code below, but the template didn’t show while editing either. Moreover, before the editor was fully loaded the template briefly flashed on the page, which didn’t look nice at all. At least this flashing is not happening when using the new feature. This is the code I used.
function bleye_add_image_header() {
if ( is_front_page() ) {
return;
}
echo do_shortcode( '[bricks_template id="265"]' );
}
add_action( 'bricks_after_header', 'bleye_add_image_header' );
@charaf , any plans on improving this feature in this direction?
Thanks
But the inserted template is still missing while editing the page where it should appear. As it is probably not a bug, but more of an feature request, should I create one for it? Or is something you are still planning to improve during the beta phase?