Reference: https://wploop.com/speed-site-properly-including-google-maps/
- Save map image URL
- Get dynamic Map URL to load
- Add markup to page
<div class="randgroup-map" data-iframe-width="600" data-iframe-height="300" data-iframe-src="IFRAME-URL">
find ./ -type f -print0 | xargs -0 sed -i 's/subdomainA\.example\.com/subdomainB\.example\.com/g'
This file contains hidden or 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 | |
| // as include for functions.php | |
| function optimize_heartbeat_settings( $settings ) { | |
| $settings['autostart'] = false; | |
| $settings['interval'] = 60; | |
| return $settings; | |
| } | |
| add_filter( 'heartbeat_settings', 'optimize_heartbeat_settings' ); | |
| function disable_heartbeat_unless_post_edit_screen() { |
#Index
//////////////////
// Add to functions.php
/////////////////
// Filter to hide protected posts
function exclude_protected($where) {
global $wpdb;
return $where .= " AND {$wpdb->posts}.post_password = '' ";
This file contains hidden or 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
| //////////////////////////////// | |
| /// FIXED HEADER | |
| /// github @ chrisbautista 2016-07-20 | |
| /////////////////////////////// | |
| (function($,window) { | |
| 'use strict'; | |
| var fh = {}; // fixed header |