/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
if ( !is_admin() ) { add_action('wp_print_styles', 'wpe_styles'); add_action('init','wpe_scripts'); function wpe_styles() { $wpe_css_Url = WP_PLUGIN_URL . '/wp-estate/wp-estate.css'; $wpe_css_File = WP_PLUGIN_DIR . '/wp-estate/wp-estate.css'; wp_register_style('wpe_styles', $wpe_css_Url); wp_enqueue_style( 'wpe_styles'); } } function wpe_scripts() { $wpe_scripts_Url = WP_PLUGIN_URL . '/wp-estate/wp-estate.js'; $wpe_scripts_File = WP_PLUGIN_DIR . '/wp-estate/wp-estate.js'; wp_enqueue_script('wpe_scripts'); } } }