How to show partial listing on map view with 'find out more' link

Home Forums Calendar Products Events Calendar PRO How to show partial listing on map view with 'find out more' link

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #1034298
    Kevin
    Participant

    Hey. 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.

    #1034777
    Josh
    Participant

    Hey,

    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!

    #1036468
    Kevin
    Participant

    Hey 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-tags

    is that correct? I also tried to find a similar line in the Community Events file location but didn’t see it.

    thanks again.

    #1037290
    Josh
    Participant

    Hey 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!

    #1038281
    Kevin
    Participant

    Hey 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

    #1038892
    Josh
    Participant

    Hey 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!

     

    #1076099
    Support Droid
    Keymaster

    This 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.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘How to show partial listing on map view with 'find out more' link’ is closed to new replies.