-
-
Save billerickson/54f0aac2d36cc3d183745c9bb03e773a to your computer and use it in GitHub Desktop.
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
<?php | |
//* Register Category Archive widget areas | |
genesis_register_sidebar( array( | |
‘id’ => ‘before-content-cognition-memory’, | |
‘name’ => ‘Before Content Cognition & Memory’, | |
‘description’ => ‘This is a sidebar that goes before the content.’, | |
) ); | |
add_action( ‘genesis_before_content_sidebar_wrap’, ‘child_before_content_cognition_memory_sidebar’ ); | |
/** Loads a new sidebar after the content */ | |
function child_before_content_cognition_memory_sidebar() { | |
if( is_category( ‘3’ ) ) { | |
echo ”; | |
dynamic_sidebar( ‘before-content-cognition-memory’ ); | |
echo ”; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment