[SOLVED] Insert a Slider in Home Page without...
In this website http://www.pallavolofeltre.it/ I have insert a Slider that is very nice.
There is just a problem, I inserted the script in Style & edit CENTER COLUMN / Content ABOVE the LOOP but also if in this case it show correctly in home page, opening the posts, the Slider is always on the top when Instead I would like it can disappear. Can anyone help me? Thanks Mirco |
I'm not sure what you mean? Do you just want it to show in the home page and not the others?
|
Yes! Just only the home page with the last articles
When I open an article instead I want just read the article and not see the Slider! thanks |
Wrap a php if statement around the code and test for the front page. That way it will only show on the front page. Do a google search on 'wordpress is_front' and you should find the syntax
|
nothing...
I tryed on "Content ABOVE the LOOP" to put this code of a slider <?php if (function_exists('easing_slider')){ easing_slider(); }; ?> and it work on the Home Page. But when i open a single post I see the Slider on the top of the single post and I don't want it! I tried to put the code ...if is_front then... else... as you said and also if i put the statement it doesn't work.. The same with is_home... Is the place wrong where to put the code? Can you help me better? |
Quote:
HTML Code:
<?php if (is_front_page() and (function_exists('easing_slider')) ){ easing_slider(); }; ?> |
wonderful! It work now!!!
Thanksxxxxxxxxxxx |
All times are GMT -6. The time now is 02:30 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.