Last active
May 5, 2021 17:30
-
-
Save wplit/27790a415b57819212d6452a9a6d2ede to your computer and use it in GitHub Desktop.
Enqueuing custom CSS inside the Oxygen Builder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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