Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Center area post/pages (http://forum.bytesforall.com/forumdisplay.php?f=32)
-   -   [SOLVED] Insert a Slider in Home Page without... (http://forum.bytesforall.com/showthread.php?t=10242)

mirco65 Oct 12, 2010 06:58 AM

[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

juggledad Oct 12, 2010 07:09 AM

I'm not sure what you mean? Do you just want it to show in the home page and not the others?

mirco65 Oct 13, 2010 12:14 AM

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

juggledad Oct 13, 2010 01:19 AM

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

mirco65 Oct 14, 2010 03:34 AM

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?

juggledad Oct 14, 2010 06:41 AM

Quote:

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.
you need to also test if you are on the front page
HTML Code:

<?php if (is_front_page() and (function_exists('easing_slider')) ){ easing_slider(); }; ?>

mirco65 Oct 15, 2010 01:10 AM

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.