This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//----------------------------------------// | |
// Making jQuery load from Google Library // | |
//----------------------------------------// | |
add_filter( 'init', 'replace_default_jquery_with_fallback'); | |
function replace_default_jquery_with_fallback() { | |
if (is_admin()) { | |
return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
var config = { | |
project: 'bta', | |
stylePaths: [ | |
'./scss/style.scss' | |
], | |
jsPaths: [ | |
'./js/*' | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//--------------------------------// | |
// Remove Unnecessary Header Code // | |
//--------------------------------// | |
remove_action('wp_head', 'wp_generator'); | |
remove_action('wp_head', 'wlwmanifest_link'); | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'wp_shortlink_wp_head'); | |
remove_action('wp_head', 'print_emoji_detection_script', 7 ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//------------------// | |
// Remove WP Jquery // | |
//------------------// | |
function change_default_jquery( ){ | |
wp_dequeue_script( 'jquery'); | |
wp_deregister_script( 'jquery'); | |
} | |
add_filter( 'wp_enqueue_scripts', 'change_default_jquery', PHP_INT_MAX ); |
NewerOlder