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:
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.