Geoffrey

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Change Event Category page title #1207018
    Geoffrey
    Participant

    The archive.php simply calls in the header function. I’ve gone through all the template pages in the theme and isolated the title to the header.php. This is where I will have to insert my custom code. To my knowledge, the theme does not provide any hooks or filters. The event page actually uses the page.php template (even though it’s a category) which also calls in the header function.

    Thanks for the tribe function, I will go check it out and let you know how it works out.

    in reply to: Change Event Category page title #1206425
    Geoffrey
    Participant

    Just to clarify, I don’t want to add a category name to the is_category() function because there are already many and the client will be potentially adding categories on the fly, which would not be reflected in the code. Also, if they use other categories outside of the Calendar, I don’t want this code affecting those.

    So I need a global Event Calendar identifier to replace the is_category() so any event categories added by the client in the future will be included. Does something like “is_event_calendar_category()” exist?

    • This reply was modified 9 years, 5 months ago by Geoffrey.
    in reply to: Change Event Category page title #1206405
    Geoffrey
    Participant

    Thank you Geoff. These did not resolve my issue.

    I would like to try some custom code in my child theme’s functions.php to alter the theme’s code but first I need to know if there is a global identifier for detecting an Events Calendar category page? Something I can plug into an if statement.

    I’m going to try to do something along the lines of:

    
    if is_category() {   // where is_category would be the Event Calender identifier
    
    // code to alter h1 entry-title to display the category name instead of "Archive"
     
    }
    

    …or something along those lines.

Viewing 3 posts - 1 through 3 (of 3 total)