Adding a link
-
Hi, I want to add a petition link to our website, It’s from ipetitions and I would like the link at the top or to the left hand side of the home page. I have tried everything and it just wont work! I tried the code in all of the widget options but it’s not happening!! I can add a link but it looks rubbish, I really wanted the proper “sign petition” image box to click on, any help would be amazing! thanks
This is the code-
<div style=”display:block; clear:both; text-align: left;”>
<div style=”text-align:center; font-family:Arial;font-size:11px; width: 200px; margin-top: -5px; padding: 7px 2px 2px; border:1px solid #364950; color: #fff; background-color:#364950; border-top:none;”>
Petition by iPetitions
</div>
<script type=”text/javascript”>
var _gaq = _gaq || []; _gaq.push([‘_setAccount’, ‘UA-307455-4’]); _gaq.push([‘_setDomainName’, ‘ipetitions.com’]); _gaq.push([‘_setAllowHash’, ‘false’]); _gaq.push([‘_setAllowLinker’, true]); _gaq.push([‘_trackPageview’]); (function() { var ga = document.createElement(‘script’); ga.type = ‘text/javascript’; ga.async = true; ga.src = (‘https:’ == document.location.protocol ? ‘https://ssl’ : ‘http://www’) + ‘.google-analytics.com/ga.js’; var s = document.getElementsByTagName(‘script’)[0]; s.parentNode.insertBefore(ga, s);})();
</script>
</div>The blog I need help with is: (visible only to logged in users)
-
Hi!
The issue is that the embed code is an iframe, which we block at WordPress.com. You can read a bit more about that here:
I think the best option would be to link directly to the petition on iPetitions. That way, visitors could click through and sign the petition there. It looks like each petition has a link like this:
http://ipetition.com/str-asp-PetitionID_9-end-SignPetition.htm
Could you try placing a link in a text widget using the following code? You’ll just want to put the link to your petition where it says “PLACE LINK HERE”:
<a href="PLACE LINK HERE">Sign the petition</a>
- The topic ‘Adding a link’ is closed to new replies.