howto put javascript into templates?
-
I just moved from Blogger to hosting a WordPress blog on my own domain. The import worked well and I’m wildly impressed. <br/><br/>
I’d altered my Blogger template a lot, and I’d like to carry some of the changes over to wordpress. In particular there is a javascript that takes a random picture off my flickr site and inserts it in the header and at the end of each post. (eg https://acid-test.blogspot.com/) When I tried to insert the same script into page.php nothing happens. (eg https://www.greenglim.com/acid-test/ ) <br/><br/>
All I’m capable of with scripting is following somebody else’s work exactly. Can somebody tell me what I need to type, and where to type it, to get the following script to work? I’d really, REALLY be grateful!<br/><br/>
(from Ethan Zuckermann’s site: My Heart’s in Accra)
<sc*ri*pt type=”text/javascript”>
<*!–flickr_badge_background_color = “#FFFFFF”;
flickr_badge_border = “0px solid #FFFFFF”;
flickr_badge_width = “0px”;
flickr_badge_height = “150px”;
flickr_badge_text_font = “0px Verdana, Arial, Helvetica, Sans serif”;
flickr_badge_image_border = “0px solid #000000”;
flickr_badge_link_color = “#000000”;//–>
</scr*ipt>
<scr*ipt type=”text/javascript” src=”https://www.flickr.com/badge_code.gne?nsid=90884061@N00&count=2&display=random&name=0&size=square”></scr*ipt>(nsid changed, in case it’s a bad idea to post those. ??) I’ve been all over the forums and docs looking for an answer, but either it’s staring at me and I don’t see it, or it’s not there. This is my first post here, so apologies if the formatting is messed up. (No preview button!)
- The topic ‘howto put javascript into templates?’ is closed to new replies.