-
AuthorPosts
-
February 7, 2016 at 8:08 pm #579218
Hi,
I searched the forum here for removing the
[...]
at the “elegant blog” blog page excerpts:
http://screencloud.net/v/j3xPI 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.February 7, 2016 at 8:51 pm #579223Hey 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,
BasilisFebruary 8, 2016 at 1:01 am #579285Thank you, Basilis, but now the whole excerpt is killed :-)
Before:
http://screencloud.net/v/6vjpAfter including your code-snippet:
http://screencloud.net/v/s471February 10, 2016 at 11:03 am #580962February 10, 2016 at 11:14 am #580971Yes, I know this site, Andy, thanks, but my PHP is too bad for gettings this for my own.
Any suggstions anyone please? Thank you.
February 11, 2016 at 7:41 pm #581843Sorry, 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!February 11, 2016 at 10:01 pm #581890Hi!
can u please provide me backend access and ftp?
I will get it short asapRegards,
BasilisFebruary 11, 2016 at 11:33 pm #581925Hi Basilis,
thank you, attached my data …
February 11, 2016 at 11:35 pm #581926February 15, 2016 at 5:35 pm #583616Hey!
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 KashyapFebruary 16, 2016 at 9:18 am #583977You 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.February 18, 2016 at 3:15 pm #585432Hey!
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,
AndyFebruary 18, 2016 at 4:47 pm #585495Thank you, Andy, works fine now!
February 18, 2016 at 5:20 pm #585513Hi!
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 -
AuthorPosts
- The topic ‘Elegant Blog layout: how to remove […] AND add a "read more" text’ is closed to new replies.