• Resolved sasa1

    (@sasa1)


    hello. – i know that it surely is somehow possible, but i couldn’t find any documentation … what would be the easieast way of adding a form field where one could add a css class to the outpot html. – most likely to:

    <p class="simple-image {%class%}">

    thanks in advance. so long, sasa.

    https://ww.wp.xz.cn/plugins/simple-image-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Brady Vercher

    (@bradyvercher)

    Hi sasa,

    You might try using a plugin that would allow you to do that for any widget. This one might work: Widget CSS Classes. Otherwise, you would need to duplicate the entire output.

    Cheers,
    Brady

    Thread Starter sasa1

    (@sasa1)

    oh that is super and sound sophisticated easy 🙂 – thx very much!

    and i was thinking about this:

    // Custom fields can be added using this action.
    do_action( 'simple_image_widget_field-' . sanitize_key( $field ), $instance, $this );

    again, thx!

    Thread Starter sasa1

    (@sasa1)

    so i can close…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘adding a class to the image’ is closed to new replies.