Default Events Page Title

Home Forums Calendar Products Events Calendar PRO Default Events Page Title

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #905859
    chirocare
    Participant

    I feel like I must be missing something obvious here — is there a way to change the page title on the main events landing page? I’m not seeing it in settings and it appears like the title is something that you are outputting… I don’t see an easy way to change this in the template (/tribe-events/default-template.php) I’ve downloaded and edited for my purposes. How can I adjust this?
    Thanks

    #906265
    Geoff
    Member

    Hi there, Courtney! Thanks for getting in touch and welcome back to the forums. 🙂

    Good question and, no, it’s not obvious so I’m glad you asked.

    The page title can be changed by using a filter in your theme’s functions.php file. Here is a snippet with examples of all the different ways to change the title throughout the entire plugin. Use this and customize it to suit your needs.

    Will that work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #906445
    chirocare
    Participant

    This reply is private.

    #906451
    chirocare
    Participant

    This reply is private.

    #906570
    Geoff
    Member

    Hi Courtney! Thanks for following up. 🙂

    Yes, that should be the list view. Here’s the snippet in full that it looks like you would want to use. This is about as far as I can go for help with custom development questions like this, but I think this should help point you in the right direction.

     I notice that this changes the page title, but not the actual page display title. Maybe you were thinking I only needed the page title (i.e. the one on the tab and in the header)? That is another issue (I have a different ticket open for a weird 404 being triggered by this page). I’m actually looking to update the title on the page. The H2 with class “tribe-events-page-title.”

    Yes, the snippet should affect the same H2 heading. The snippet changes the $title attribute, which is the heading/title on each page with the .tribe-events-page-title class. Thanks for checking!

    I hope this helps! Thanks again for clarifying and following up. 🙂

    Cheers!
    Geoff

    #906613
    chirocare
    Participant

    Thanks for the quick response. Unless I’m mistaken, the only difference in that latest snippet you sent is that you’re including the past event titles, whereas I was only trying to change the upcoming ones. So I’m not sure that helps me any further.

    Either way, this code only changes the title in the header tag, but not in the actual H2. Are you sure it should? Although I am using my own /tribe-events/default-template.php file, I’m not adjusting any other templates — and there’s nothing in my template that would affect that H2. If I have to force it some other less pretty way (jQuery), I can, but it would be nice if I could figure out what’s amiss here.

    #907629
    Geoff
    Member

    I’m so sorry, Courtney! Give this snippet a try–it should do the trick.:)

    This snippet only specifies the Upcoming View, but you can add more conditionals to change the title on other view as well, if needed.

    Cheers!
    Geoff

    #910908
    chirocare
    Participant

    Thanks, that’s exactly what I needed!

    #911827
    Geoff
    Member

    Awesome! I’m so glad that worked out. Thanks for following up and confirming the answer.

    I’ll to go ahead and close this thread, but please feel free to hit us up with a new thread if any other questions pop up. We’d be happy to help. 🙂

    Cheers!
    Geoff

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Default Events Page Title’ is closed to new replies.