Home › Forums › Calendar Products › Events Calendar PRO › Adding excerpt to community events
- This topic has 5 replies, 4 voices, and was last updated 9 years ago by
Lisa.
-
AuthorPosts
-
February 22, 2017 at 4:16 pm #1244176
Lisa
ParticipantI can’t follow how to add an excerpt field to the community events form so a front end user can enter the excerpt text. I tried looking at an earlier post in the forum that said to add the excerpt field to a copy of the edit-event.php in my child theme. I could not get that to work. I added: <?php tribe_get_template_part( ‘community/modules/excerpt’ ); ?>
I am using the excerpt because, in calendar pro photo view, the entire content shows under the photo unless there is an excerpt. I can skip the excerpt if there is another way to eliminate the content from showing until the user clicks on the event.
February 24, 2017 at 7:28 am #1245193Victor
MemberHi Lisa!
Thanks for reaching out to us! 🙂
Unfortunately, adding the excerpt to the community events front end form is not possible at the moment. We do have an entry as a feature idea here. I suggest you vote for it so it gets its way into a future release.
<q>I can skip the excerpt if there is another way to eliminate the content from showing until the user clicks on the event.</q>
If you don’t want to show the content in the photo view at all, you can do a template override to achieve this. Here are the steps to do that:
- Copy the single-view.php file located at /plugins/events-calendar-pro/views/pro/photo/single-event.php
- Make a new folder in your theme directory called tribe-events
- Make a folder in that one called pro
- Make a folder in that one called photo
- Drop your copied single-view.php file in that last folder
Now that your template is in your theme folder, you can modify it to suit your needs. In this case, you need to comment or delete the line 52 which is the one that prints the excerpt:
<?php echo tribe_events_get_the_excerpt() ?>Let me know how this works for you and if you have any other questions.
Best!
Victor
March 5, 2017 at 2:06 pm #1249682Lisa
ParticipantThanks for the reply Victor. This almost works perfectly. Upcoming Events look axactly the way I want them to. One odd thing thought.. when I click on Previous Events, the previous events now overlap. If I hit F5 and refresh the screen, they straighten up and all is perfect. Any suggestions?
ThanksMarch 6, 2017 at 4:23 am #1249776Victor
MemberHi Lisa!
I’m glad you could work it out. Thanks for letting us know.
As for the overlap problem, that is a known issue of the photo view that happens with some themes. The team is already aware of it and will fix it in a future release.
In the meantime, Could you please open a new thread about this issue? so we can assist you further with it and also let you know when the fix is released.
Thanks!
Victor
March 28, 2017 at 9:35 am #1260847Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Adding excerpt to community events’ is closed to new replies.
