Skip to content

Instantly share code, notes, and snippets.

@thecodepoetry
Last active August 29, 2015 14:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save thecodepoetry/92417a991375b05da3d9 to your computer and use it in GitHub Desktop.
Save thecodepoetry/92417a991375b05da3d9 to your computer and use it in GitHub Desktop.
Add sidebar in category archive page, Th7e.2, Armada
add_action( 'get_header', 'dt_archive_sidebar', 10 );
function dt_archive_sidebar() {
$config = Presscore_Config::get_instance();
if(is_archive() || is_category() ){
$config->set( 'sidebar_position', 'right' );
$config->set( 'sidebar_widgetarea_id', 'sidebar_1' );
}
}
@thecodepoetry
Copy link
Author

Add this in your child theme functions.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment