{"id":63545,"date":"2013-08-28T19:51:39","date_gmt":"2013-08-29T02:51:39","guid":{"rendered":"http:\/\/tri.be\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/"},"modified":"2015-07-07T06:27:46","modified_gmt":"2015-07-07T13:27:46","slug":"control-in-wp_head-for-tribe-events","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/","title":{"rendered":"Control &quot;title&quot; tags  in wp_head for tribe events"},"content":{"rendered":"<p>I want to control the &#8220;title&#8221; tag in the &#8220;head&#8221; section and haven&#8217;t been able to figure out a good way to do it.  I&#8217;m using a genesis theme (news) and tried using a few SEO plugins to no avail (Yoast, Ultimate, etc).  I also tried a filter in the functions file on wp_head and then using the &#8220;tribe_is&#8230;.&#8221; functions to create and if\/else statement as shown https:\/\/gist.github.com\/jo-snips\/2415009\/raw\/87d950358ae745d3b4bac6158fc6ef047e50aa35\/events-conditional-wrappers.php<\/p>\n<p>That works, but filters all other pages incorrectly.  Meaning that now the homepage reads the same as the &#8220;tribe_is_month&#8221; and the category and tag pages read according to some other combination in the conditional.  I also tried adding in &#8220;is_home&#8221;, is_category, is_tag, etc to overide, but that wouldn&#8217;t work because depending on where it is in the elseif order, one overrides the other and i&#8217;ll have mixedup  tags.  I read somewhere that because of when the tribe plugin is called some of those conditional wrappers would work and some wouldn&#8217;t.<\/p>\n<p>I&#8217;m assuming since this is such a common thing that I&#8217;m missing something.<\/p>\n<p>Any help is greatly appreciated.<\/p>\n","protected":false},"template":"","class_list":["post-63545","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>Control &quot;title&quot; tags in wp_head for tribe events -<\/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\/control-in-wp_head-for-tribe-events\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Control &quot;title&quot; tags in wp_head for tribe events -\" \/>\n<meta property=\"og:description\" content=\"I want to control the &#8220;title&#8221; tag in the &#8220;head&#8221; section and haven&#8217;t been able to figure out a good way to do it. I&#8217;m using a genesis theme (news) and tried using a few SEO plugins to no avail (Yoast, Ultimate, etc). I also tried a filter in the functions file on wp_head and [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/\" \/>\n<meta property=\"article:modified_time\" content=\"2015-07-07T13:27:46+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\/control-in-wp_head-for-tribe-events\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/\",\"name\":\"Control &quot;title&quot; tags in wp_head for tribe events -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2013-08-29T02:51:39+00:00\",\"dateModified\":\"2015-07-07T13:27:46+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/#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\":\"Control &quot;title&quot; tags in wp_head for tribe events\"}]},{\"@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":"Control &quot;title&quot; tags in wp_head for tribe events -","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\/control-in-wp_head-for-tribe-events\/","og_locale":"en_US","og_type":"article","og_title":"Control &quot;title&quot; tags in wp_head for tribe events -","og_description":"I want to control the &#8220;title&#8221; tag in the &#8220;head&#8221; section and haven&#8217;t been able to figure out a good way to do it. I&#8217;m using a genesis theme (news) and tried using a few SEO plugins to no avail (Yoast, Ultimate, etc). I also tried a filter in the functions file on wp_head and [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/","article_modified_time":"2015-07-07T13:27:46+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\/control-in-wp_head-for-tribe-events\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/","name":"Control &quot;title&quot; tags in wp_head for tribe events -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2013-08-29T02:51:39+00:00","dateModified":"2015-07-07T13:27:46+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/control-in-wp_head-for-tribe-events\/#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":"Control &quot;title&quot; tags in wp_head for tribe events"}]},{"@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\/63545","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\/63545\/revisions"}],"predecessor-version":[{"id":980860,"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/topic\/63545\/revisions\/980860"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=63545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}