Code for follow button doesn't work
-
I’d like to create my own button and link a code that has the same effect has the original follow button.
If I copy the code created by the code generator, it doesn’t link to anything but shows that the site cannot be found (Ups! Google Chrome konnte piranhaprinzessin.com” data-lang=”de”>follow on wordpress.com< nicht finden). So the code is somehow cut in half and then doesn’t do what it’s supposed to.
Thanks in advance for your efforts.
Nathalie
The blog I need help with is: (visible only to logged in users)
-
Hi there!
There are several types of embed code that we don’t allow on WordPress.com for security reasons, such as iframes and script. You can read more about the code we do and don’t allow here:
Can you post the code you’re trying to embed? You can either put it in this forum thread, or save it in a draft post.
Let me know if I can help with anything else!
-
Thank you for your answer.
The code I’m trying to embed is one that has the same function as the normal wordpress follow button, I just want to have my own customized button.
This is the code:
Follow on WordPress.com
<script type=”text/javascript”>(function(d){var f = d.getElementsByTagName(‘SCRIPT’)[0], p = d.createElement(‘SCRIPT’);p.type = ‘text/javascript’;p.async = true;p.src = ‘//widgets.wp.com/platform.js’;f.parentNode.insertBefore(p,f);}(document));</script>I got it here: http://developer.wordpress.com/docs/follow-button-creation/
-
I see now. That code is ‘script’ code, which we don’t allow on WordPress.com for security reasons.
Have you checked out the Follow Button widget? Is there something about that button that you’re trying to customize?
-
That’s what I thought.
I just want that button to look like the other follow buttons I created (FB, Twitter, etc.) If I use the original wordpress follow button, it does not only look completely different, it also appears in another part of the sidebar and thus makes it less “clean” and also longer.
-
I understand now. The follow button does need to run a script rather than just linking to a webpage, like the rest of your social media buttons.
Let me know if I can help you with anything else though!
-
Exactly!
As I understand, this script is not possible, so my button cannot be modified/ match the rest. Well, there’s worse things in life.
Thanks for your help though!
- The topic ‘Code for follow button doesn't work’ is closed to new replies.