Home › Forums › Calendar Products › Events Calendar PRO › How to show partial listing on map view with 'find out more' link
- This topic has 6 replies, 3 voices, and was last updated 10 years, 2 months ago by
Support Droid.
-
AuthorPosts
-
December 2, 2015 at 9:26 pm #1034298
Kevin
ParticipantHey. The map view on your demo site displays a partial listing with a link to ‘find out more’. how can I do this on my site? i was hoping it was a simple setting but I can’t find it.
thanks again.
December 3, 2015 at 9:04 am #1034777Josh
ParticipantHey,
Thanks for reaching out to us and bringing this issue to our attention!
We’ve got this bug logged in our internal tracking system and will notify you here as we make progress on this issue. I apologize for any inconvenience that this issue has caused.
In the meantime, you can fix this issue by making some quick modifications to the core plugin. These changes will get overridden with the next update which will include an official fix to this issue.
Within the main Events Calendar plugin, navigate to the src > functions > template-tags > general.php file and open it within your preferred text editor.
Navigate to line #1320 within that file. It should look like:
$excerpt = wp_trim_excerpt( $excerpt );You can change that line to be:
$excerpt = wp_trim_words( $excerpt, '55' );Where “55” is the number of words that you would like the excerpt to be there.
Let me know if you have any further questions or concerns here.
Thanks!
December 6, 2015 at 9:43 am #1036468Kevin
ParticipantHey Josh. I have tried this but it doesn’t seem to have solved the issue. still seeing the full listing on the Map view.
I edited the file in:
wp-content/plugins/the-events-calendar/src/functions/template-tagsis that correct? I also tried to find a similar line in the Community Events file location but didn’t see it.
thanks again.
December 7, 2015 at 7:45 pm #1037290Josh
ParticipantHey Kevin,
That location should be correct. I just tested on my local install with the change and it worked as expected on the Map view.
One question, is your site translated into a different language? We’ve seen some issue with this solution not working for localized sites.
Thanks!
December 9, 2015 at 7:14 am #1038281Kevin
ParticipantHey Josh, no my site is not translated to a different language. Here is a screenshot of the code. At line #1320 I changed the ’55’ to ’20’ just to test it but neither seem to have any affect on my page.
https://www.dropbox.com/s/s8d76vclcbz43jw/Screen%20Shot%202015-12-09%20at%2010.10.38%20AM.png?dl=0
December 10, 2015 at 8:02 am #1038892Josh
ParticipantHey Kevin,
Thanks for providing that screenshot! The function there should be changed to “wp_trim_words()” and not be “wp_trim_excerpt()”
Let me know if this helps.
Thanks!
February 18, 2016 at 8:32 am #1076099Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘How to show partial listing on map view with 'find out more' link’ is closed to new replies.
