{"id":922665,"date":"2014-12-18T14:21:57","date_gmt":"2014-12-18T22:21:57","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/"},"modified":"2014-12-18T15:52:39","modified_gmt":"2014-12-18T23:52:39","slug":"link-in-the-list-of-events-below-the-mini-calendar-widget","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/","title":{"rendered":"Link in the list of events below the mini calendar widget"},"content":{"rendered":"<p>Below the mini calendar widget is the list of events for that month. Looks great and suits my clients needs (almost) perfectly.<\/p>\n<p>By default, clicking on the name of the event in that list takes you to a custom post page with that event&#8217;s details. There are a lot of questions on your forums about how to alter that link to point to other things. Count me as someone else who would like to see an easier way to customize the target of that event-name link&#8230; It&#8217;s easy to imagine an option on the event page where you could choose a link target from a drop-down control offering options based on people&#8217;s needs (plus a custom option where you could enter an arbitrary URL).<\/p>\n<p>Until that convenience is built, I could use a quick assist about altering the plugin theme files to make it work the way I need it to. I am not really comfortable with PHP but do know how to poke around and make a quick edit when necessary.<\/p>\n<p>I am pretty sure I have located the file that contains the code I need to edit (\/views\/pro\/widgets\/modules\/single-event.php) and the line that contains the link I want to change:<\/p>\n<pre><code>\t\t&lt;h2 class=&quot;entry-title summary&quot;&gt;\n\t\t&lt;a href=&quot;&lt;?php echo tribe_get_event_link(); ?&gt;&quot; rel=&quot;bookmark&quot;&gt;&lt;?php the_title(); ?&gt;&lt;\/a&gt; \n\t\t&lt;\/h2&gt;<\/code><\/pre>\n<p>If I&#8217;m right, I need to change that &lt;tribe_get_event_link&gt; portion since that is the source of the URL I&#8217;m hoping to alter. Instead of the default target URL, I&#8217;d like to use the value from the EVENT WEBSITE:URL field. <\/p>\n<p>Your knowledgeable page for post meta data suggests the name of my desired field is &#8220;_EventURL&#8221; but when I replace &#8220;tribe_get_event_link&#8221; with &#8220;tribe_get_event_EventURL&#8221; or &#8220;_eventurl&#8221; I get a failure. <\/p>\n<p>I&#8217;m not expecting you to provide the customization, but can you point me in the right direction or away from this wrong direction?<\/p>\n<p>(PS I know about setting up the child theme&#8230; to make this experiment simpler I&#8217;m simply looking at\/working with the primary plugin files for now. I&#8217;ll do the child theme once this is figured out.)<\/p>\n","protected":false},"template":"","class_list":["post-922665","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>Link in the list of events below the mini calendar widget -<\/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\/link-in-the-list-of-events-below-the-mini-calendar-widget\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Link in the list of events below the mini calendar widget -\" \/>\n<meta property=\"og:description\" content=\"Below the mini calendar widget is the list of events for that month. Looks great and suits my clients needs (almost) perfectly. By default, clicking on the name of the event in that list takes you to a custom post page with that event&#8217;s details. There are a lot of questions on your forums about [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/\" \/>\n<meta property=\"article:modified_time\" content=\"2014-12-18T23:52:39+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=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/\",\"name\":\"Link in the list of events below the mini calendar widget -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2014-12-18T22:21:57+00:00\",\"dateModified\":\"2014-12-18T23:52:39+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/#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\":\"Link in the list of events below the mini calendar widget\"}]},{\"@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":"Link in the list of events below the mini calendar widget -","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\/link-in-the-list-of-events-below-the-mini-calendar-widget\/","og_locale":"en_US","og_type":"article","og_title":"Link in the list of events below the mini calendar widget -","og_description":"Below the mini calendar widget is the list of events for that month. Looks great and suits my clients needs (almost) perfectly. By default, clicking on the name of the event in that list takes you to a custom post page with that event&#8217;s details. There are a lot of questions on your forums about [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/","article_modified_time":"2014-12-18T23:52:39+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/","name":"Link in the list of events below the mini calendar widget -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2014-12-18T22:21:57+00:00","dateModified":"2014-12-18T23:52:39+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/link-in-the-list-of-events-below-the-mini-calendar-widget\/#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":"Link in the list of events below the mini calendar widget"}]},{"@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\/922665","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":2,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/922665\/revisions"}],"predecessor-version":[{"id":922690,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/922665\/revisions\/922690"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=922665"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}