I want to edit the public>template-tags>general.php file. I can make edits in the plugin source files (and they work great), but I don’t know where to save the new file in my template, so that it won’t be replaced on plugin update.
That file is not intended to be overrideable, I’m afraid. Can you describe what you are trying to accomplish here? There might be an alternative way of doing it.
I have used it to insert a default image when the event doesn’t have a featured image set.
I also don’t want the big year divider to show when an event is in a prior year. At the very least, I need to be able to MOVE it (for some reason, the default is
month header — APRIL 2012
year divider — 2012
I can swap these around in the general.php file, but then if I update, they’ll be lost.
OK, so for featured images we use our own tribe_event_featured_image() function – this is filterable, though, using a hook of the same name so you could add a placeholder using some logic like this (which you might place in your theme’s functions.php file).
Similarly you can filter and adapt or remove the date separators using our tribe_events_list_the_date_headers filter hook.