Last active
August 29, 2015 14:12
-
-
Save thecodepoetry/92417a991375b05da3d9 to your computer and use it in GitHub Desktop.
Add sidebar in category archive page, Th7e.2, Armada
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_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' ); | |
| } | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this in your child theme functions.php