Improved .visually-hidden
Theorically bulletproof CSS class for visually hide anything and keep it accessible to ATs.
<?php // Ignore this first line when copying to your child theme's functions.php file. | |
/** | |
* Disable Popup Maker if Using Divi Builder | |
* | |
* Reference https://github.com/stefanoferrario/Extra/blob/e5eb5b20e6165ee989b8538f8eebbcddd24ce4b7/core/functions.php#L353 | |
*/ | |
add_action( 'wp', function() { | |
if ( ! function_exists( 'et_core_is_fb_enabled' ) ) return; |
<?php namespace GM\WWWPostThumbnail; | |
/** | |
* Plugin Name: WWW Post Thumbnail | |
* Description: Allow to use an external image url as featured image. | |
* Plugin URI: https://gist.github.com/Giuseppe-Mazzapica/928bc22e5f49a654cf7c | |
* Author: Giuseppe Mazzapica | |
* Author URI: https://github.com/Giuseppe-Mazzapica | |
* License: MIT | |
* Version: 0.1.0 | |
* |
function polygonCenter(poly) { | |
var lowx, | |
highx, | |
lowy, | |
highy, | |
lats = [], | |
lngs = [], | |
vertices = poly.getPath(); | |
for(var i=0; i<vertices.length; i++) { |
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |