Delete "Reading Continue"


#1

Hi I want to delete the words “delete continue” to remove them by others.
How sould I do ?
Thanks


#2

Hi M

I assume you wan to remove the text/link which says “Continue Reading” after the excerpt.

You can do so by adding the following piece of code in your theme’s functions.php file. I will suggest you to use a child theme to make such changes.


function heiro_excerpt_more( $more ) {
 return '';
}
add_filter( 'excerpt_more', 'heiro_excerpt_more' );

Hope it helps!!!

Thanks


#3

Ok thanks
And what I’ve to do if I want to change the text “Continue Reading” ?

And is there any thing to add a paggination at the end of each categories of my website ?

Thanks


#4

if you want to change the text, return the text you want to use in the same function above.

and pagination would be a different question, so please create a corresponding thread and I will be happy to look at it.

Thanks


#5

But how can I know the function ?
I’ve find a file with “continue Reading” but when I change the text, nothing is happening…


#6

Hi

I have mentioned the file where you can make the changes, which is functions.php file.

You just need to add that function in there and it will work.

Thanks


#7

Ok but when I put your fonction, I’ve juste a texte and the link to the page have desappear
Thanks


#8

Hi

Add this below code instead to get the link working.


function heiro_excerpt_more( $more ) {
 return ' <a class="read-more" href="' . get_permalink( get_the_ID() ) .  '">' . Read More . '</a>'
}
add_filter( 'excerpt_more', 'heiro_excerpt_more' );