• I am working on theme which self designed by some one. Theme have right sidebar by default.

    I made a new template for a Video Page ‘page-videos.php’ and call 2 sidebars (left and right) there.

    Video page showing the excerpts for the Video Posts. The template file of video Posts is ‘tpl-video.php’

    Video Page call the template of Video Posts like:
    while ( have_posts() ) : the_post(); {
    get_template_part(‘tpl-video’);

    Video Post template not calling the sidebars, only content coding there,
    starting of template: <?php if( is_single() ) { ?>
    ending of template: <?php } ?>

    Now i want to call same layout or sidebars Video Post template, that i made for Video Page.

    But result is the mix up of default and Video Page template means 3 sidebars there, 2 right and 1 left.

    When I made the ‘tpl-video.php’ template as default template ‘page.php’ then it changes the settings on Video Page,
    may be due to this line in ‘page-videos.php’:
    while ( have_posts() ) : the_post(); {
    get_template_part(‘tpl-video’);

    Kindly any one guide me to the solution which add left sidebar in Video Posts Page via ‘tpl-video.php’ without disturbing any thing else.

  • The topic ‘Sidebar required for Specific page on self made theme’ is closed to new replies.