• tommycopeland

    (@tommycopeland)


    Hello, great theme! I am intersted in adding custom sidebars to post types (specifically, single-portfolio.) I have been getting acquainted with the theme options and source code.

    I created a custom sidebar named “Portfiolio Sidebar” on the theme options page, but couldn’t find a way to insert that sidebar into a single portfolio page. So I looked through the sidebar.php and single-portfolio.php, but couldn’t figure out the if post_type_portfolio code to make the sidebar show up.

    Any help is appreciated.
    Thanks!
    Tom

Viewing 1 replies (of 1 total)
  • Hey,
    The theme doens’t have any options for it. It’s not really what the design layout was set up for but you can add a sidebar with a fucntion:

    function kad_sidebar_on_portfolio_page($sidebar) {
      if (is_singular('portfolio')) {
        return true;
      }
      return $sidebar;
    }
    add_filter('kadence_display_sidebar', 'kad_sidebar_on_portfolio_page');

    If you just add that through a child theme functions.php file it would call in the sidebar.

    Kadence Themes

Viewing 1 replies (of 1 total)

The topic ‘Custom sidebars on post types?’ is closed to new replies.