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 NEXT/PREV POST + Add Featured Images To Previous & Next Post Nav Links | |
add_action('genesis_after_entry', 'wpsites_image_nav_links', 9 ); | |
/** | |
* @author Brad Dalton | |
* @link http://wpsites.net/web-design/add-featured-images-to-previous-next-post-nav-links/ | |
* //https://crunchify.com/how-to-display-last-updated-on-datetime-of-your-wordpress-blog-post-genesis-framework-hook-included/ | |
//https://stackoverflow.com/questions/7563568/display-post-date-on-previous-next-link | |
// https://sridharkatakam.com/add-links-previous-post-next-post-single-posts-genesis/ | |
*/ | |
function wpsites_image_nav_links() { |
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 a custom image size for hero images on single Posts | |
add_image_size( 'post-image', 1600, 400, true ); | |
add_action( 'genesis_before_entry', 'sk_hero_image' ); | |
function sk_hero_image() { | |
// if we are not on a single Post, abort. | |
if ( !is_singular( 'post' ) ) { | |
return; | |
} |
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
// RELOCATING POST META (CATEGORY LABLE) FROM FOOTER TO ENTRY HEADER AREA | |
// Relocate Post Meta | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
// Filter Post Meta and Use it Condtionally | |
add_filter( 'genesis_post_meta', 'leaguewp_post_meta_filter' ); | |
function leaguewp_post_meta_filter($post_meta) { | |
if ( !is_page() ) { | |
$post_meta = '[post_categories before=""] [post_tags before=""]'; | |
return $post_meta; |
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
// Move Genesis After Entry Widget to Inside Post Entry | |
// https://amethystwebsitedesign.com/move-genesis-after-entry-widget-to-inside-post-entry/ | |
// Add support for after entry widget | |
add_theme_support( 'genesis-after-entry-widget-area' ); | |
// Remove the after entry widget from after blog post entry | |
remove_action( 'genesis_after_entry', 'genesis_after_entry_widget_area' ); | |
// Add the after entry widget at the end of the post content | |
add_action( 'genesis_after_entry', 'genesis_after_entry_widget_area', 9 ); |
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 NEXT/PREV POST | |
// https://sridharkatakam.com/add-links-previous-post-next-post-single-posts-genesis/ | |
add_action( 'genesis_after_entry', 'custom_adjacent_entry_nav', 9 ); | |
function custom_adjacent_entry_nav() { | |
if ( !is_singular( 'post' ) ) { | |
return; | |
} |
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
/* --- Post Meta Styling ---*/ | |
.entry-categories, .entry-tags { | |
display: inline-block; | |
border: 1px solid; | |
padding: 0 10px; | |
background: #1982df; | |
color: white; | |
box-shadow: 1px 1px #fff; | |
text-transform: uppercase; | |
font-weight: bold; |