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
function child_theme_setup() { | |
add_image_size( 'post-index-thumb', 370, 278, true ); | |
add_image_size( 'post-grid-thumb', 280, 280, true ); | |
add_image_size( 'post-featured-img', 870, 580, true ); | |
add_image_size( 'portfolio-featured-img', 761, 456, true ); | |
} | |
add_action( 'after_setup_theme', 'child_theme_setup', 11 ); |
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
body.all-products #main-content .product-box { | |
-webkit-box-flex: 0; | |
-ms-flex: 0 0 auto; | |
flex: 0 0 auto; | |
margin: 0 5px 15px!important; | |
} | |
.category-feature { | |
width: 100%; | |
min-width: 445px; |
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
ul#menu-main-navigation > li > a { | |
pointer-events: none; | |
} | |
h4 { | |
margin-bottom: 1em; | |
} | |
.wrapper { | |
max-width: 1100px; | |
margin: 0 auto; | |
} |
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(); |
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
<?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 | |
/** | |
* 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 | |
/** | |
* 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 | |
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 | |
$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> |