How to change Facebook OG info for default main events page.

Home Forums Calendar Products Events Calendar PRO How to change Facebook OG info for default main events page.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #946293
    Eugene Quiroz
    Participant

    I am able to change the info that appears on Facebook for each individual event but I dont know how to change the meta for Google, Facebook and other social media posts for the main defaul events page.

    #946382
    Barry
    Member

    Hi Eugene,

    That’s a great question.

    It is something of a customization so I’m afraid there’s a limit as to how deep we can go in answering it, but essentially it depends on whether you are using (and are happy building on) an existing SEO plugin or if you want to code something independently, from scratch.

    Whichever approach you go for, you can detect the type of event view using some logic along these lines:

    // For month views
    if ( tribe_is_month() ) {
        /* add code to tweak the meta output here */
    } 
    // For list type views
    elseif ( tribe_is_list_view() ) {
        /* and again for list views */
    }

    I realize that is slightly vague, but without knowing how you are setting things up in the first place it’s tricky to assist further. Even so, does that help at all?

    #950431
    Barry
    Member

    Hi! It’s been a while so I’m going to go ahead and close this thread. If we can help with anything else, though, please don’t hesitate to create new threads as needed. Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to change Facebook OG info for default main events page.’ is closed to new replies.