Trying to get my CSS files to load last using add_action
-
Hello,
I am trying to get my CSS files to load after the theme and plugins have been loaded using add_action(after_setup_theme, add_css_js, 100000)
function add_css_js(){ wp_enqueue_style('gem', trailingslashit(get_theme_root_uri()) . 'gemtechllc/css/gem.css'); wp_enqueue_script('js_file',trailingslashit(get_theme_root_uri()) . 'gemtechllc/js/gem.js',false); } add_action( 'after_setup_theme', 'add_css_js', 0);
Please advise.
Thank you,
Don
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Trying to get my CSS files to load last using add_action’ is closed to new replies.