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 permalinks from WP Show Posts output using DOMDocument and DOMXpath. | |
* @link https://stackoverflow.com/questions/36096834/selectivly-replace-certain-html-tags-via-php-while-keeping-some | |
* @link https://techsparx.com/software-development/wordpress/dom-document-pitfalls.html | |
*/ | |
add_filter( 'the_content', 'gpc_remove_wpshowposts_permalinks', 20 ); | |
function gpc_remove_wpshowposts_permalinks( $content ) { |
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 | |
/** | |
* Partial for custom_post_type_list shortcode output. | |
* | |
* @package ChildTheme | |
*/ | |
if ( ! defined( 'ABSPATH' ) ) exit; ?> | |
<li><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></li> |
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
/* Shortcodes Utlimate Rows and Columns */ | |
.gpc .su-row { | |
margin: 0 -2% 1.5em -2%; | |
} | |
.gpc .su-row .su-column { | |
margin-left: 0; | |
margin-right: 0; | |
padding: 0 2% 0; | |
} | |
.gpc .su-column-size-1-1 { width: 100%; } |
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
// Social media fontawesome colors | |
a .fa-square { color: #fff; } | |
a .fa-twitter-square, a .fa-twitter { color: #00aced; } | |
a .fa-facebook-square, a .fa-facebook { color: #3b5998; } | |
a .fa-youtube-square, a .fa-youtube { color: #bb0000; } | |
a .fa-google-plus-square, a .fa-google-plus { color: #dd4b39; } | |
a .fa-linkedin-square, a .fa-linkedin { color: #007bb6; } | |
a .fa-pinterest-square, a .fa-pinterest { color: #cb2027; } | |
a .fa-vimeo-square, a .fa-vimeo { color: #aad450; } | |
a .fa-instagram { color: #517fa4; } |
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
# gzip compression -- make it faster! | |
SetOutputFilter DEFLATE | |
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript application/x-httpd-php | |
BrowserMatch ^Mozilla/4 gzip-only-text/html | |
BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html | |
SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip | |
Header append Vary User-Agent env=!dont-vary |
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
// Declare globally to use throughout | |
var deviceOrientation = ''; | |
// ---------------------------------------------------- | |
// Detect screen orientation | |
// ---------------------------------------------------- | |
function detectOrientation() { | |
var height = $(window).height(); | |
var width = $(window).width(); | |
if(width > height) { |
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
// ---------------------------------------------- | |
// Detect screen orientation | |
// ---------------------------------------------- | |
var deviceOrientation = ''; // Declare globally to use throughout | |
function detectOrientation () { | |
var windowWidth = $(window).height(); | |
var windowHeight = $(window).width(); | |
if (windowWidth > windowHeight) { | |
deviceOrientation = 'landscape'; | |
} else { |
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 | |
/* This macro will be parsed as PHP code (see http://www.php.net) | |
The calculateshipping function is called every time a shipping calculation request is made by Shopify. | |
The function must return an array of available shipping options, otherwise no shipping options will be returned to your customers. | |
*/ | |
function calculateshipping($DATA) { | |
/* do not edit above this line */ |
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
title: Meta Fields | |
fields: | |
meta_section: | |
display: SEO | |
type: section | |
page_title: | |
display: SEO Page Title |