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.

Sidebar Overrides for posts / portfolio items

  • Creator
    Topic
  • #10847
    Johanna Heath
    Participant

    Just wondering whether it would be possible to have the same sidebar override feature available for posts & portfolio items as we do for pages?

    It saves giving the user access to Widget areas

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

    Hello Johanna,

    The “Sidebar Overrides” meta box should already be available on standard posts along with pages. So, double check your “Screen Options” tab when editing a post to make sure you’ve got that set to show.

    If you check out the Widget Areas plugin, you can see where this is filtered, if you want to add in the portfolio_item post type.

    See here: https://github.com/themeblvd/theme-blvd-widget-areas/blob/master/includes/admin/class-tb-sidebar-manager.php#L61

    function my_sidebar_meta_box( $args ) {
    	$args['post_type'][] = 'portfolio_item';
    	return $args;
    }
    add_filter( 'themeblvd_sidebar_meta_box', 'my_sidebar_meta_box' );
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.