Support » Plugin: jQuery Pin It Button for Images » Plugin Changing Picture Alignment

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author mrsztuczkens


    Unfortunately, if you’re using not only basic wp classes (like alignright, alignleft, etc.) to position images, sometimes the plugin changes image alignment. It really depends on the styling of the image(inline css, classes, etc.). I’m aware of the issue, but didn’t figure out a way to fix it in a way that will work well with any image styling. If you’ve stumbled upon a similar plugin that doesn’t mess with image positioning, please let me know, I’ll be happy to fix (or at least upgrade a little) this issue in my plugin.

    Or maybe you can disable the plugin on the main page and keep it active on single posts and pages?

    Hey there –

    I had this issue as well, where the plugin was forcing all of the center-aligned pictures to be left aligned.

    I managed to fix this (for my particular case) by adding

    $('p').has('.pinit').css('text-align', 'center');

    to the script.js file of the plugin. I added it inside the jpibfiAddElements function. It sets the text-alignment to center for all ‘p’ elements that have child elements with the class .pinit.

    Just thought I’d let you know how I worked around the issue. It may not work for all cases, but it worked perfectly for my case…

    Thanks. Nice plugin, by the way. Works great.


    Plugin Author mrsztuczkens


    Hi Mike, thanks for your input!

    Unfortunately, it’s just like you’ve mentioned – your solution works great for your case, but not for all cases. For now, I don’t have a good solution for all cases and I don’t think forcing everyone to have centered images is a good thing. Thanks again.



    I’m having the same issue.

    If you find a solution that would be great.

    Thanks for creating this plugin!


    P.S. My site is if you want to see the alignment issue

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Plugin Changing Picture Alignment’ is closed to new replies.