{"id":1000305,"date":"2015-08-30T09:35:36","date_gmt":"2015-08-30T16:35:36","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/"},"modified":"2015-09-14T17:20:26","modified_gmt":"2015-09-15T00:20:26","slug":"view-more-link-in-the-event-list-widget-pro","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/","title":{"rendered":"View more link in the event list widget  (pro)"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>in the list-widget.php located at events-calendar-pro\\scr\\views\\pro\\widgets\\ there is the following line:<\/p>\n<pre><code>\t&lt;p class=&quot;tribe-events-widget-link&quot;&gt;\n\t\t&lt;a href=&quot;&lt;?php esc_attr_e( esc_url( $link_to_all ) ) ?&gt;&quot; rel=&quot;bookmark&quot;&gt;\n\t\t\t&lt;?php esc_html_e( &#039;View More&amp;hellip;&#039;, &#039;tribe-events-calendar-pro&#039; ) ?&gt;\n\t\t&lt;\/a&gt;\n\t&lt;\/p&gt;\n<\/code><\/pre>\n<p>Is it possible to show this only, if there is only 1 event in the widget? Cause i have a one page design in which i use the widget with only 1 event and the second widget with show 10 events.<\/p>\n<p>I want to modify the link to the position eg <\/p>\n<pre><code>\t&lt;p class=&quot;tribe-events-widget-link&quot;&gt;\n\t\t&lt;a href=&quot;\/#programm&quot; rel=&quot;bookmark&quot;&gt;\n\t\t\t&lt;?php esc_html_e( &#039;View More&amp;hellip;&#039;, &#039;tribe-events-calendar-pro&#039; ) ?&gt;\n\t\t&lt;\/a&gt;\n\t&lt;\/p&gt;<\/code><\/pre>\n<p>But if i do this, i have also the link in the second widget and if you click on show more &#8211; nothing happens cause it links to itself. So i need an if function or an idea how to set up an second event list widget.<\/p>\n<p>Thanks for your help.<\/p>\n","protected":false},"template":"","class_list":["post-1000305","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>View more link in the event list widget (pro) -<\/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\/view-more-link-in-the-event-list-widget-pro\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"View more link in the event list widget (pro) -\" \/>\n<meta property=\"og:description\" content=\"Hi there, in the list-widget.php located at events-calendar-proscrviewsprowidgets there is the following line: &lt;p class=&quot;tribe-events-widget-link&quot;&gt; &lt;a href=&quot;&lt;?php esc_attr_e( esc_url( $link_to_all ) ) ?&gt;&quot; rel=&quot;bookmark&quot;&gt; &lt;?php esc_html_e( &#039;View More&amp;hellip;&#039;, &#039;tribe-events-calendar-pro&#039; ) ?&gt; &lt;\/a&gt; &lt;\/p&gt; Is it possible to show this only, if there is only 1 event in the widget? Cause i have a one page [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-09-15T00:20:26+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\/view-more-link-in-the-event-list-widget-pro\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/\",\"name\":\"View more link in the event list widget (pro) -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2015-08-30T16:35:36+00:00\",\"dateModified\":\"2015-09-15T00:20:26+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/#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\":\"View more link in the event list widget (pro)\"}]},{\"@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":"View more link in the event list widget (pro) -","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\/view-more-link-in-the-event-list-widget-pro\/","og_locale":"en_US","og_type":"article","og_title":"View more link in the event list widget (pro) -","og_description":"Hi there, in the list-widget.php located at events-calendar-proscrviewsprowidgets there is the following line: &lt;p class=&quot;tribe-events-widget-link&quot;&gt; &lt;a href=&quot;&lt;?php esc_attr_e( esc_url( $link_to_all ) ) ?&gt;&quot; rel=&quot;bookmark&quot;&gt; &lt;?php esc_html_e( &#039;View More&amp;hellip;&#039;, &#039;tribe-events-calendar-pro&#039; ) ?&gt; &lt;\/a&gt; &lt;\/p&gt; Is it possible to show this only, if there is only 1 event in the widget? Cause i have a one page [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/","article_modified_time":"2015-09-15T00:20:26+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\/view-more-link-in-the-event-list-widget-pro\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/","name":"View more link in the event list widget (pro) -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2015-08-30T16:35:36+00:00","dateModified":"2015-09-15T00:20:26+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/view-more-link-in-the-event-list-widget-pro\/#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":"View more link in the event list widget (pro)"}]},{"@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\/1000305","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\/1000305\/revisions"}],"predecessor-version":[{"id":1000518,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/1000305\/revisions\/1000518"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1000305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}