Viewing 1 to 7 of 7 items
Tag Archives: enqueue

Enqueue/Include neutral urls for http and/or https in WordPress

Taken from here: http://wordpress.stackexchange.com/a/81897/13712 URLs must have a https or http protocol for WordPress to enqueue them. FIf possible you should use get_template_directory_uri() (for parent themes) or get_stylesheet_directory_uri() (for child themes) as both of these handle SSL if necedssary. Here’s an example: If you can’t enqueue your own local script/s and have to enqueue from an  Full Article…

0

How to enqueue Scripts & Stylesheets to WordPress via a plugin

Taken from here: https://www.creare.co.uk/how-to-enqueue-scripts-stylesheets-to-wordpress-via-a-plugin For that extra level of safety and control, we recommend enqueuing via a separate  dedicated plugin. In the video, I demonstrate how simple this is. Firstly, create a folder within WordPress’ plugin folder located at /wp-content/plugins/. Name your folder something useful like ‘theme-scripts’ and create a php file with the exact same name  Full Article…

0

How to Enqueue Styles

This article will show you how to safely insert your CSS for your WordPress plugin or theme into the HEAD section of both the WordPress front-end and administration panel. I wrote an article a while back which explained how to safely enqueue JavaScript files into WordPress for your WordPress plugin or theme without simply injecting code into  Full Article…

0

Add jQuery to WordPress

By default WordPress comes packaged with a jQuery function but because the jQuery libraries are updated constantly I decided to call my own jQuery libraries from a CDN. CDN stands for content delivery network, large enterprises have their own CDN’s where they host copies of popular script. In the following example I’m using the CDN  Full Article…

0