Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-11-2012, 12:01 AM   PM User | #1
neodjandre
Regular Coder

 
Join Date: Aug 2002
Posts: 145
Thanks: 5
Thanked 0 Times in 0 Posts
neodjandre is an unknown quantity at this point
Cool Change code to display image instead

Code:
//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,
Andy
neodjandre is offline   Reply With Quote
Old 11-11-2012, 02:48 AM   PM User | #2
Fumigator
UE Antagonizer


 
Fumigator's Avatar
 
Join Date: Dec 2005
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Posts: 7,686
Thanks: 42
Thanked 637 Times in 625 Posts
Fumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of lightFumigator is a glorious beacon of light
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.
__________________
Fumigator is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:07 PM.


Advertisement
Log in to turn off these ads.