Customizing Template Files

Home Forums Ticket Products Event Tickets Plus Customizing Template Files

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #151119
    astcit
    Participant

    Firstly, I just want to say thanks for all the hard work you’ve put into designing and supporting all the plugin’s you offer.

    I have great potential for your Events Calendar Pro & Community Calendar add-on, but I was hoping you could help me out with a couple of things that I can’t seem to work out.
    I’m looking to use the two addons to make an asset booking system for my work.

    I’ve extensively checked out the forum and guides (and tutorials) you offer [Bloody AWESOME by the way]and can’t seem to find the answer I’m looking for;
    I’ve gone through a couple guides to change the heading on the calendar view (https://theeventscalendar.com/altering-or-removing-headings-on-calendar-views/) -BIG THUMBS UP! and ive also checked out the guide to template overrides. (https://theeventscalendar.com/support/documentation/events-calendar-themers-guide/#customfiles?utm_medium=email-support&utm_source=helpscout&utm_campaign=support)

    So it now reads what I want it to say (Bookings), but if you change the calendar view(to Month Week, Day) it actual goes back to saying “Events for….”

    Can I add another line to my child theme’s function.php file to make this change all the way across the entire plug-in? if not, what template files are required to be edited for it to become uniform?

    #151289
    astcit
    Participant

    Also, i find that on each of the views, it has the side bar activated,
    where as on the rest of the site its actually disabled.
    would this too be an additional change to the functions.php file or another template change?

    #152866
    Casey D
    Member

    Hello astcit,

    Thanks for contacting and thanks for your enthusiasm! We’d love it if you would leave us a review and let people know how much you like the plugin! http://m.tri.be/jt

    I believe to change title of each view, the simplest thing is to use gettext to filter for ‘Events for’. This should keep the wording consistent for all views.

    For the sidebar, it looks like you want to get rid of it? That setting you will find in the Events Settings > Display tab. Make sure ‘Events Template’ is set to ‘Default Events Template’ and it should have no sidebar.

    Does this make sense? Let me know if this doesn’t work for you.

    Cheers!

    – Casey Driscoll

    #153444
    astcit
    Participant

    Of course Id be happy to leave a review on how great the addon is; once I’ve completed my mission of making it into the greatest asset booking system my employer has ever seen, i will make sure i paint you guys in high colours for all to see 😉

    Unfortunately i am new to web design so i do need a little more direction; the ‘gettext’ filter, can this be added to my themes custom CSS? or do i need to add it to a .php file?
    Ive also noticed on the “day” view, it says “No events scheduled….”
    will changing the ‘gettext’ filter also fix this?

    The issue with the views seemed to now be gone 🙂 thanks for that.

    #153956
    Casey D
    Member

    Hello astcit,

    All functions must go in a php file. Usually for a WordPress addon like this, it will go in your current theme’s functions.php

    Here is more code that should point you in the right direction.

    Change text from 'Events for' to 'Classes in' in month view

    A lot of learning is experimenting, so feel free to cut things up to get started. If you want *every* instance of ‘events’ changed to ‘bookings’, I think the code you want for the above link is

    return str_replace( ‘Events’, ‘Bookings’, $txt );

    Unfortunately that level of customization goes beyond the scope of the forums.

    Good luck!

    Cheers!

    – Casey Driscoll

    #157590
    astcit
    Participant

    Great. Thanks for pointing me in the right direction with that, I seemed to have changed the headings as I requested.
    Ive also seemed to have gotten rid of my side bar, Thanks alot for your help.
    I do have one more issue if you could help with that….
    The link you gave me (https://theeventscalendar.com/support/forums/topic/change-text-from-events-for-to-classes-in-in-month-view/),
    to change *every* instance of events to bookings doesnt seem to work…
    as stated by Casey Driscoll in his answer, he wasnt sure if it would work 100%.
    are you please able to assit me with this or at least point me in the right direction.

    #158039
    Casey D
    Member

    At times, apostrophes are the bane of my existance. 🙂

    I updated the code and tested it on my machine, seems to work just fine now.

    If it helps you at all in the future, be sure to check code for it’s apostrophes. Sometimes the internet or software changes them to slightly different characters. If they are round ( ‘events_to_classes’ ) they are wrong and won’t work in code. Code apostrophes must be straight up and down ( ‘events_to_classes’ ). Hope this helps!

    2014-05-12 at 11.13 AM

     

    – Casey Driscoll

    #158714
    astcit
    Participant

    Awesome man! it seemed to be that, also the capitalization the first letter of Events was throwing it all off!

    #159417
    Casey D
    Member

    Happy it worked out!

    We’d love it if you would leave us a review and let people know how much you like the plugin! http://m.tri.be/jt

    I’ll go ahead and close this thread. Let us know if we can help with anything else.

    – Casey Driscoll

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Customizing Template Files’ is closed to new replies.