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 | |
/* | |
* Disable lazy loading for Cornerstone image elements | |
* ===== 1. Add this code to functions.php in your child theme | |
* ===== (see here: https://theme.co/docs/child-themes) | |
* ===== 2. Add 'x-no-lazy' class to any image element | |
* ===== OR to any parent element and all image elements within the parent | |
* ===== (including background image elements) will no longer be lazy loaded | |
*/ |
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 | |
/* | |
** CUSTOM LOOPER FOR PRO THEME | |
** 1. Set "Looper Provider" as "Custom" and the hook as "get_my_query" | |
** 2. Add below function to functions.php in child theme | |
** 3. Set Params via JSON in Pro. Takes "post_type" and "tax_query" in format here: | |
{ | |
"post_type": ["post", "tv_show"], | |
"tax_query": { |
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
/* SINGLE BLOG POST */ | |
#relatedblogs h3 { | |
font-size: 150%; | |
font-weight: 900; | |
text-transform: uppercase; | |
font-family: Geogrotesque-Semibold, Helvetica, Arial, sans-serif; | |
margin-bottom: 20px; | |
} | |
div#relatedblogs { |
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
// handle links with @href started with '#' only | |
jQuery(function($){ | |
$(document).on('click', 'a[href^="#"]', function(e) { | |
// target element id | |
var id = $(this).attr('href'); | |
// target element | |
var $id = $(id); | |
if ($id.length === 0) { |