Ed
(@erishel)
Hi @patthai,
Thanks for reaching out, but sorry to hear that you are having issue with custom theming.
Just to verify, the file structure should look like this:
wp-content/themes/your-theme/tribe-events/src/views/module-meta/details.php should be where your custom template file should be located.
Sounds like you are on the right track, just need the correct directory structure.
Hope that helps!
Hi Erishel,
Thanks for helping me out. For some reason it doesn’t work. Let me show you:
1. I amended events-meta-box.php (see http://prntscr.com/j04ea7) and uploaded it to http://prntscr.com/j04ep1 but it still shows up with original text, see http://prntscr.com/j04f3o and the same goes for the details.php file. The changes are not reflected.
Any idea what may go wrong?
Cheers,
Patrick
Ed
(@erishel)
Hey @patthai,
I see what’s going wrong here. You are actually targeting admin-views meta. You’ll want to use wp-content/themes/your-theme/tribe-events/src/views/module-meta/details.php instead of admin-views/event-meta-box.php — that is the backend admin meta.
Let me know how that works!
Hi Ed,
Thanks again! I managed to change the details.php in the front end display.
I would like however to also change the backend admin meta where it says EVENT WEBSITE, see http://prntscr.com/j2fdbz I changed it in the php file, see http://prntscr.com/j2fdh0 but where would I put that one?
Thanks so much for your help!
Ed
(@erishel)
Hey @patthai,
Unfortunately, the template overrides won’t work for admin pages. You can try this guide that explains how to change bits of text with a code snippet → https://theeventscalendar.com/knowledgebase/change-the-wording-of-any-bit-of-text-or-string/
Hope that helps!
Ed 🙂
Ah that explains. Am afraid this is getting a tad too technical for me, so may leave it here 😉 Thanks for all your help, Ed. Much appreciated!
Ed
(@erishel)
For chnages like that, you just work with your functions.php file in your theme. It can be intimidating, but practice makes perfect!
I’ll go ahead and close this on out, if you need help in the future, don’t hesitate to reach out! 🙂
-
This reply was modified 7 years, 8 months ago by
Ed.