Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    152
    Thanks
    5
    Thanked 0 Times in 0 Posts

    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

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •