-
-
Save nicolabavaro/fc794ceb7fac283bb37be69604676d85 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
add_action( 'get_header', 'dt_media_sidebar', 10 ); | |
function dt_media_sidebar() { | |
$config = Presscore_Config::get_instance(); | |
if(is_singular( 'post' )){ | |
$config->set( 'sidebar_position', 'left' ); //to change sidebar postion | |
$config->set( 'sidebar_widgetarea_id', 'sidebar_1' ); //repalce with sidebar widget area id | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment