Forums

Disable the plugin (4 posts)

  1. rsenise
    Member
    Posted 1 year ago #

    Hi!
    Thanks for this plugin, it's really great! But there's a thing I'm thinking about: how could I disable it for not being used in a particular image? I know I could leave its alt empty, but then it would not be XHTML valid.
    I haven't tried yet, but maybe it could be disabled by using a style that would "disable" the other styles. What do you think about it?
    Thanks!
    Senise!

    http://wordpress.org/extend/plugins/image-caption-easy/

  2. contentspring
    Member
    Posted 1 year ago #

    Hi Senise,

    Thanks. To disable the caption for a particular image you can as you mention leave the alt description blank or have the description end with a file extension such as .jpg or .gif. EG: My image alt description here.gif

    I know this is not ideal so for the next release I'll create a special tag [nocaption] which if found in the alt description will not add the caption to this image (and strip the special tag [nocaption] out of cause).

    Cheers,
    Mark.

  3. lawvol
    Member
    Posted 1 year ago #

    Is there anyway to remove captions for preexisting images in articles without having to go back and edit every single post? I have at the foot of my posts which have alt text and I don't want them captioned, but I sure don't want to go back thru every single post to clean up.

  4. contentspring
    Member
    Posted 1 year ago #

    You could add this to the plugin code at the very top just after function imagecaptioneasy($html) {

    global $id;
    if ($id < 10) { return $html; }

    Change 10 to whatever post id you don't want captions to effect from.

Topic Closed

This topic has been closed to new replies.

About this Topic