Support » Plugin: Image Widget » Move image above the image title – image widget

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can do this by going into wp-content/plugins/image-widget/views/widget.php and moving the title underneath the image like so

    echo $this->get_image_html( $instance, true );
    
    if ( !empty( $description ) ) {
    	echo '<div class="'.$this->widget_options['classname'].'-description" >';
    	echo wpautop( $description );
    	echo "</div>";
    }
    
    if ( !empty( $title ) ) { echo $before_title . $title . $after_title; }

    To keep this from being overridden you need to add it to your child theme folder. childtheme/image-widget/widget.php

    Thread Starter Nicola Tweed

    (@nicola-tweed)

    Where abouts do I add that into my code?

    Thanks

    Thread Starter Nicola Tweed

    (@nicola-tweed)

    Nevermind, found it

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Move image above the image title – image widget’ is closed to new replies.