Appearance of a single event

Home Forums Calendar Products Events Calendar PRO Appearance of a single event

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1051644
    Dien
    Participant

    Hello,
    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:

    View post on imgur.com

    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, Dien

    #1052149
    Geoff
    Member

    Hi 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!
    Geoff

    #1053938
    Dien
    Participant

    Hi Geoff,
    This certainly helps to get started because it’s so clear.
    I hope I’ll manage from now on.
    Thanks!
    Dien

    #1053980
    Geoff
    Member

    Right 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

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Appearance of a single event’ is closed to new replies.