• Hi there,

    I copied the code of the Pinterest Widget Builder which is:

    <!– Please call pinit.js only once per page –>
    <script type=”text/javascript” async src=”//assets.pinterest.com/js/pinit.js”></script>

    I put it into the editor of my wordpressarticle – when I click “save” or “publish” and watch it right then, the pin shows up. But when I want switch to the “visual editor”, the pin is away. WordPress removes the whole “<a data-pin-do….” and leaves just this:
    <!– Please call pinit.js only once per page –>
    <script type=”text/javascript” async src=”//assets.pinterest.com/js/pinit.js”></script>

    What is wrong there? I read that other users also had this problem but there is no solution online!

Viewing 5 replies - 1 through 5 (of 5 total)
  • You can’t paste javascript in your WordPress editor.

    You probably need to create a widget instead. I would look for a plugin.

    Thread Starter sloope

    (@sloope)

    Oh okay that seems to be right ?? But would it work if I put the javascript into the theme directly (header?)? As the javascript remains in the post but the following is deleted:

    Thread Starter sloope

    (@sloope)

    oh here is the whole code:

    <a data-pin-do="embedPin" href="https://de.pinterest.com/pin/99360735500167749/"></a>
    
    <!-- Please call pinit.js only once per page -->
    <script type="text/javascript" async src="//assets.pinterest.com/js/pinit.js"></script>
    Thread Starter sloope

    (@sloope)

    Hi,

    sorry but is there somebody that can help me…?

    Reposted the whole code last time.

    No news about this? Same problem to me

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Pinterest Embed Code – removed all the time in the editor!’ is closed to new replies.