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 | |
/* | |
** 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 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 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) { |