1
2
function add_scipts() {
if (!is_admin()) {
This function properly enqueues remote and local versions of JS and CSS scripts and places them in the footer of the page or where ever one places the <?php wp_footer();?> in your WordPress site. The second part of the script removes their version numbers. The reason for this is that using website optimization sites like tools.pingdom.com, gtmetrix, and google page speed will often suggest removing query strings like the ones generated by WordPress.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.