WordPress.org

Forums

Pinterest "Pin It" Button
[resolved] JS file (2 posts)

  1. devoninternational
    Member
    Posted 1 year ago #

    Is there a way to remove the js file and only include in the //assets.pinterest.com/js/pinit.js only on the is_single() blog pages?

    Right now I have the button set to only posts but that js file is importing into the footer for every page. Thanks!

    https://wordpress.org/plugins/pinterest-pin-it-button/

  2. Phil Derksen
    Member
    Plugin Author

    Posted 1 year ago #

    In the settings > Advanced tab, we have an option to disable pinit.js entirely.

    Then in your theme files you could enqueue //assets.pinterest.com/js/pinit.js only when is_single() is true.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Pinterest "Pin It" Button
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.