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
// Relabel Co-Authors in Search & Filter | |
function filter_function_name($input_object, $sfid) { | |
if ($input_object['name'] == '_sft_author') { | |
global $coauthors_plus; | |
// Update option labels before rendering |
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
// Replace default genesis loop | |
remove_action( 'genesis_loop', 'genesis_do_loop' ); | |
add_action( 'genesis_loop', 'your_custom_loop' ); | |
function your_custom_loop() { | |
// Custom Content Here | |
} |
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
// Replace standard sidebar with custom sidebar | |
remove_action( 'genesis_sidebar', 'genesis_do_sidebar' ); | |
remove_action( 'genesis_sidebar_alt', 'genesis_do_sidebar_alt' ); | |
add_action( 'genesis_sidebar', 'your_custom_sidebar' ); | |
function your_custom_sidebar() { | |
echo '<div class="custom-sidebar">'; |
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() { | |
jQuery( '.fl-accordion-button' ).on( 'click', function() { | |
setTimeout( function() { | |
jQuery( window ).trigger( 'equalheights' ); | |
}, 500); | |
} ); | |
} ); |
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
// Register Custom Sidebars/Widget Areas | |
genesis_register_sidebar( array( | |
'id' => 'your-sidebar-id', | |
'name' => __( 'Your Sidebar Name' ), | |
'description' => __( 'Your Sidebar Description' ), | |
) ); |
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
// Custom Footer | |
remove_action( 'genesis_footer', 'genesis_do_footer' ); | |
add_action( 'genesis_footer', 'your_custom_footer' ); | |
function your_custom_footer() { | |
echo '<p>'; | |
echo '© Copyright '; | |
echo '<a href="http://yourdomain.com">Your Domain Name </a>'; |
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
// Replace Co-Author labels in Search & Filter Pro (default name = login/default value=slug) with display_name | |
function filter_function_name($input_object, $sfid) { | |
if ($input_object['name'] == '_sft_author') { | |
global $coauthors_plus; | |
//udpate this field before rendering |