Home › Forums › Calendar Products › Events Calendar PRO › Appearance of a single event
- This topic has 3 replies, 2 voices, and was last updated 10 years, 3 months ago by
Geoff.
-
AuthorPosts
-
January 7, 2016 at 2:50 am #1051644
Dien
ParticipantHello,
This is the site I am working on:
http://www.subdomein2.semiography.com
and this is a single event page:
http://www.subdomein2.semiography.com/event/aantoonbare-kwaliteit-in-de-gezelschapsdierenartsenpraktijk/or as an image:
This is my question: When arriving on a page with a single event, you see the featured image really big and the copy underneath this image.
Do you know how to reduce the size of the image so that the copy appears at its right side?
Regards, DienJanuary 7, 2016 at 2:25 pm #1052149Geoff
MemberHi Dien and welcome back to the forums!
Yes, that’s totally possible. I do want to note that we are a little limited in how much we can support custom development questions like this, but I’d be happy to point you in the right direction. 🙂
The key to this is to modify the single-event.php template. You can find more information on template overrides in our Themer’s Guide, but it basically breaks down to this:
- Make a copy of the template. It is located in /plugins/the-events-calendar/src/views/single-event.php.
- Make a new folder in your theme directory called tribe-events
- Drop the copied template in that folder
Now that the template is in your theme, you can modify it to suit your needs. In this case, change this line:
<?php echo tribe_event_featured_image( $event_id, 'full', false ); ?>…to this:
<?php echo tribe_event_featured_image( $event_id, 'medium', false ); ?>That will decrease the size of the image. Then, you can use CSS to position the content around it. That might look something like this in your theme’s style.css file or using a plugin like Simple custom CSS:
.tribe-events-event-image img { float: left; margin: 0 35px 35px 0; }Will that help you get started? Please let me know. 🙂
Cheers!
GeoffJanuary 11, 2016 at 8:28 am #1053938Dien
ParticipantHi Geoff,
This certainly helps to get started because it’s so clear.
I hope I’ll manage from now on.
Thanks!
DienJanuary 11, 2016 at 9:39 am #1053980Geoff
MemberRight on! Thanks for following up and best of luck with the customizations. 🙂
I’ll go ahead and close this thread but do please feel free to open a new one if any other questions pop up–we’d be happy to help.
Cheers,
Geoff -
AuthorPosts
- The topic ‘Appearance of a single event’ is closed to new replies.
