How to set events page heading?

Home Forums Calendar Products Events Calendar PRO How to set events page heading?

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #769016
    rrosen326
    Participant

    You can see the heading on this page is ‘Archives’. I think this is the default heading for a page in my theme for when a heading isn’t set.

    How do I tell the Events Calendar to set the heading to ‘Calendar’

    #769867
    Josh
    Participant

    Hello rrosen326,

    Thanks for reaching out to us!

    In your theme, there is probably a file that contains a list of conditionals for page headings that is controlling the default “Archives” heading that you describe. Within that section, you can add a conditional to check for tribe_is_event_query and set the title to “Calendar” for those pages.

    Let me know if this helps.

    Thanks!

    #770878
    rrosen326
    Participant

    I copied the entire section with the conditionals to my functions.php and it worked.

    But is there a way to set it as a hook, so that if the theme ever changes any of those conditionals, mine just adds on after? (ie: right now I replace their code. I’d like to supplement it.)

    #775576
    Josh
    Participant

    Hello rrosen326,

    Thanks for following up with us! I’m glad the previous solution.

    I’m not sure if it’ll work directly with the “title” section that is being pulled within your current theme, but there is a filter ( tribe_get_events_title() ) that may help to get what you’re looking for. We have a tutorial showing how to use that filter with different templates here.

    Let me know if this helps.

    Thanks!

    #983501
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to set events page heading?’ is closed to new replies.