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
// Relocate post info | |
remove_action( 'genesis_entry_header', 'genesis_post_info', 12 ); | |
add_action( 'genesis_entry_footer', 'genesis_post_info', 9 ); | |
//* Customize Post Info | |
add_filter( 'genesis_post_info', 'leaguewp_post_info_filter' ); | |
function leaguewp_post_info_filter($post_info) { | |
$post_info = 'BY [post_author_posts_link] • [post_date]'; | |
return $post_info; | |
} |
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
// Relocate Post Meta | |
remove_action( 'genesis_entry_footer', 'genesis_post_meta' ); | |
add_action( 'genesis_entry_header', 'genesis_post_meta', 9 ); | |
// 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
/* --- 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; |
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
// 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
// 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; |