Tagged: ,

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #579218

    Hi,

    I searched the forum here for removing the
    [...]
    at the “elegant blog” blog page excerpts:
    http://screencloud.net/v/j3xP

    I would like to

    • remove […]
    • instead adding the text:
      weiterlesen »
    • but it should link to the post

    I found this suggestion in the forum, but it only removes the […].

    Could you please help me?
    Thank you.

    #579223

    Hey COLORIT!

    Please try the following let me know if works properly

    function change_excerpt( $text )
    {
    	
    	return ' <a class="more-link" href="'. get_permalink($post->ID) . '">' . 'Read More »' . '</a>';
    }
    add_filter('get_the_excerpt', 'change_excerpt');

    Let me know if it works properly for what you need to achieve.

    Best regards,
    Basilis

    #579285

    Thank you, Basilis, but now the whole excerpt is killed :-)

    Before:
    http://screencloud.net/v/6vjp

    After including your code-snippet:
    http://screencloud.net/v/s471

    #580962

    Hi!

    please have a look at this: https://codex.wordpress.org/Customizing_the_Read_More

    Cheers!
    Andy

    #580971

    Yes, I know this site, Andy, thanks, but my PHP is too bad for gettings this for my own.

    Any suggstions anyone please? Thank you.

    #581843

    Sorry, Basilis, but I cannot find the error in your code – although Andy gave me a link for customizing this part, I don’t get it to work.
    Could you please tell me what to change in your code snippet, Basilis, so that also the excerpt is displayed? Thank you!

    #581890

    Hi!

    can u please provide me backend access and ftp?
    I will get it short asap

    Regards,
    Basilis

    #581925

    Hi Basilis,

    thank you, attached my data …

    #581926

    .

    #583616

    Hey!

    We love to help you but we cannot access any of the links you have provided us it says Forbidden

    Please check and let us know when we can access it.

    Cheers!
    Vinay Kashyap

    #583977

    You need to access first the Admin Security – see my private data above.
    Nevertheless, some IPs are blocked by Wordfence which tried to login with wrong data.
    Please try again, I have no other idea what might cause this; Elliott and Ismael had no problems these days to access my site.

    #585432

    Hey!

    try this code in functions.php:

     // Replaces the excerpt "more" text by a link
    function new_excerpt_more($more) {
           global $post;
    	return '<a class="moretag" href="'. get_permalink($post->ID) . '"> Read the full article...</a>';
    }
    add_filter('excerpt_more', 'new_excerpt_more');
    

    and adjust as needed.

    Regards,
    Andy

    #585495

    Thank you, Andy, works fine now!

    #585513

    Hi!

    glad we could help. Let us know in a new ticket if you have some more questions related to the theme. We are happy to assist you.

    Best regards,
    Andy

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Elegant Blog layout: how to remove […] AND add a "read more" text’ is closed to new replies.