add style file
-
Hi. I want to add a style file to the editor with your hook, but it doesn’t work. Why?
function brizy_pro_scripts_rtl() {
if ( isset( $_GET['action'] ) && $_GET['action'] === 'in-front-editor' ) {
wp_enqueue_style(
'brizy-pro-frontend-rtl', //
TF_BRIZY_ASSETS . 'css/brizy-pro-frontend.min.css', //
array(), //
'1.0', //
'all' //
);
}
}
add_action( 'admin_action_in-front-editor', 'brizy_pro_scripts_rtl', 9999 );
- You must be logged in to reply to this topic.