Picture view word cap until "Read More…" link

Home Forums Calendar Products Events Calendar PRO Picture view word cap until "Read More…" link

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1022780
    Barbara
    Participant

    Hi there,

    In the list view and using a mobile device to reach my event calendar, there appears a nice ‘Meer weten’ (Read More…) link for further information.

    However, in the Picture view the text is much longer by default (as it appears), therefore I would love to be able to cap the word# at a specific number after which a Read More… link appears. Now it just ends with “…” instead of a “read More’ link. Can this be configured like the List-view?

    Thanks!
    Hans

    #1023372
    George
    Participant

    Hey Hans,

    I’m sorry to hear about these issues – the Photo View’s excerpts should be the same as those in List View, so I”m curious about what could be causing this discrepancy…to get started here, can you share your “System Information” with us? Here’s how → https://theeventscalendar.com/knowledgebase/sharing-sys-info/

    That’ll give us a good place to start in terms of troubleshooting here.

    Thank you!
    George

    #1023831
    Barbara
    Participant

    This reply is private.

    #1023888
    George
    Participant

    Hey @Hans,

    Thanks for elaborating on things and for sharing your information.

    To get the “Find out more” link to appear on photo view, at this time you will unfortunately have first read our themer’s guide here → https://theeventscalendar.com/knowledgebase/themers-guide/

    Using those principles, create a theme-specific version of this Events Calendar Pro plugin file:

    src/views/pro/photo/single-event.php

    You’ll want to duplicate that in your theme and then add a “Find out more” link manually to it right after the excerpt.

    I made an example of this for you to refer to here, check out line 53 → https://goo.gl/41nEV4

    As for shortening or otherwise changing the length of excerpts, you can do that by using the excerpt_length filter built into WordPress itself as described here → https://codex.wordpress.org/Plugin_API/Filter_Reference/excerpt_length

    We can not help you implement any of this custom code, but hopefully all of these resources get you started in the right direction!

    Best of luck with your customizations!
    George

    #1023968
    Barbara
    Participant

    Thanks! I will hold on to it for later as a nice to have.

    Much appreciated 🙂
    Hans

    #1024305
    George
    Participant

    Sounds good Hans! I’m sorry that custom code is required at this time, but hope this code and information helps nonetheless 🙂

    Cheers!
    George

    #1025008
    Geoff
    Member

    Hey there, good news! We just released a patch for this issue and it’s available right now in The Events Calendar 3.12.6. Please update and feel free to hit us back up if any other issues pop up.

    Thanks for your support while we worked on this!

    Geoff

    #1028326
    George
    Participant

    😀

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Picture view word cap until "Read More…" link’ is closed to new replies.