Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Sidebar for specific pages in self-made wordpress theme

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #148785
    hassanwaheed21
    Participant

    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:
    ending of template:
    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.

    #149270
    hassanwaheed21
    Participant

    kindly visit the testing page and check the posts on it. fruityim.com/testing/videos

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.