Skip Navigation

[Resolved] Change "Read More" Text on button displayed with wpv-post-excerpt

This support ticket is created 4 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by joelW-3 4 years, 5 months ago.

Assisted by: Shane.

Author
Posts
#1832537
Screenshot 2020-11-02 150605.png

Hi - I'm trying to use the wpv-post-excerpt shortcode within a page that is outputting custom post types. Because these are not blog posts, I'd like to change the text that is being displayed after the excerpt from "Read More" to something else (something like "Learn More") but I don't see an attribute for that shortcode to do that. Is this possible? Example page is: hidden link

Thanks!

#1833537

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joel,

Thank you getting in touch.

You can actually use the more attribute to add any text you want "more="

Take a look at the documentation for this below.
https://toolset.com/documentation/programmer-reference/views/views-shortcodes/#vf-153377

Thanks,
Shane

#1833539
Screenshot 2020-11-03 101723.png

I've discovered that the text on the "Read More" button is actually being controlled by a setting in the GeneratePress Premium Blog Module, which I have turned on. Unfortunately, this is the second issue I've run into with this module conflicting or superseding settings with Toolset. The other was whether Featured Images are displayed on Post Archives. If I change the text to say "Learn More" it appears not only for my custom post type archives, but for all blog archives - which I wouldn't want. Regular blog post archives should still say "Read More." Is there any workaround for this that you could recommend? Thanks so much for your help.

#1833613
Screenshot 2020-11-03 103233.png

Thanks for your reply, Shane. I think we were both replying at the same time! I tried the 'more' attribute and it did keep the "Read More" button from the GeneratePress Blog Module from being displayed, so that's great. But I have two other issues now: the first is that, although "Learn More" is now displayed at the end of the excerpt, it is not a link and so does not take you anywhere and the other is that I was hoping to have it as a button for a call to action. Is this possible? Would I have to add a button of my own under the excerpt with a link? Thanks again for your help.

#1833729

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Joel,

Based on the documentation for the shortcode it seems you will need to add the button link manually.

So what you can do is to remove the "read more" text and just use this "..." then wrap the post link shortcode in an anchor tag like this example below.


<a href="[wpv-post-url]">Learn More  </a>

This should generate the link for you to be able to click to the full post from the excerpt.

Thanks,
Shane

#1833799

Thanks, Shane!