View Full Version : Change code to display image instead

11-11-2012, 01:01 AM
//change excerpt
function custom_excerpt_more($more)
return ' &hellip;<br />' . '<a href="'. get_permalink($post->ID) . '">' . 'Continue Reading: '. get_the_title() . '</a>';

add_filter('excerpt_more', 'custom_excerpt_more');

How can i modify the above code to display a floating image to the right instead?

I would also like the link to open in a new window.

many thanks,

11-11-2012, 03:48 AM
Float an image to the right by using CSS command "float: right".

Add the attribute target="_blank" to your anchor tag to force the link to open in a new window/tab.