Home › Forums › Calendar Products › Events Calendar PRO › How to override general.php function with functions.php
- This topic has 5 replies, 2 voices, and was last updated 9 years, 10 months ago by aling.
-
AuthorPosts
-
April 21, 2014 at 12:40 pm #138751alingParticipant
Hello-
I’m trying to overwrite this function: tribe_event_featured_image by removing the $image_src line. I copied the whole function into the functions.php file and left the $image_src = ” and where I just removed that line completely but when I refresh my page, it shows up as a blank white page.Can someone tell me how to overwrite it?
April 21, 2014 at 7:28 pm #139032CaseyParticipantaling,
Thanks for getting in touch! I’m not exactly sure why you’d want to remove line 776, as that’s where the featured image is actually retrieved from WordPress. Could you tell me a little more about what you’re trying to accomplish, so I can determine the best way to assist? Thanks! π-Casey-
April 21, 2014 at 8:26 pm #139078alingParticipantHi Casey!
Thanks for getting back to me. Basically I wanted to remove that for view on the individual events page because I’m using the featured image as a “thumbnail” image for the homepage carousel. I will have a larger image in the content area itself and I do not want to be able to view both images. I prefer the content image over the featured image.Hope that makes sense.
Amy
April 22, 2014 at 5:28 am #139323CaseyParticipantAmy,
First, you’ll want to take a look at our themer’s guide to see how to perform template overrides. Then, you should just be able to override ‘views/single-events.php’ and remove the line that says the following:
<?php echo tribe_event_featured_image(); ?>
That will remove the featured image from your single event view. I hope that helps get you pointed in the right direction. Thanks! π
-Casey-
May 9, 2014 at 6:13 am #154859CaseyParticipantI just wanted to follow up and see if youβre all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! π
-Casey-
May 9, 2014 at 9:52 am #155232alingParticipantThanks Casey-
I haven’t had time to play around as I’ve been busy but will look more into it when I get a chance.
Thanks!
Amy -
AuthorPosts
- The topic ‘How to override general.php function with functions.php’ is closed to new replies.