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
h1 { | |
font-family: 'MuseoSans-700', arial, helvetica, sans-serif; | |
color: white!important; | |
} | |
h2 { | |
font-size: 1.625em; | |
font-family: 'MuseoSans-700', arial, helvetica, sans-serif; | |
} | |
h3 { |
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 | |
// Add to existing function.php file | |
// Disable support for comments and trackbacks in post types | |
function df_disable_comments_post_types_support() { | |
$post_types = get_post_types(); | |
foreach ($post_types as $post_type) { | |
if(post_type_supports($post_type, 'comments')) { | |
remove_post_type_support($post_type, 'comments'); |
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() { | |
$("#NationalPhotoMonth_submitButton").click(function(event) { | |
if (!$("#NationalPhotoMonth_Field_48").is(":checked")) { | |
event.stopImmediatePropagation(); | |
alert('You must agree to the Terms and Conditions!'); | |
} | |
}); | |
}); |
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 | |
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 | |
add_action('admin_init', function () { | |
// Redirect any user trying to access comments page | |
global $pagenow; | |
if ($pagenow === 'edit-comments.php') { | |
wp_redirect(admin_url()); | |
exit; | |
} |