How to change the read more text in Genesis



Read more .. helps to link to the main article from your home page or archieves page. It is very easy to change the read more text in Genesis through simple functions. You can use custom text lines like  Continue reading, more… in place of read more. Let us see how to change the read more text which is  default in Genesis theme.

Procedure to change the default read more excerpt text in Genesis Theme

Before stepping further you should create a child theme. If you don’t know how, use our tutorial how to create a child theme for genesis.

#1. Go to Dashboard -> Appearance -> Editor -> Open functions.php of your child theme.

#2. Add the below part of the code at your funtions.php

add_filter( 'excerpt_more', 'child_read_more_link' );
add_filter( 'get_the_content_more_link', 'child_read_more_link' );
add_filter( 'the_content_more_link', 'child_read_more_link' );
function child_read_more_link() {

return '<a href="' . get_permalink() . '" rel="nofollow">More...</a>';
}

#3. In place of more use your own text as you wish

Speak Your Mind

*


8 + eight =