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
https://www.webdesign101.net/fixing-empty-blank-searches-displaying-posts-wordpress/ |
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
// https://snippet-generator.app | |
// VSCode, Sublime Text, Atom | |
'.source.php': | |
'Bootstrap Grid - row-col-2': | |
'prefix': 'row-col-2' | |
'body': """ | |
<div class="row"> | |
<div class="col-md-6"> | |
<div class="col-left"> |
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
// https://snippet-generator.app | |
// VSCode, Sublime Text, Atom | |
'.source.php': | |
'HTML - div': | |
'prefix': 'div' | |
'body': """ | |
<div> | |
</div> |
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
Test | |
// https://codepen.io/gapcode/pen/vEJNZN | |
// Check for IE | |
// used for IE11 for declaration form grid layout | |
// Get IE or Edge browser version | |
var version = detectIE(); |
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
// see SeaGrass | |
if ($(".slideshow-full-container").length > 0) { | |
// https://github.com/kenwheeler/slick/issues/1403#issuecomment-282066130 | |
// Test for slide length, if one, hide navigation dots | |
// the event needs to be run before slick is initialized | |
$('.slideshow-full-container').on('init', function (event, slick, direction) { | |
// console.log($('#full_page_slideshow .slick-slide').length); |
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
// Start - any full_width_single_image scroll snap | |
// https://jsfiddle.net/vqakpboe/1/ | |
if ( $("#full_width_single_image").length > 0 ) { | |
var timeout = 400; | |
var timer; | |
var top = true; | |
$(window).scroll(function(event){ | |
clearTimeout(timer); |
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 | |
/** | |
Display a notice on the cart page requesting people with Countries not supported to email us. | |
*/ | |
// http://hookr.io/actions/woocommerce_after_shipping_calculator/# | |
function action_woocommerce_after_shipping_calculator( ) { | |
echo ' | |
<style> | |
.action_woocommerce_after_shipping_calculator {background: #eee;margin-top: 10px;padding: 10px;font-size: 1.4rem;line-height: normal;} |
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
# Ignore everything # | |
** | |
!wp-content/ | |
wp-content/** | |
!wp-content/themes/ | |
!wp-content/plugins/ | |
wp-content/themes/** | |
wp-content/plugins/** | |
# Add two rules for each Theme or Plugin you want to include: |
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
# ----------------------------------------------------------------- | |
# .gitignore for WordPress @salcode | |
# ver 20180808 | |
# | |
# From the root of your project run | |
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore | |
# to download this file | |
# | |
# By default all files are ignored. You'll need to whitelist | |
# any mu-plugins, plugins, or themes you want to include in the repo. |
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
// HOW TO ENABLE HTTP STRICT TRANSPORT SECURITY (HSTS) IN WORDPRESS | |
// https://thomasgriffin.io/enable-http-strict-transport-security-hsts-wordpress/ | |
add_action( 'send_headers', 'tgm_io_strict_transport_security' ); | |
/** | |
* Enables the HTTP Strict Transport Security (HSTS) header. | |
* | |
* @since 1.0.0 | |
*/ | |
function tgm_io_strict_transport_security() { | |