priktop
priktop

Reputation: 1155

jQuery / WP - Animation depending on different pages

I'm making this website, where I want to have a quote shown on the homepage, and hide that on other pages. I'm using WordPress to make this website.

So, I was thinking about the WP function is_home() and than use a jQuery function, but that didn't work.

It's probably something really simple. I just want a animation effect, that the text disappears and the div where it's in shrinks a bit. And ofcourse vice versa when on 'Home'.

Upvotes: 0

Views: 199

Answers (1)

stealthyninja
stealthyninja

Reputation: 10371

I was thinking about the WP function is_home() and than use a jQuery function, but that didn't work

Did you try is_front_page()? I think it would be ideal for only including the quote when you want it to display and the jQuery code that animates the quote's container will of course only work when the container it is targeting is on the page.

Upvotes: 1

Related Questions