Skip to content

Instantly share code, notes, and snippets.

// https://gist.github.com/jpdery/40ae985c43b2168b7869f70ca0e5aab3
// IE 11 Min Height Flex Fix
if (window.navigator.userAgent.indexOf('Trident/7.0') > 0 ||
window.navigator.userAgent.indexOf('Trident/6.0') > 0) (function($) {
$('*:not(.no-ie-flex-fix').each(function(i, element) {
element = $(element)
var timeout = null
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
//Add to functions.php
//https://wordpress.org/plugins/email-address-encoder/
//*****************************************************************************
// Email Address Encoder - ACF fields
//*****************************************************************************
//You cannot use Firebug, Web Inspector or Dragonfly, because they decode decimal/hexadecimal entities into plain text. To make sure email addresses are encoded, right-/secondary-click the page, click “View Source”, “View Page Source” or “Source” and search for any plain text email addresses. In Firefox, be sure to test with “View Source” not “View Selection Source”.
add_filter('acf/load_value', 'eae_encode_emails');
@jackfearing
jackfearing / htaccess (WordPress)
Last active January 12, 2018 01:42
htaccess (WordPress) #Apache
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
@jackfearing
jackfearing / ACF Pro - Basic Custom Field
Last active February 20, 2020 00:50
ACF Pro - Basic Custom Field
<?php if(get_field('new_acf_text_area')){
echo '<div>'. get_field('new_acf_text_area') .'</div>';
}
?>