Home › Forums › Calendar Products › Events Calendar PRO › "Featured Image" Issue
- This topic has 17 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
July 14, 2013 at 10:01 pm #55135
goodlooknout
ParticipantI love your new update! Everything looks wonderful. I have one question though: Is there a way to center the ‘featured image’ that you choose. I love how you have the related events at the bottom but I noticed you can only have an image on those related events if you use a featured image. My issue is that when you use the featured image the picture looks awkward on the top of the post because it’s always justified left. Is there any way around this?
July 15, 2013 at 4:58 pm #55323Neill
MemberHi goodlooknout
Thanks for the question. Just a quick question back to confirm I understand your question.
Are you talking about the featured image that shows up in the list view? Like I have in this screenshot of your site: http://d.pr/i/ZxoyJuly 16, 2013 at 8:31 am #55427goodlooknout
ParticipantNo, that view actually looks fine with or without the featured image. When your in the event post if I add a featured image it places the image on the top of the post and it’s uncentered and left justified. That is what I don’t like. However, if I don’t place an featured image, at the bottom of each even the related events will have that stock image of a calendar, which I also don;t like. I just want to know if there is a way to adjust the featured image actions on the event post as well as the related events at the bottom of each post.
July 16, 2013 at 7:13 pm #55615Neill
MemberHi goodlooknout,
Ok I get it now! Sorry for the confusion. So would a good solution for you to either:
a) Remove the featured image showing up at the top of the post but still leave the functionality for adding a featured image so that the default calendar image doesn’t show
or
b) Work on the placement of the image when it shows on top of the post?
Either way I can point you in the right direction, I’d just like to be clear and make sure I’m understanding correctly?
July 16, 2013 at 9:17 pm #55634goodlooknout
ParticipantI would like option A. Tee hee…thanks!
July 17, 2013 at 10:29 am #55719Neill
MemberGreat, so thats a pretty simple fix.
The file you are specifically looking for is: events/views/single-event.php
In that file you will be looking for this code here:
Simply go ahead and comment out this code and you should get the results you need. So it will look like this:
<!-- -->
This should just remove the featured image from the top of the post page but you will still be able to use the featured image as a thumbnail for other parts of the plugin such as the calendar tooltip and related events at the bottom of the page.
Let me know how it goes.
July 17, 2013 at 10:32 am #55720Neill
MemberSorry about that…lets try that again
Great, so thats a pretty simple fix.
The file you are specifically looking for is: events/views/single-event.php
In that file you will be looking for this code here:
<?php echo tribe_event_featured_image(); ?>
Simply go ahead and comment out this code and you should get the results you need. So it will look like this:
<!– <?php echo tribe_event_featured_image(); ?> –>
This should just remove the featured image from the top of the post page but you will still be able to use the featured image as a thumbnail for other parts of the plugin such as the calendar tooltip and related events at the bottom of the page.Let me know how it goes.
July 17, 2013 at 4:06 pm #55781goodlooknout
ParticipantIt didn’t work. I looked for the file you told me to change in The Events Calendar NOT the PRO edition. Take it look : http://www.goodlooknout.com/upcoming-event/sip-swap-shop/
It even put a weird arrow below the featured image too.
July 18, 2013 at 1:47 pm #55936Neill
MemberHi Goodlooknout.
Could you send us a copy of the file that you edited via pastebin or gist? They are applications that allow you to copy and paste code that you can share with us soI can see on my end if there is anything causing an issue.
Neill
July 18, 2013 at 1:56 pm #55937goodlooknout
ParticipantSure, here’s the link. It’s good for 24 hours: http://pastebin.com/zAFsNih8
This was after I changed the code
July 18, 2013 at 2:03 pm #55942Neill
MemberAh!
My fault, I see the issue. I think my formatting above made an error with the comment tags.
try this:
<!–- –->Comments should start with ““. My comments didn’t have a double dash. Sorry about that.
July 18, 2013 at 2:08 pm #55944goodlooknout
ParticipantWait, I’m confused…. what should the whole line look like???? Not the best coder here! LOL
July 18, 2013 at 2:12 pm #55945Neill
MemberSorry again goodlooknout! The formating in this forum sometimes doesn’t hold up.
Try this: http://pastebin.com/AMhwau6u
July 18, 2013 at 2:15 pm #55949goodlooknout
ParticipantOk, thanks. I will try. Am I editing this is the correct file? It’s supposed to be the regular events calendar and not pro files, right?!?!?!
July 18, 2013 at 2:17 pm #55950Neill
MemberYep! This is a file and function that is common to both the PRO and regular version of the plugin.
-
AuthorPosts
- The topic ‘"Featured Image" Issue’ is closed to new replies.
