Home › Forums › Calendar Products › Events Calendar PRO › Duplicate Featured Image
- This topic has 7 replies, 2 voices, and was last updated 12 years ago by
Barry.
-
AuthorPosts
-
April 29, 2014 at 3:05 pm #145754
cesua
ParticipantHi,
I just purchased your Pro version and I’m having a bit of trouble with the Featured image when creating a new event.
I added an image that I can place to the left of text in the post area, and then I can add a featured image, but the problem is that when doing that, the featured image is displayed on top of my post and accompanying image. Therefore, I now see two images.
If I get rid of the image I placed in the post area and only use the Featured image, the Image is displayed above the text as opposed to next and to the left of the text like I would like.
How can I fix either one of these issues?thanks.
April 30, 2014 at 9:01 am #146552Barry
MemberHi!
It sounds like a CSS issue, however you don’t seem to have provided a URL where we can see the issue (and as CSS varies massively according to what theme and other plugins you are using, I wouldn’t like to offer a blind guess here).
Thanks!
April 30, 2014 at 1:57 pm #146779cesua
ParticipantHi,
Thanks for the response!
Yeah, I couldn’t include a URL because I’m building my site ocally using MAMP before I make it live.
Not sure if this helps, but I’m using the X theme from themco (http://theme.co). Knowing that, would you be able to tell me what to modify in the CSS, or simply tell me what CSS file to edit.I would GREATLY appreciate your help!
May 1, 2014 at 7:02 am #147390Barry
MemberI’m afraid not – I’m not familiar with that them 🙁
If you can put up a test site where we can see this we’ll be happy to take another look, otherwise unless we’ve got a common point of reference (such as if you find the problem also occurs with a default theme like Twenty Thirteen) I don’t think we’re going to be able to offer much here.
May 1, 2014 at 1:06 pm #147680cesua
ParticipantI understand. How about this, since the featured image appears in the post area, could you tell me how to make sure it at least appears to the left of any text I input? That way the image can be side by side with the text, which is what I’d like.
May 2, 2014 at 9:37 am #148268Barry
MemberSure – so the basis of such a change would be overriding the single-event.php template (basically, placing a copy in your theme at {your_theme}/tribe-events/single-event.php which you can then safely change and customize – but see the Themer’s Guide for complete details).
Within that, find:
<!-- Event featured image --> <?php echo tribe_event_featured_image(); ?>Delete it/move it so it appears right above the_content() – so you basically end up with a block of code like this:
<!-- Event content --> <?php do_action( 'tribe_events_single_event_before_the_content' ) ?> <div class="tribe-events-single-event-description tribe-events-content entry-content description"> <!-- Event featured image --> <?php echo tribe_event_featured_image(); ?> <?php the_content(); ?> </div><!-- .tribe-events-single-event-description --> <?php do_action( 'tribe_events_single_event_after_the_content' ) ?>Now you will need to reduce its size and make sure it sits nicely with the text. There are quite a few ways you might go about this – but for the sake of easiness you might simply add a custom tribe-events.css stylesheet (this would live at {your_theme}/tribe-events/tribe-events.css) and add this rule:
.tribe-events-event-image { float: left; padding-bottom: 10px; padding-right: 10px; width: 30%; }The end result (with Twenty Thirteen) ought to look something like this:

I hope that helps!
May 2, 2014 at 2:53 pm #148537cesua
ParticipantI’m going to try this and see if I can get it right.
Thanks so much!
May 5, 2014 at 6:34 am #150218Barry
MemberOur pleasure 🙂
I’ll go ahead and close this thread – but of course if we can help with anything else please don’t hesitate to create a new thread (or threads) as needed.
…And, if you have a moment, we’re always interested in hearing what our users think about The Events Calendar and how their experience has been – so if you wished to leave a review that would be fantastic.
Thanks again!
-
AuthorPosts
- The topic ‘Duplicate Featured Image’ is closed to new replies.
