Skip to content

Instantly share code, notes, and snippets.

@imemohit
Forked from thecodepoetry/functions.php
Created January 19, 2015 10:00
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 imemohit/1e4eb1a58c9c6cd34559 to your computer and use it in GitHub Desktop.
Save imemohit/1e4eb1a58c9c6cd34559 to your computer and use it in GitHub Desktop.
add_action( 'get_header', 'dt_archive_sidebar', 10 );
function dt_archive_sidebar() {
$config = Presscore_Config::get_instance();
if(is_archive() || is_category() ||is_search() ){
$config->set( 'sidebar_position', 'right' );
$config->set( 'footer_widgetarea_id', 'sidebar_1' );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment