More on adding a read more link
-
Further to a discussion on this forum from a couple of years back I also needed an option to output a read more hyperlink from the plugin so have modified the plugin to allow this.
The code posted back in the post from 2016 is no longer quite right so I’m sharing my mods here: https://cloudup.com/iReu-b7jUxF – my changes are on lines 162 and 329.
@brianhogg you mentioned adding this option to the plugin – feel free to incorporate/clean up my code to do this.
Thanks,
Steve
-
Hi Steve!
The option for things like a button (ie. in the default or the compact designs) was added to the pro version, with the ability to change the text/background colors along with the text content of the button (adding
button="Read More"to the shortcode).The ability to create custom templates without modifying the core plugin was also added to the pro version, for those that don’t want to keep changes up to date or create some kind of filter code for it. For example adding a custom ‘read more’ link (not button) would be copying whichever template, then adding:
<a href="<?php echo tribe_get_event_link() ?>">Read more</a>near the end where you’d like it.
Cheers!
-
This reply was modified 7 years, 10 months ago by
Brian Hogg.
Thanks for the quick response Brian, got that. I’ll check out the pro version.
HI. It seems like there is a “read More” link added (free version) but it isn’t actually a link. Any ideas on this?
Hi @efishinsea!
There is no “read more” link in the free version of this plugin, so might be your theme or another plugin adding it.
If you have the URL of the page where you added the shortcode, and could mention exactly what
[ecs-list-events]shortcode you are using, would be curious to see what is being generated at least.Cheers!
This is the shorcode used:
[ecs-list-events limit=’3′ order=’DESC’ viewall=’false’ thumb=’true’ venue=’true’ eventdetails=’true’ thumbwidth=’300′ thumbheight=’167′ excerpt=’400′ contentorder=’thumbnail, title, date, venue, excerpt’]
On this page:
http://urlgone.com/446b1d/Hi @efishinsea!
I’m not able to see the page (the URL doesn’t work) but it must be your theme or another plugin adding a “read more” since this plugin doesn’t add one.
You can determine which plugin or theme is adding it with the following steps:
1. Ensure you have a backup of your site in case there are any issues when disabling/enabling plugins or your theme
2. Disable all plugins (except the calendar plugin and this plugin), and switch to a default theme like Twenty Sixteen then verify the issue is resolved
3. Re-enable your plugins and switch back to your previous theme one by one verifying if the issue is still occurring, and note which one causes it to appearYou can then find out from the theme or plugin author how that ‘read more’ might be removed. And the pro version does give you the
button="Read More"option on most designs, which would be an actual link πCheers!
Hi
I’m try to edit “list-widget.php” and add “Read more” link.
So I add suggestion of @brianhogg.
https://ww.wp.xz.cn/support/topic/more-on-adding-a-read-more-link/#post-10549692
“>Read moreBut I cannot get FULL LENGTH of the posts link.
Please tell me any suggestions.
Hi @genepine!
The suggestions were for the pro version to add the link/button for each event, either using
button="true"or editing the template.There’s also an option in the pro for
raw_descriptionanddescriptionto show the full length of posts:https://eventcalendarnewsletter.com/events-calendar-shortcode-pro-options/#description
Otherwise you’d need to create some custom code to do that.
Cheers!
-
This reply was modified 7 years, 10 months ago by
The topic ‘More on adding a read more link’ is closed to new replies.