{"id":1592682,"date":"2018-08-08T01:20:59","date_gmt":"2018-08-08T08:20:59","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/"},"modified":"2018-08-08T01:20:59","modified_gmt":"2018-08-08T08:20:59","slug":"place-the-filter-bar-after-the-title","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/","title":{"rendered":"Place the filter bar after the title"},"content":{"rendered":"<p>Hi, <\/p>\n<p>I&#8217;d like to place the filter bar after the title and not before when I choose to display it horizontally.<\/p>\n<p>I&#8217;ve found the line to change in \/the-events-calendar-filterbar\/src\/Tribe\/View.php (lines 221 to 234) :<\/p>\n<pre><code>\t\t\t\n$show_filter = apply_filters( &#039;tribe_events_filters_should_show&#039;, in_array( get_post_type(), array( Tribe__Events__Main::VENUE_POST_TYPE, Tribe__Events__Main::ORGANIZER_POST_TYPE ) ) ? false : true );\n\n\t\t\tif ( $show_filter ) {\n\t\t\t\t\/\/ Only display filters before template if the layout is horizontal\n\t\t\t\tif ( tribe_get_option( &#039;events_filters_layout&#039;, &#039;vertical&#039; ) == &#039;vertical&#039; ) {\n\t\t\t\t\tadd_action( &#039;tribe_events_bar_after_template&#039;, array( $this, &#039;displaySidebar&#039; ), 25 );\n\t\t\t\t} else {\n\t\t\t\t\tif ( tribe_get_option( &#039;tribeDisableTribeBar&#039;, false ) == true ) {\n\t\t\t\t\t\tadd_action( &#039;tribe_events_before_template&#039;, array( $this, &#039;displaySidebar&#039; ), 25 );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadd_action( &#039;tribe_events_bar_after_template&#039;, array( $this, &#039;displaySidebar&#039; ), 25 );\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n<\/code><\/pre>\n<p>in changing :<\/p>\n<pre><code>\nadd_action( &#039;tribe_events_before_template&#039;, array( $this, &#039;displaySidebar&#039; ), 25 );\n<\/code><\/pre>\n<p>to<\/p>\n<pre><code>\nadd_action( &#039;tribe_events_after_the_title&#039;, array( $this, &#039;displaySidebar&#039; ), 25 );\n<\/code><\/pre>\n<p>but I don&#8217;t know how to do this properly \ud83d\ude42<\/p>\n<p>could you help me with that ?<\/p>\n<p>thanks,<\/p>\n<p>regards,<\/p>\n<p>DAvid<\/p>\n","protected":false},"template":"","class_list":["post-1592682","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>Place the filter bar after the title -<\/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\/place-the-filter-bar-after-the-title\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Place the filter bar after the title -\" \/>\n<meta property=\"og:description\" content=\"Hi, I&#8217;d like to place the filter bar after the title and not before when I choose to display it horizontally. I&#8217;ve found the line to change in \/the-events-calendar-filterbar\/src\/Tribe\/View.php (lines 221 to 234) : $show_filter = apply_filters( &#039;tribe_events_filters_should_show&#039;, in_array( get_post_type(), array( Tribe__Events__Main::VENUE_POST_TYPE, Tribe__Events__Main::ORGANIZER_POST_TYPE ) ) ? false : true ); if ( $show_filter ) { [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/\" \/>\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\/place-the-filter-bar-after-the-title\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/\",\"name\":\"Place the filter bar after the title -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2018-08-08T08:20:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/#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\":\"Filter Bar\",\"item\":\"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/filter-bar\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"Place the filter bar after the title\"}]},{\"@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":"Place the filter bar after the title -","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\/place-the-filter-bar-after-the-title\/","og_locale":"en_US","og_type":"article","og_title":"Place the filter bar after the title -","og_description":"Hi, I&#8217;d like to place the filter bar after the title and not before when I choose to display it horizontally. I&#8217;ve found the line to change in \/the-events-calendar-filterbar\/src\/Tribe\/View.php (lines 221 to 234) : $show_filter = apply_filters( &#039;tribe_events_filters_should_show&#039;, in_array( get_post_type(), array( Tribe__Events__Main::VENUE_POST_TYPE, Tribe__Events__Main::ORGANIZER_POST_TYPE ) ) ? false : true ); if ( $show_filter ) { [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/","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\/place-the-filter-bar-after-the-title\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/","name":"Place the filter bar after the title -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2018-08-08T08:20:59+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/place-the-filter-bar-after-the-title\/#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":"Filter Bar","item":"https:\/\/theeventscalendar.com\/support\/forums\/forum\/events\/filter-bar\/"},{"@type":"ListItem","position":5,"name":"Place the filter bar after the title"}]},{"@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\/1592682","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\/1592682\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1592682"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}