• Resolved nevrsmer

    (@nevrsmer)


    Hello,

    Is it possible to use your plugin to run Pinterest’s “Pin It” code on certain posts instead globally? The way we have it now, Pin It appears on all images on all pages and posts on our site. We only want it to appear on the images on certain posts. Also, these pages are created in Guttenberg and do have some Elementor script for some styling.

    This is the script in question: “<script async defer data-pin-hover=”true” src=”//assets.pinterest.com/js/pinit.js”></script>”

    Thank you for your help and have a good day.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Artiss

    (@dartiss)

    No, this isn’t possible. The plugin doesn’t allow the bulk application of code across a site, let alone allow you to then define under which circumstances.

    I designed this to easily allow a piece of code to be added to ad-hoc posts or pages – what you’re asking for is probably something that needs to be done in code (i.e. your theme code).

    Thread Starter nevrsmer

    (@nevrsmer)

    Hello David,

    My apologies. After rereading my question, it really wasn’t clear. I wanted to know if your plugin would permit me to run that script on individual posts.

    I downloaded the plying last night and tried it. It works! I am able to run the script for Pinterest’s “Pin It” on ad-hoc posts.

    Thank you and enjoy the rest of your weekend.

    Cheers!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Pinterest “Pin It” JS Script on Select Posts’ is closed to new replies.