• Resolved patthai

    (@patthai)


    Hi all,

    I don’t manage, for the life of me, to get my amended files (src/admin-views/events-meta-box.php and src/views/module-meta/details.php) to work when uploading to my child theme. I tried to put it in events-tribe, no success. I tried to use the same structure, no success, I tried to put it in my theme folder (events-tribe), no success. I followed all suggestion from https://theeventscalendar.com/knowledgebase/themers-guide/ from it is not working. What could I be doing wrong?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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!

    Thread Starter patthai

    (@patthai)

    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 https://prntscr.com/j04ea7) and uploaded it to https://prntscr.com/j04ep1 but it still shows up with original text, see https://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

    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!

    Thread Starter patthai

    (@patthai)

    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 https://prntscr.com/j2fdbz I changed it in the php file, see https://prntscr.com/j2fdh0 but where would I put that one?

    Thanks so much for your help!

    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 ??

    Thread Starter patthai

    (@patthai)

    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!

    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 6 years, 11 months ago by Ed.
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Help with child files Events Calendar please’ is closed to new replies.