• I was able to create a custom template and add a sidebar area that I can edit on appearance > widgets. My problem is that when I load a page with the custom template, it is displaying the widgets from the default page sidebar area. Here is the code that is calling the sidebar from the custom page template:

    get_header(); ?>
    <?php global $ct_options;
    				if($ct_options['ct_layout'] == 'left-sidebar') {
    				get_sidebar();
    			} ?>
    
    ...
    
       <?php global $ct_options;
    				if($ct_options['ct_layout'] == 'right-sidebar') {
    				get_sidebar();
    			} ?>
    <?php get_footer(); ?>

    The ct_options[ct_layout] is a function in the theme options where you can select the default page template (left or right sidebar). Do i remove this code and just call the sidebar from functions.php? I still want to be able to add widgets to this template.

    The page I’m working on in particular is http://www.goodrichresidential.com/neighborhoods.

    Thanks –

    Dan

  • The topic ‘Call Sidebar from Widgets for Custom Template’ is closed to new replies.