Ecommerce Shopify WordPress Discussion

How to load scripts and style for frontend and admin in WordPress

I am quote confused about loading js an css for frontend and admin areas. I see there is: wp_enqueue_style() wp_enqueue_script() How can I load them separately for frontend and backend? I see there is a hook for js as follows 'admin_enqueue_scripts' but I cannot see 'admin_enqueue_styles'. Is there something for the frontend? Sorry but I am gettng very confused
In WordPress, many functions have hooks with an exact or similar name. In this case, wp_enqueue_scripts is the hook you want to use to queue JS and CSS for the frontend via the wp_enqueue_script and wp_enqueue_style functions. admin_enqueue_scripts is the hook to do the same with the same functions but for the backend.

January 17, 2024

TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.