Support » Plugin: jQuery Pin It Button for Images » jquery selector with exclusion ( not) do not seem to work

  • Resolved herbertwest1

    (@herbertwest1)


    Hello,

    I want to implement the plugin, and it seems to work quite well.
    However, I have some ecommerce links in my article, that, sadly, do not have any class. So I want to exclude them based on the fact that the img href contains a word, for instance amazon.

    The following code, used in the console, return the right number of items:
    jQuery(‘.mvp-post-soc-out img:not([src*=”amazon”],[src*=”fnac”])’).length

    However, in the plugin, it doesnt seem to work. I tried several things, but I can’t make it work.
    Any ideas or suggestions?

    In the meantime I have no choice but to desactivate the plugin as I don’t want to see the buttons on my ecommerce links…
    Thanks

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Thread Starter herbertwest1

    (@herbertwest1)

    You can forget it.
    I used “Search and replace” to add an id to my buttons, and therefore excluding them with a simpler jquery selector

Viewing 1 replies (of 1 total)
  • The topic ‘jquery selector with exclusion ( not) do not seem to work’ is closed to new replies.