Forums

[resolved] IF PAGE TEMPLATE XYZ THEN DO THIS (2 posts)

  1. c-bass
    Member
    Posted 3 years ago #

    hey,

    i have made a new page template, but also want other parts of the side to change when the client is using the new page template. since i will not know the future id or the name of it, I would like to solve it by using the name of the page template. so something like this:

    If pagetemplage=3colums {} else {}

    any ideas?

  2. c-bass
    Member
    Posted 3 years ago #

    resolved again:
    Source: http://www.davidrisley.com/2009/01/20/how-to-custom-page-template-wordpress/

    instead of

    <?php get_header(); ?>

    replace with new include

    <?php include(”header_new.php”); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic