RE: [PHP] PHP code problem with pages
| From: | HallMarc Websites | Date: | Sun, 22 Jan 2012 14:46:29 +0000 |
| Subject: | RE: [PHP] PHP code problem with pages | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-316353@lists.php.net to get a copy of this message | ||
>
> Maybe my subject line is not descriptive as I wish, but I just did not
know
> how to put on it.
>
> I have the following problem, I'm using jQuery to make a slide effect
> (horizontal), everything seems to be working find, but I have to add a
mask
> with a white color background, I did this by CSS, now I have 6 pages in
total,
> this is managed by wp anyway, it shows the white bakground mask in every
> page, and I want it to show in every page but not the home page;
[>]
Carlos, this looks like it would better suit your support needs to post this
question on the wordpress.org forums. Here is what I can tell you, you need
to make use of the functions built into WP and the theme you are using. The
function(s) you need to use are as such:
is_front_page();
is_home_page();
is_page();
etc and you can find the documentation in the Wordpress Codex here
http://codex.wordpress.org/Conditional_Tags
You could, alternatively, create your slider as a plugin; create a shortcode
hook, and then call the sliders to the page with the shortcode in the
dashboard WYSIWYG for that page/post.
Marc Hall
HallMarc Websites