Im using some custom bricks elements to get custom acf meta data for variable products with modified acf code for these variable products - not sure if thats the issue here, cuz the classes and elements / html structure is correctly present in the bricks iframe view
i tryed everything i can imagine but nothing seems to work.
I’m not sure it will help, but this code enqueue a CSS stylesheet in the “Bricks building page” (BUT ALSO in the frontend of all your website). I still try to enqueue ONLY on the “Bricks building page”, but didn’t find a solution yet.
You must replace “jy-color.css” by the filename of your CSS.
/===========================
ENQUEUE A CSS STYLESHEET ON WEBSITE FRONTEND + BRICKS BUILDING PAGES
===========================/
/* Enqueue CSS in the frontend of the website AND on the Brick building page. */
add_action(‘wp_enqueue_scripts’, ‘jy_enqueue_css_jy_color’);
If you want to also enqueue the CSS on other part - typically the website [Frontend], or [Bricks Editor Panel] - here are the codes. This page
/---------------------------
Show on [Bricks Editor Panel] + [Bricks Editor User Canvas], but not on [Frontend].
---------------------------/
if ( bricks_is_builder() ) {
}
/---------------------------
Show only on [Bricks Editor Panel].
---------------------------/
if ( bricks_is_builder_main() ) {
}
/---------------------------
Show only on [Bricks Editor User Canevas].
---------------------------/
if ( bricks_is_builder() && ! bricks_is_builder_main() ) {
}
/---------------------------
Show on [Frontend] and [Bricks Editor User Canvas], but not on [Bricks Editor Panel].
---------------------------/
if ( ! bricks_is_builder_main() ) {
}
/---------------------------
Show only on [Frontend].
---------------------------/
if ( bricks_is_frontend() ) {
}