Und da hab ich gleich noch ein übles Thema:
Auf den obersten beiden Seiten (Mitglieder und Gruppen) bekomm ich die Sidebar einfach nicht angezeigt. Auf den Unterseiten hat es mit folgendem Knoff-Hoff geholfen:
Hab in der Functions.php folgende Snippets eingefügt, jedoch finde ich zu besagten beiden "Seiten" keine ID.
Da es so einfach absolut bescheiden aussieht, bräuchte ich da auch mal einen kleinen Tipp :-)
add_action( 'get_header', 'dt_media_sidebar', 10 );
function dt_media_sidebar() {
$config = Presscore_Config::get_instance();
if(is_attachment() && is_single()){
$config->set( 'sidebar_position', 'right' );
$config->set( 'footer_widgetarea_id', 'sidebar_1' );
}
}
function dt_bbypress_template_config1()
{
if( is_bbpress() )
{
$pagid = 35615; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );
}
}
add_action( 'get_header', 'dt_bbypress_template_config1', 10 );
function dt_buddypress_template_config2()
{
if( bbp_is_single_user() ){
$pagid = 35615; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );
}
}
add_action( 'get_header', 'dt_buddypress_template_config2', 10 );
function dt_bbypress_template_config3()
{
if( is_bbpress() )
{
$pagid = 35609; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );
}
}
add_action( 'get_header', 'dt_bbypress_template_config3', 10 );
function dt_buddypress_template_config4()
{
if( bbp_is_single_user() ){
$pagid = 35609; //sidebar, footer settings of the page id given will be applied to user profiles
$config = presscore_get_config( );
presscore_config_base_init( $pagid );
}
}
add_action( 'get_header', 'dt_buddypress_template_config4', 10 );