Support » Plugin: The Events Calendar » Add rel=nofollow on google and ical links

  • Hello,

    Is it please possible to add some rel=”nofollow” on the export to Google Calendars & ical links?

    Thanks !

Viewing 3 replies - 1 through 3 (of 3 total)
  • Oh and on the links for previous / next months
    eg : https://club-stephenking.fr/events/2019-03

    thanks!

    Plugin Support Ed

    (@erishel)

    Hey there,

    Thanks for reaching out 😄

    Sorry for the wait! We’ve been experiencing a high volume of support requests.

    Try this snippet in your child theme’s functions.php for the iCal question:

    /**
    * Set a noindex HTTP header on iCal feeds.
    *
    * @param  mixed $passthru (unused)
    * @return mixed
    */
    function set_noindex_on_ical_feeds( $passthru ) {
    header( 'X-Robots-Tag: noindex' );
    return $passthru;
    }
    
    add_filter( 'tribe_events_ical_feed_filename', 'set_noindex_on_ical_feeds' );

    For the next/previous links, you could probably do this with JavaScript. I’m not sure if a filter exists for this. These links shouldn’t be causing any SEO issues since they only show the link for months that do indeed contain events.

    Take care,
    Ed 🤟

    Hey, thanks for the reply !
    I could be wrong, but I dont think that it has turned it into nofollow?

    Thanks !

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add rel=nofollow on google and ical links’ is closed to new replies.