How do we attach our custom style sheets into FSE’s iframe location
-
While playing around with FSE, I noticed that it’s wrapped in an iframe. My child theme’s style-sheet is enqueued into the admin side of the page, but only at the parent level of the DOM.
My functions.php file:
function _pm_child_scripts_admin() { wp_enqueue_style( '_ac-child-stylesheet', get_stylesheet_directory_uri() . '/dist/css/pm_admin_bundle.css', '1.0.0', 'all' ); } add_action('admin_enqueue_scripts', '_pm_child_scripts_admin');
But how can I also have my same stylesheet, or any custom style sheet, “inside” the iframe space of FSE so I can see my custom branding on html blocks that do “preview” mode?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘How do we attach our custom style sheets into FSE’s iframe location’ is closed to new replies.