Dynamically changing Calendar Title

Home Forums Calendar Products Events Calendar PRO Dynamically changing Calendar Title

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #780803
    cmmize
    Participant

    I want to specify a different Title on the calendar for different categories calendars displayed. (http://mydomain.com/events/category/investor-events/). I see that the title is pulled in this loop.php (/wp_theme/wp-content/plugins/the-events-calendar/public/template-tags/loop.php) on line 102. Since you echo the title and don’t return it I can’t grab it in the content.php(which I can modify in my theme). How do i put that loop.php in my theme so I can customize it and not poison your installed plugin. I have put the /view directory files in the theme but didn’t find documentation on how to put core files in the theme.

    #781401
    Geoff
    Member

    Hi there Charles and welcome to the forums!

    Unfortunately, the view files are the ones that can be overridden in your theme directory. However, you might be interested in checking out this snippet, which helps alter the calendar title. It contains a lot of different instances and conditions, but you should be able to play around with it to meet the specific conditions you are looking for. You can drop that directly in your functions.php file without having to touch any core or view template files. 🙂

    Does that make sense? Will that work for you? Please let me know.

    Cheers!
    Geoff

    #810297
    Geoff
    Member

    Hey there, Charles! Just checking in to see if there’s been any further update or if you still need assistance on this one–let me know. 🙂

    Cheers!
    Geoff

    #810328
    cmmize
    Participant

    Thanks Geoff, I did solve this by another method, but will keep this bookmarked. Thanks for the follow up.

    #810336
    Geoff
    Member

    My pleasure! Thanks for following up and please feel free to open a new thread if any other questions pop up–we’d be happy to help. 🙂

    Cheers,
    Geoff

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Dynamically changing Calendar Title’ is closed to new replies.