Tagged: read more link
-
AuthorPosts
-
February 23, 2016 at 8:15 am #587572
Hi!
Awesome theme!!
I want to change the green text that says ‘Read more’ on the blog exerpt to read ‘More »’. I searched the forum and tried several things and I know the code should go in the functions.php file, but am unable to get the code correct. Can you help?
This is the link to the page on my dev site: http://hriver.roxcap.com/
Thanks!! Jennifer
ps-can you tell me where to look to figure this out? I tried the code provided on WordPress.org for customizing the read more link text but it didn’t work for this theme.February 23, 2016 at 8:51 am #587578Hey jenlioness!
The link is defined under the class
.main_color aplease do let us know if you need more help around that.
Regards,
BasilisFebruary 23, 2016 at 9:03 am #587583Hi Basilis,
I need to change the TEXT not the color. I want it to say: ‘More »’ NOT ‘Read more’.
I tried putting this code from the forum in my functions.php file, but it didn’t work:function change_excerpt( $text )
{return ‘ ID) . ‘”>’ . ‘More »’ . ‘‘;
}
add_filter(‘get_the_excerpt’, ‘change_excerpt’);Thanks for your help!!
February 24, 2016 at 7:19 am #588177Hi Jennifer,
Please send us a temporary admin login so that we can have a closer look. You can post the details in the Private Content section of your reply.
Best regards,
RikardFebruary 24, 2016 at 6:18 pm #588571Thanks, Rikard, details below:
February 27, 2016 at 8:23 am #590185Hi!
Edit the includes > loop-index.php file then look for this code:
$current_post['content'] = $blog_content == "excerpt_read_more" ? $current_post['content'].'<div class="read-more-link"><a href="'.get_permalink().'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"> →</span></a></div>' : $current_post['content']; $current_post['before_content'] = "";
Replace the “Read more” text.
Regards,
IsmaelSeptember 9, 2016 at 3:20 pm #684205I need this same thing. No easy way to change the actual ‘Read more” text without editing a theme file?
September 9, 2016 at 10:01 pm #684362Hey!
Please follow the instructions that are been provided, we are afraid there is no other solution for that.
Thanks a lot for your understanding
Cheers!
Basilis -
AuthorPosts
- You must be logged in to reply to this topic.