Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* The Header for single posts.
*
* Do not content header-main-content-open template part!
@thecodepoetry
thecodepoetry / functions.php
Last active August 29, 2015 14:15 — forked from imemohit/functions.php
Product sidebar global edit
add_action( 'get_header', 'dt_product_sidebar', 10 );
function dt_product_sidebar() {
$config = Presscore_Config::get_instance();
if(is_product() ){
$config->set( 'sidebar_position', 'right' );
$config->set( 'footer_widgetarea_id', 'sidebar_1' );
}