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
.fa-heartbeat:before { | |
top: 1px; | |
position: relative; | |
} | |
// add to existing a and i elements | |
#main .new-button a { | |
transition: all .3s ease-in; | |
} |
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 | |
global $post; | |
$my_query_args = array( | |
'posts_per_page' => 0, // change this to any number or '0' for all | |
'tax_query' => array( | |
array( | |
'taxonomy' => 'category', | |
'field' => 'slug', | |
'terms' => 'behavior', | |
'post_type' => 'page' |
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 | |
/** | |
* | |
* | |
* | |
* @link https://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package AAFP | |
*/ |
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 | |
$image = get_field('top_image'); | |
$link = get_field('link', $image['ID']); | |
?> | |
<figure class="featured-image"> | |
<img src="<?php echo $image['url']; ?>" alt="<?php echo $image['alt']; ?>" /> | |
</figure> |
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 | |
global $post; | |
$parents = get_post_ancestors( $post->ID ); | |
/* Get the ID of the 'top most' Page if not return current page ID */ | |
$id = ($parents) ? $parents[count($parents)-1]: $post->ID; | |
$image = get_field('top_image'); | |
if( $image( $id )) { | |
the_post_thumbnail( $id, 'thumbnail'); | |
} |
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 | |
/** | |
* The template for displaying all single posts. | |
* | |
* @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post | |
* | |
* @package AAFP | |
*/ | |
get_header(); ?> |
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 | |
/** | |
* Template part for displaying posts. | |
* | |
* @link https://codex.wordpress.org/Template_Hierarchy | |
* | |
* @package AAFP | |
*/ | |
?> |
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 get_header(); ?> | |
<div id="content-wrap" class="df_container-fluid fluid-width fluid-max col-full"> | |
<div class="df_row-fluid main-sidebar-container"> | |
<?php df_isotope_category_blog(); ?> | |
<div <?php dahz_attr('content'); ?>> |
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 | |
if(!function_exists('dynamo_file')) { | |
/** | |
* | |
* Function used to get the file absolute path - useful when child theme is used |
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
$(".site-header a.category-link").click(function(){ | |
$("p").removeClass("expanded"); | |
}); | |
$(".site-header a.homeAnchor").click(function(e){ | |
e.preventDefault(); |
OlderNewer