This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Custom Post Types

  • Creator
    Topic
  • #1435
    clamle
    Participant

    Is there support for Widget Area Assignments for Custom Post Types? Currently when you add/edit a new widget area, any custom post types and custom taxonomies are not in the list anywhere?

    Thanks in advance…

Viewing 1 replies (of 1 total)
  • Author
    Replies
  • #1447
    Jason Bobich
    Keymaster

    Hello,

    No, apologies, but there is currently no support for this. In the future this will be possible though with a way to put in custom conditionals.

    Currently the only way to accomplish this would be by actually filtering in your custom sidebar’s ID from functions.php of your Child theme.

    function my_custom_sidebars( $config ){
    	
    	// Post Type Example
    	if( 'your-post-type' == get_post_type() )
    		$config['sidebars']['sidebar_right']['id'] = 'your-custom-sidebar';
    	
    	// Taxonomy archive example
    	if( is_tax( 'your-taxonomy' )  )
    		$config['sidebars']['sidebar_right']['id'] = 'your-custom-sidebar';
    		
    	return $config;
    }
    add_filter( 'themeblvd_frontend_config', 'my_custom_sidebars' );

    Reference: http://codex.wordpress.org/Conditional_Tags

Viewing 1 replies (of 1 total)
  • The forum ‘Alyeska Responsive WordPress Theme’ is closed to new topics and replies.