0

I am using the Pinterest "Pin It" Button plugin http://pinterestplugin.com which uses this code on my blog pages:

<img border="0" class="pib-count-img" src="//assets.pinterest.com/images/PinExt.png" title="Pin It" />

border="0" is causing my blog to fail HTML5 validation. I keep getting the error: 'The border attribute is obsolete. Consider specifying img { border: 0; } in CSS instead.'

How can I remove the border attribute from the image used for the Pin It button so that my blog pages pass HTML5 validation?

closed as off-topic by gmazzap, fuxia Sep 17 '13 at 15:01

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

  • @G.M. Hi, its pinterestplugin.com – user1794295 Sep 17 '13 at 14:28
  • 2
    Sorry, this is a commercial plugin, it means we can't see the code, and without seeing the code it's not possible help you. Ask to plugin support. – gmazzap Sep 17 '13 at 14:32
1

That code is behind a paywall but assuming that is follows the free version fairly closely, that attribute appears to be hard-coded and I don't see a filter.

That is a lot of code to dig through and it would be easy to miss something, but I don't think you can alter that without hacking the plugin.

  • Thanks for your answer. How can I hack the plugin to remove this small bit of invalid code? – user1794295 Sep 17 '13 at 14:37
  • You would edit the plugin source code. The link posted should guide you to where. But don't. It is a headache. Every time you update you will have to redo the work. Contact the plugin support and push them make the change. – s_ha_dum Sep 17 '13 at 14:39

Not the answer you're looking for? Browse other questions tagged or ask your own question.