Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
$25
How to animate this div like the others?
I have added a div that contains an image and a link, however this div is showing on the homepage, I would like to hide it on the homepage but show on all other pages.
I would like to make this div animate with the same movement as the page load.
Please see the attached image for the link to my site, The button I would like animating is the register button that shows on the homepage.
Thank You
This question has been answered.
Ross Gosling | 05/23/12 at 10:00am
Edit
Previous versions of this question:
05/25/12 at 9:23am
The experts have suggested, on average, a prize of $30 for this question.
(5) Possible Answers Submitted...
See a chronological view of answers?
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
-

Last edited:
05/23/12
10:07am -

Last edited:
05/23/12
11:16amNilesh shiragave says:If you set your home page as a static from Readings Settings at Settings->Reading in admin then you have to add following code to display div/html code just on home page
<?php if(!is_front_page()): ?>
<!-- Add Your Div Code here -->
<?php endif; ?>
Let me know your home page is set from readings settings or not?Previous versions of this answer: 05/23/12 at 11:16am
- 05/24/12 5:12am
Ross Gosling says:Thank you for you help, I tried your option but did not quite work.
- 05/24/12 5:12am
-

Last edited:
05/23/12
1:04pmArnav Joy says:Hi Ross,
I would like to help you for this , please send me ftp.
-Arnav- 05/24/12 5:12am
Ross Gosling says:Hello Arnav, I have sent you PM
- 05/24/12 2:38pm
Arnav Joy says:Hi Ross ,
Please check the site and let me know if there is any issue. - 05/25/12 8:07am
Arnav Joy says:Ross , Please check I have corrected the issue told by you.
- 05/24/12 5:12am
-

Last edited:
05/23/12
2:02pmAgus Setiawan says:hope this help you :
replace this line : <a href="http://YOURDOMAINNAME/register/" title="Register"><div id="registerbutton"></div></a>
with this code :
<?php
if (!is_home() ) {
<a href="http://YOURDOMAINNAME/register/" title="Register"><div id="registerbutton"></div></a>
}
?>
or
use CURL function to detect is homepage or not :
<?php
function curPageURL() {
$pageURL = 'http';
if ($_SERVER["HTTPS"] == "on") {$pageURL .= "s";}
$pageURL .= "://";
if ($_SERVER["SERVER_PORT"] != "80") {
$pageURL .= $_SERVER["SERVER_NAME"].":".$_SERVER["SERVER_PORT"].$_SERVER["REQUEST_URI"];
} else {
$pageURL .= $_SERVER["SERVER_NAME"].$_SERVER["REQUEST_URI"];
}
return $pageURL;
}
?>
<?
$anuku=curPageURL();
if($anuku=='http://YOURDOMAINNAME/'){
echo '<a href="http://YOURDOMAINNAME/register/" title="Register"><div id="registerbutton"></div></a>';
}
?>- 05/24/12 5:12am
Ross Gosling says:Thank you for you help, I tried both your options but did not quite work.
- 05/24/12 5:12am
-

Last edited:
05/24/12
5:44amakosipau says:If you added the div manually or directly into the file then change it to this:
<?php if( is_home() ) : ?>
your div code here
<?php endif; ?>
This question has expired.
Gabriel Reguly, Ross Gosling voted on this question.
Current status of this question: Completed
Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.
If the asker does not get an answer then they have 10 days to request a refund.
