View functions.php
<?php
//* Template Name: Splash
//* Add custom body class to the head
add_filter( 'body_class', 'splash_add_body_class' );
function splash_add_body_class( $classes ) {
$classes[] = 'splash';
return $classes;
View functions.php
function mhm_footer_city() {
?>
<div class="footer-city-bg">
<div class="wrap">
<img src="<?php echo get_stylesheet_directory_uri(); ?>/images/default-listing.png" alt="" width="" height="" />
</div>
</div>
<?php
}
add_action( 'genesis_before_footer', 'mhm_footer_city' );
View functions.php
add_action( 'pre_get_posts', 'portfolio_items' );
function portfolio_items( $query ) {
if( $query->is_main_query() && !is_admin() && is_post_type_archive( 'portfolio' ) ) {
$query->set( 'posts_per_page', '12' );
}
}
View inline-buttons.html
<div class="three-inline-buttons">
<p>
<a class="button" href="http://example/">Buy Now</a><a class="button" href="http://example/">Buy Now</a><a class="button" href="http://example/">Buy Now</a>
</p>
</div>
View inline-buttons.html
<div class="inline-buttons">
<p>
<a class="one-third first button" href="http://example/">Buy Now</a><a class="one-third button" href="http://example/">Buy Now</a><a class="one-third button" href="http://example/">Buy Now</a>
</p>
</div>
View functions.php
add_filter( 'genesis_post_meta', 'sp_post_meta_filter' );
function sp_post_meta_filter( $post_meta ) {
$post_meta = '[post_categories] [disclosure] [post_tags]';
return $post_meta;
}
View functions.php
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] [disclosure] [post_edit]';
return $post_info;
}
View functions.php
add_filter( 'genesis_post_info', 'sp_post_info_filter' );
function sp_post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] [post_comments] <a href="http://example.com/">Disclosure</a> [post_edit]';
return $post_info;
}
View search.php
<?php
/**
* @author Brad Dalton
* @link http://wpsites.net/web-design/list-titles-only-on-search-results-page/
*/
//* Force full width content layout
add_filter( 'genesis_site_layout', '__genesis_return_full_width_content' );
View video.html
<video loop="1" autoplay="1" preload="metadata" poster="http://local.dev/wp-content/uploads/2016/12/bg-1.jpg" src="http://wpsites.net/wp-content/uploads/2016/12/video.mp4" type="video/mp4">