Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter spabbit

    (@spabbit)

    For now, I’ve just put the images in manually, without using the featured image function… ta.

    Plugin Author Mat Lipe

    (@mat-lipe)

    Hi Spabbit,

    There is no way to do this out of the box, however with a creative filter it can be achieved.

    Using a short-code or widget with both description and image turned off, add this filter to your active theme’s functions.php file.

    add_filter( 'simple_links_link_output', 'desc_before_image', 1, 6 );
    function desc_before_image( $output, $data, $link, $img, $args, $class ){
    	$output .= sprintf( '%s <span class="link-description">%s</span>', $args[ 'separator' ], $class->getData( 'description' ) );
    	$output .= $class->getImage();
    	return $output;
    }

    Cheers

    Thread Starter spabbit

    (@spabbit)

    Awesome – thanks ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images below titles / description’ is closed to new replies.