Hi,
I need to install some code on the edu clean homepage.
I have added some code (for a popover) into my header.
I now need to drop a short code into the page where I want to popover to appear.
Where can I do this for the homepage of the Edu-clean theme? http://netpeople.ca
P.S. I've struggled with the WPMU popover for over a month now and have moved on.
What is the code bit and where and how do you want it to appear?
This is the code I would need to add to the html of a page.
<script> window.onload=function(){ popoverload(); } </script>
I tested this and added the code to the html editor of atypically page on a WP site. The popover is then activated when a visitor lands on that particular page.
So for the "home page" on the Edu-blogs homepage theme - where would I add this code?
Thanks.
Hiya dlittle,
I'd place it in your header.php file with a conditional tag. Check out the codex for some examples: http://codex.wordpress.org/Conditional_Tags
Thanks!
i think you can this in header.php with conditional tag.
open header.php and add this line before end </head>
<?php if( is_home() || is_front_page() ) { //only load this if in homepage ?> <script> window.onload=function(){ popoverload(); } </script> <?php } ?>
cheers
Awesome! http://netpeople.ca
You did it again Richie.
Thanks, Derek
Become a member
Find out more
Responses (5)
Keeper of the Dark Chocolate — 26th December 2010 00:18 #
What is the code bit and where and how do you want it to appear?
Member — 26th December 2010 18:48 #
This is the code I would need to add to the html of a page.
I tested this and added the code to the html editor of atypically page on a WP site. The popover is then activated when a visitor lands on that particular page.
So for the "home page" on the Edu-blogs homepage theme - where would I add this code?
Thanks.
Sales & Support Lead — 28th December 2010 04:01 #
Hiya dlittle,
I'd place it in your header.php file with a conditional tag. Check out the codex for some examples:
http://codex.wordpress.org/Conditional_Tags
Thanks!
Geeky Developer — 29th December 2010 22:34 #
i think you can this in header.php with conditional tag.
open header.php and add this line before end </head>
<?php if( is_home() || is_front_page() ) { //only load this if in homepage ?><script>
window.onload=function(){ popoverload(); }
</script>
<?php } ?>
cheers
Member — 30th December 2010 17:58 #
Awesome!
http://netpeople.ca
You did it again Richie.
Thanks, Derek
Become a member