WordPress.org

Support

Support » Plugins and Hacks » Simple Image Widget » [Resolved] How to change the represnation of html?

[Resolved] How to change the represnation of html?

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

    @bradyvercher

    To change the widget output, you’ll need to use a filter and generate your own HTML. Here’s the filter:

    function prefix_simple_image_widget_output( $output, $args, $instance, $id ) {
        // Generate your HTML here and assign it to $output
        return $output;
    }
    add_filter( 'simple_image_widget_output', 'simple_image_widget_output', 10, 4 );

    You can copy the output from the widget to modify as you like; it’s located here. Lines 121-128 aren’t necessary since they’re for an older version of the widget.

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] How to change the represnation of html?’ is closed to new replies.
Skip to toolbar