WordPress.org

Support

Support » Themes and Templates » CSS if/then for page template

CSS if/then for page template

  • I have this if/then statement:

    if(is_page('2')) :
    else :
    	get_sidebar();
    endif;

    which works great for page 2. What is the if/then statement if I want it to apply to all pages using a particular page template?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘CSS if/then for page template’ is closed to new replies.