Support » How-To and Troubleshooting » Calls to alternative templates

Calls to alternative templates

  • Can WP calls invoke alternative templates, such as footer without sidebar?
    <?php get_footer(footnosidebar.php); ?> does not do it.
    I want to modify only selected pages.

Viewing 1 replies (of 1 total)
  • esmi


    Forum Moderator

    Only alternative sidebars.

    Try setting up a blank sidebar called sidebar-blank.php. Then, in footer.php where you normally have `<?php get_sidebar();?>, replace it with:

    <?php if(is_page(‘1,4,8,9’) get_sidebar(‘blank’);
    else get_sidebar();?>`

Viewing 1 replies (of 1 total)
  • The topic ‘Calls to alternative templates’ is closed to new replies.