[Plugin: iProtect] Centered Image Fix
-
First of all, great plug-in thank you so much. Tested in Firefox and Safari on OSX 10.6.2 working great.
The only thing that bothered me was that it automatically aligned my images left. This is because the plug-in makes your image the background of a div and then inside the div uses the image tag to overlay the background with the transparent gif.
To fix this, make sure the plugin is deactivated, and edit it in the plugin editor. I added the background-position tag to the div and the class=”aligncenter” to the image.
$replacement = '<div $6 $8 style="background-image:url($4); background-repeat: no-repeat;background-position:center;"><img class="aligncenter" src="' . WP_PLUGIN_URL . '/iprotect/trans.gif" $5 $6 $8 /></div>';
Hope this helps!
- The topic ‘[Plugin: iProtect] Centered Image Fix’ is closed to new replies.