WordPress.org

Ready to get started?Download WordPress

Forums

Calls to alternative templates (2 posts)

  1. mugger
    Member
    Posted 4 years ago #

    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.

  2. esmi
    Forum Moderator
    Posted 4 years ago #

    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();?>`

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.