Skip to content

Instantly share code, notes, and snippets.

@wplit
Last active May 5, 2021 17:30
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wplit/27790a415b57819212d6452a9a6d2ede to your computer and use it in GitHub Desktop.
Save wplit/27790a415b57819212d6452a9a6d2ede to your computer and use it in GitHub Desktop.
Enqueuing custom CSS inside the Oxygen Builder
/**
* Loads CSS inside the Oxygen Builder
*/
add_action( 'plugins_loaded', 'lit_oxy_builder_css' );
function lit_oxy_builder_css() {
if( class_exists( 'CT_Component' ) ) {
add_action( 'oxygen_enqueue_ui_scripts', 'lit_oxy_ui_scripts' );
}
}
function lit_oxy_ui_scripts() {
wp_enqueue_style( 'oxygen-custom-ui', plugin_dir_url( __FILE__ ) . 'css/style.css' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment