{"id":1285412,"date":"2017-05-18T05:20:55","date_gmt":"2017-05-18T12:20:55","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/"},"modified":"2017-05-18T05:20:55","modified_gmt":"2017-05-18T12:20:55","slug":"how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/","title":{"rendered":"How do I set the events-calendar page and all the single events to nofollow?"},"content":{"rendered":"<p>Hi! So, I have a site with an old custom made calendar. Since we don&#8217;t have a staging evnvironment for the client to test the Pro-version on, we thought about implementing it on their production site instead. We did some configuration in our functions.php to redirect not logged in users to our old calendar page whenever they visit a tribe-page.<\/p>\n<pre><code>\/\/redirect url if user is not logged in\nfunction redirect_to_specific_page() {\n\tif ( tribe_is_event_query () &amp;&amp; ! is_user_logged_in() ) {\n\t\twp_redirect( &#039;http:\/\/sajt.se\/slug\/&#039;, 301 ); \n\t  \texit;\n\t}\n}\nadd_action( &#039;template_redirect&#039;, &#039;redirect_to_specific_page&#039; );<\/code><\/pre>\n<p>My question though is, how do I make sure that the new calendar page + its&#8217; various views and single pages isn&#8217;t indexed by google until the client wants it all to go live, for real?<\/p>\n<p>I have read in some places that The Events Cal Pro automatically sets the calendar page and the single pages to nofollow in a meta tag, but inspecting the source code shows nothing like that in my development environment. <\/p>\n<p>Is there an easy way to turn on\/off noindex\/nofollow on all tribe-pages? And what is the recommended way to adjust these things in produktion (when the client wants to show off their new and shiny cal), to make sure the calendar doesn&#8217;t bring bad SEO to the site?<\/p>\n<p>Thank you in advance!<\/p>\n","protected":false},"template":"","class_list":["post-1285412","topic","type-topic","status-closed","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How do I set the events-calendar page and all the single events to nofollow? -<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How do I set the events-calendar page and all the single events to nofollow? -\" \/>\n<meta property=\"og:description\" content=\"Hi! So, I have a site with an old custom made calendar. Since we don&#8217;t have a staging evnvironment for the client to test the Pro-version on, we thought about implementing it on their production site instead. We did some configuration in our functions.php to redirect not logged in users to our old calendar page [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/\",\"name\":\"How do I set the events-calendar page and all the single events to nofollow? -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-05-18T12:20:55+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/theeventscalendar.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\/\/theeventscalendar.com\/support\/topics\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Calendar Products\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Events Calendar PRO\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How do I set the events-calendar page and all the single events to nofollow?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\",\"url\":\"https:\/\/theeventscalendar.com\/support\/\",\"name\":\"\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How do I set the events-calendar page and all the single events to nofollow? -","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/","og_locale":"en_US","og_type":"article","og_title":"How do I set the events-calendar page and all the single events to nofollow? -","og_description":"Hi! So, I have a site with an old custom made calendar. Since we don&#8217;t have a staging evnvironment for the client to test the Pro-version on, we thought about implementing it on their production site instead. We did some configuration in our functions.php to redirect not logged in users to our old calendar page [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/","name":"How do I set the events-calendar page and all the single events to nofollow? -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-05-18T12:20:55+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/how-do-i-set-the-events-calendar-page-and-all-the-single-events-to-nofollow\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/theeventscalendar.com\/support\/"},{"@type":"ListItem","position":2,"name":"Topics","item":"https:\/\/theeventscalendar.com\/support\/topics\/"},{"@type":"ListItem","position":3,"name":"Calendar Products","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/"},{"@type":"ListItem","position":4,"name":"Events Calendar PRO","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/events-calendar-pro\/"},{"@type":"ListItem","position":5,"name":"How do I set the events-calendar page and all the single events to nofollow?"}]},{"@type":"WebSite","@id":"https:\/\/theeventscalendar.com\/support\/#website","url":"https:\/\/theeventscalendar.com\/support\/","name":"","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/theeventscalendar.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1285412","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1285412\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1285412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}