WordPress.org

Ready to get started?Download WordPress

Forums

IF statements for templates (2 posts)

  1. bremmerm
    Member
    Posted 4 years ago #

    I want to use an if state ment that says something like this.

    If using "wide-layout" template

    then do something

    I know the codes for is_home(), is_page('5') etc.

    But is there one for is_template('wide-layout') ? *Tried that code and didn't work

  2. vtxyzzy
    Member
    Posted 4 years ago #

    Several suggestions in this thread.

    See especially the one by greenshady.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.