Jennifer

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Jennifer
    Participant

    Hi Nico.

    That snippet did save this time. However, it didn’t change what I was hoping it would change.

    The site is now live, so you’ll be able to see this page. Take a look: http://www.morleymanordearborn.com/events/2016-06-13/

    What I want to change is the WordPress title of this page, which right now is “WOMEN’S POOL, 6 PM – GAME ROOMEUCHRE, 6:30 PM – SOCIAL HALL”

    Is there a way to change that?

    Thanks!
    Jen

    Jennifer
    Participant

    Hi Nico.

    Thanks for the link. I think that is what I want. I just tried it, though, and crashed my site. (Whoops!)

    I added the following code at the end of the functions.php file, after the last } of the previous function and right before the final ?>

    /**
    * Defines alternative titles for various event views.
    *
    * @param string $title
    * @return string
    */
    function filter_events_title( $title ) {
    // Day view category page
    elseif ( tribe_is_day() && is_tax() ) {
    $title = 'Day view category page';
    }
    return $title;
    }

    Do you know why adding that would have generated a 500 error? I’m pretty good with html and css, but am really a disaster with php. ?

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