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
.home-top .featured-content .entry-header .entry-meta, | |
.home-top .featured-content .entry-title { | |
float: left; | |
} | |
.home-top .featured-content .entry-title { | |
padding-right: 10px; | |
} |
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 | |
// Add this to your functions.php file, excluding the opening <?php | |
add_action( 'wp_head', 'nd_remove_homepage_blog' ); | |
// Remove blog section from homepage | |
function nd_remove_homepage_blog() { | |
if ( is_front_page() || is_home() ) { | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
} | |
} |
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 | |
function geoip_append_content( $content ) { | |
$geo = WPEngine\GeoIp::instance(); | |
$content .= "How's the weather in {$geo->city()}, {$geo->region()} {$geo->country()}?<br /><br />"; | |
return $content; | |
} | |
add_filter( 'the_content', 'geoip_append_content' ); |
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 | |
// Do NOT include the opening php tag | |
define( 'WP_POST_REVISIONS', false ); |
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
jQuery(function( $ ){ | |
$(".home-row4 a").attr("target","_blank"); | |
}); |
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 | |
// @link http://www.jaredatchison.com/code/add-next-previous-post-links-genesis/ | |
// Check if there are next or previous posts | |
// First paramter is 'in_same_term'?, make sure it matches third parameter in previous_post_link / next_post_link (which defaults to false) | |
$next = get_adjacent_post( false, '', false ); | |
$previous = get_adjacent_post( false, '', true ); | |
//Set up CSS styles to know if there are next or previous posts only |
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 | |
// Template Name: iFrame | |
/** | |
* The URL of what you want to appear in the iframe | |
*/ | |
$url = 'http://nickdavis.co/full-page-iframe-template-genesis-wordpress/'; | |
/** | |
* Display a full page iFrame and strip out all other content on the page | |
* | |
* @link http://www.dev-explorer.com/articles/full-page-iframe |
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
<a href="https://leanthemes.co/themes/milton/" target="_blank"><img src="http://demo.leanthemes.co/milton/wp-content/uploads/sites/5/2014/10/image-sponsored-by.png" alt="Milton theme" /></a> |