CHANGING THE ‘MY EVENTS’ PAGE TITLE

Home Forums Calendar Products Community Events CHANGING THE ‘MY EVENTS’ PAGE TITLE

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #962924
    Chetan
    Participant

    I used the code from: https://theeventscalendar.com/knowledgebase/modifying-the-community-events-page-titles/ to change the ‘my events’ page title but I got the following error:

    Fatal error: Cannot redeclare change_the_title() (previously declared in /home/projectc/public_html/wp-content/themes/divi-master/functions.php:10) in /home/projectc/public_html/wp-content/themes/divi-master/functions.php on line 16

    The code for ‘CHANGING THE ‘EVENT SUBMISSION FORM’ PAGE TITLE’ worked alright.

    #962939
    Geoff
    Member

    Hi there, Chetan!

    Are you using both snippets together, by chance? If so, you will need to change the name of the filter for one of the snippets so they do not conflict with each. For example, you can change the My Events Page one to be this instead:

    add_filter('tribe_ce_event_list_page_title', 'change_the_my_events_title');
    function change_the_my_events_title() {
    return 'Your New Title Goes Here';
    }

    Does this do the trick? Please let me know. 🙂

    Cheers!
    Geoff

    #963077
    Chetan
    Participant

    Like a CHARM!

    #963263
    Geoff
    Member

    Fantastic! Thanks for following up and letting me know and feel free to hit us up with a new thread if any other questions pop up. 🙂

    Cheers!
    Geoff

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘CHANGING THE ‘MY EVENTS’ PAGE TITLE’ is closed to new replies.