Home › Forums › Calendar Products › Events Calendar PRO › Picture view word cap until "Read More…" link
- This topic has 7 replies, 3 voices, and was last updated 10 years, 5 months ago by
George.
-
AuthorPosts
-
November 7, 2015 at 1:11 am #1022780
Barbara
ParticipantHi 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!
HansNovember 9, 2015 at 11:24 am #1023372George
ParticipantHey 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!
GeorgeNovember 10, 2015 at 9:58 am #1023831Barbara
ParticipantThis reply is private.
November 10, 2015 at 12:16 pm #1023888George
ParticipantHey @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!
GeorgeNovember 10, 2015 at 3:05 pm #1023968Barbara
ParticipantThanks! I will hold on to it for later as a nice to have.
Much appreciated 🙂
HansNovember 11, 2015 at 11:43 am #1024305George
ParticipantSounds good Hans! I’m sorry that custom code is required at this time, but hope this code and information helps nonetheless 🙂
Cheers!
GeorgeNovember 12, 2015 at 3:49 pm #1025008Geoff
MemberHey 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
November 19, 2015 at 5:25 pm #1028326George
Participant😀
-
AuthorPosts
- The topic ‘Picture view word cap until "Read More…" link’ is closed to new replies.
