{"id":1165658,"date":"2016-09-18T12:12:15","date_gmt":"2016-09-18T19:12:15","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/"},"modified":"2016-09-19T11:46:45","modified_gmt":"2016-09-19T18:46:45","slug":"event-detail-page-url-should-contain-target_blank","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/","title":{"rendered":"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot;"},"content":{"rendered":"<p>Hello,<\/p>\n<p>the website link in the &#8220;details&#8221; section and also URLs that were added as an additional filed &#8220;URL&#8221; do not open the link in a new window, because target=&#8221;_blank&#8221; seems not to be set.<\/p>\n<p>I tried to find a solution in the forum, but the only post I found (https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-url-not-working\/) was closed and I could not get the suggested JS snippet work.<\/p>\n<p>I guess via editing the details.php in my child theme (&#8230;\\wp-content\\themes\\mytheme-child-v1.0.0\\tribe-events\\modules\\meta\\details.php) I could make the link open up in a new window &#8211; is this correct?<\/p>\n<pre><code>\/\/ Event Website\r\n\t\tif ( ! empty( $website ) ) : ?&gt;\r\n\r\n\t\t\t&lt;dt&gt; &lt;?php esc_html_e( 'Website:', 'the-events-calendar' ) ?&gt; &lt;\/dt&gt;\r\n\t\t\t&lt;dd class=\"tribe-events-event-url\"&gt; &lt;?php echo $website; ?&gt; &lt;\/dd&gt;\r\n\t\t&lt;?php endif ?&gt;\r\n<\/code><\/pre>\n<p>For the additional fields it seems as if I would need to modify the original file &#8220;general.php&#8221; (..\\wp-content\\plugins\\events-calendar-pro\\src\\functions\\template-tags\\general.php)<\/p>\n<pre><code>$meta = sprintf( '&lt;a href=\"%s\" target=\"%s\"&gt;%s&lt;\/a&gt;',\r\n\t\t\t\t\t\tesc_url( $meta ),\r\n\t\t\t\t\t\tapply_filters( 'tribe_get_event_website_link_target', '_self' ),\r\n\t\t\t\t\t\tapply_filters( 'tribe_get_event_website_link_label', $url_label )\r\n\t\t\t\t\t\t);<\/code><\/pre>\n<p>but I would like to avoid making any changes in the original files. Is there a way to make all Links open up in a new window? Or is there an option in the backend to toggle this on \/ off &#8211; maybe I haven&#8217;t found it yet?!<\/p>\n","protected":false},"template":"","class_list":["post-1165658","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>Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot; -<\/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\/event-detail-page-url-should-contain-target_blank\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot; -\" \/>\n<meta property=\"og:description\" content=\"Hello, the website link in the &#8220;details&#8221; section and also URLs that were added as an additional filed &#8220;URL&#8221; do not open the link in a new window, because target=&#8221;_blank&#8221; seems not to be set. I tried to find a solution in the forum, but the only post I found (https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-url-not-working\/) was closed and I [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/\" \/>\n<meta property=\"article:modified_time\" content=\"2016-09-19T18:46:45+00:00\" \/>\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\/event-detail-page-url-should-contain-target_blank\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/\",\"name\":\"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot; -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2016-09-18T19:12:15+00:00\",\"dateModified\":\"2016-09-19T18:46:45+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/#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\":\"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot;\"}]},{\"@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":"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot; -","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\/event-detail-page-url-should-contain-target_blank\/","og_locale":"en_US","og_type":"article","og_title":"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot; -","og_description":"Hello, the website link in the &#8220;details&#8221; section and also URLs that were added as an additional filed &#8220;URL&#8221; do not open the link in a new window, because target=&#8221;_blank&#8221; seems not to be set. I tried to find a solution in the forum, but the only post I found (https:\/\/theeventscalendar.com\/support\/forums\/topic\/community-events-url-not-working\/) was closed and I [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/","article_modified_time":"2016-09-19T18:46:45+00:00","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\/event-detail-page-url-should-contain-target_blank\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/","name":"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot; -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2016-09-18T19:12:15+00:00","dateModified":"2016-09-19T18:46:45+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/event-detail-page-url-should-contain-target_blank\/#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":"Event detail page &quot;URL&quot; should contain target=&quot;_blank&quot;"}]},{"@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\/1165658","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":1,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1165658\/revisions"}],"predecessor-version":[{"id":1166008,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1165658\/revisions\/1166008"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1165658"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}