Using an if statement to make functions work on only one page.
-
Hi all,
I’m trying to make a theme function work on only the (static) home page.
I’ve tryed this:
if (is_front_page()) { add_streched_background(array( 'background' => 'http:...jpg', 'shuffle' => 'yes', 'nextSlideDelay' => '12000' )); }
But that breaks the plugin. Any other suggestions?
Thanks!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Using an if statement to make functions work on only one page.’ is closed to new replies.