php help
-
Hi all
I’m pretty good with CSS and stylesheets but I am a total novice with php.
So I wonder if anyone can help me with this little snippet in the header of my new template for a client:
<div class=”slider”>
<?phpif ( is_front_page() ) {
if (function_exists(“easing_slider”)){ easing_slider(); };
}
?>
So far so good. It works.
Now my problem: Since the div class slider is styled via my stylesheet, where I have given it a fixed height and also a small box shadow, on the rest of the site this code removes the slider successfully but leaves the gap where it should be and the shadow.
So what else do I add to make this disappear altogether on all other pages than my front page?
The site is on this test server https://213.175.194.240:8000/
Thanks in advance for any help.
- The topic ‘php help’ is closed to new replies.