• In the description for Faster Image Insert one of the listed features is…

    “…and even control spacing between images.”

    But how do you do this? I see there is a Set Custom String option with a default entry of “<p></p>” which inserts a space between images but I would prefer my images to be displayed with no space in between. When I try to delete the “<p></p>” it just comes back after I hit save. I assume there must be some code I can enter to remove the space between images but I have no idea what it could be. Does anyone else have a clue?

Viewing 3 replies - 1 through 3 (of 3 total)
  • I would like to know this as well.

    The problem is that the plugin adds nsbp after every image.

    Which piece of code do we need to delete/modify so that it doesn’t do this?

    The huge gaps in between multiple images is very annoying.

    I also just needed to alter this to remove anything being added between and having seen it wasn’t an option, went and looked myself. If you open up faster-image-insert.php in your plugin directory and scroll to line #389, you see the following:

    if(is_string($_POST[ $customstring ]) && !empty($_POST[ $customstring ])) $cstring = $_POST[ $customstring ]; else $cstring = "<p></p>";

    If you comment that line out with “// ” at the beginning of it, the plugin will no longer insert paragraph tags in when you leave the field empty. Hope this helps!

    M4Lovely

    (@m4lovely)

    I just added “//” in front of the code as davemcnally suggested and it worked like a charm. However, on my file it was a little before line #389, so make sure you look for the string carefully.

    Thanks so much Davemcnally!!! OMG, you saved me weeks of headaches!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: Faster Image Insert] How to control spacing between images’ is closed to new replies.