enqueue

How to Enqueue Scripts & Styles Only When Shortcode Exists

If you are working on a WordPress theme or plugin then there can be a chance where you only want to include javascript or CSS files only if a particular shortcode exists. To check shortcode existence WordPress gives a function shortcode_exists($shortcode_tag). By using this function, you can check if a shortcode exists or not and …

How to Enqueue Scripts & Styles Only When Shortcode Exists Read More »

How to Enqueue or Include Scripts, JS, Jquery in WordPress

If you have just started with WordPress development, then enqueuing Scripts, Javascript, Jquery files and enqueuing CSS, Font-Awesome Icons, and Google Fonts in WordPress are one of the most important parts of WordPress development, that you must know. However, you can directly include any js file in WordPress by linking them in the header but …

How to Enqueue or Include Scripts, JS, Jquery in WordPress Read More »

How to Enqueue CSS, Font-Awesome, Google Fonts in WordPress

If you are a newbie in WordPress development then enqueuing stylesheet, font-awesome icons, Google fonts, External stylesheet and enqueuing Javascript and Jquery in WordPress is something that you should take extra care. However, you can include CSS file or fonts in the header file or in the head section of your WordPress website but this …

How to Enqueue CSS, Font-Awesome, Google Fonts in WordPress Read More »