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
<div class="one-third first"> | |
</div> | |
<div class="one-third"> | |
</div> | |
<div class="one-third"> | |
</div> |
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
<div class="one-fourth first"> | |
</div> | |
<div class="one-fourth"> | |
</div> | |
<div class="one-fourth"> | |
</div> | |
<div class="one-fourth"> |
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
<div class="one-fifth first"> | |
</div> | |
<div class="one-fifth"> | |
</div> | |
<div class="one-fifth"> | |
</div> | |
<div class="one-fifth"> |
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
<div class="one-sixth first"> | |
</div> | |
<div class="one-sixth"> | |
</div> | |
<div class="one-sixth"> | |
</div> | |
<div class="one-sixth"> |
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
// Add new image size | |
add_image_size( 'portfolio', 320, 200, true ); |
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
// Register Widget Area Above Footer | |
genesis_register_sidebar( array( | |
'id' => 'after_content_widget', | |
'name' => __( 'After Content Widget', 'themename' ), | |
'description' => __( 'This is a widget area that will be centered after the content', 'themename' ), | |
) ); | |
// Add Widget Area Above Footer | |
add_action( 'genesis_after_content', 'after_content_widget' ); | |
function after_content_widget() { | |
genesis_widget_area( 'after_content_widget', array( |
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
// Set the number of posts per page | |
add_filter( 'pre_get_posts', 'be_archive_query' ); | |
// @link http://www.billerickson.net/customize-the-wordpress-query/ | |
function be_archive_query( $query ) { | |
if( $query->is_main_query() && $query->is_archive() ) { | |
$query->set( 'posts_per_page', 12 ); | |
} | |
} | |
// OR |
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
// ----------------------- Set the number of a custom post type posts per page | |
add_filter( 'pre_get_posts', 'be_archive_query' ); | |
// @link http://www.billerickson.net/customize-the-wordpress-query/ | |
function be_archive_query( $query ) { | |
if( $query->is_main_query() && $query->is_post_type_archive('code') ) { | |
$query->set( 'posts_per_page', 24 ); | |
} | |
} |
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
/** Embeda video from url */ | |
add_action( 'genesis_post_content', 'executive_do_video_single' ); | |
function executive_do_video_single() { | |
$value = get_field( "video_url" ); | |
if( $value ) { | |
echo '<p>'; | |
echo wp_oembed_get ( $value ); | |
echo '</p>'; | |
} | |
} |
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
// Remove post comments | |
add_action( 'wp_enqueue_scripts', 'custom_remove_comments' ); | |
function custom_remove_comments() { | |
remove_action( 'genesis_after_post', 'genesis_get_comments_template' ); | |
} |