Slider only on Front page
I'm using Smooth Slider to showcase featured content, but I've only been able to put it above the loop on the main index template. This causes it to show up anywhere. Where can I put it so that it only shows up on the home page?
|
wrap the html in a PHP if statement
HTML Code:
<?php if (is_front_page) { ?> |
Smooth Slider is actually called with a PHP statement:
PHP Code:
PHP Code:
|
try this
HTML Code:
<?php if (is_front_page) { |
No need to mess with the theme files. In the theme options, style and edit center column/content above the loop, just put
Code:
<?php |
Thanks so much for this post! I am feeling pretty darn good about being able to figure this out with the help here! I got the Easing Slider Plugin to work and show only on my home page using this code in Above the Loop!
<?php if( is_front_page() AND function_exists('easing_slider')) { easing_slider(); } ?> Woot :) |
All times are GMT -6. The time now is 03:03 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.