{"id":1347343,"date":"2017-09-10T19:26:41","date_gmt":"2017-09-11T02:26:41","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/"},"modified":"2017-09-10T19:26:41","modified_gmt":"2017-09-11T02:26:41","slug":"customising-the-header-row-in-the-month-and-week-views","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/","title":{"rendered":"Customising the header row in the month and week views"},"content":{"rendered":"<p>Hi<\/p>\n<p>I have followed various articles about customising the month and week view header colours but found that the customisations were always being overridden (I could see that they were there when I inspected the element but they were a lower priority to the styles defined in the index page).<\/p>\n<p>I eventually found that the priority was being given to customisations made using WordPress Customizer. The get_css_template function in the Month_Week_View.php file sets the &#8220;tribe-events-calendar thead th, .tribe-events-grid .tribe-grid-header .tribe-grid-content-wrap .column, tribe-grid-header&#8221;  background-color: to &lt;%= month_week_view.table_header_bg_color %&gt;.<\/p>\n<p>I cannot see any place in the WordPress Customizer to change the table header background colours so I have no idea where it is getting the colour from.<\/p>\n<p>I don&#8217;t want to use the !important statement in the child-theme style because this then overrides the &#8220;.tribe-week-today&#8221; style in the week view.<\/p>\n<p>I have tested the functionality by deleting the code from the  &#8220;tribe-events-calendar thead th, .tribe-events-grid .tribe-grid-header .tribe-grid-content-wrap .column, tribe-grid-header&#8221; from the Month_Week_View.php file and this works well.<\/p>\n<p>Can you please let me know how I could achieve the same result without deleting the code from the Month_Week_View.php file .<\/p>\n<p>Thanks<\/p>\n","protected":false},"template":"","class_list":["post-1347343","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>Customising the header row in the month and week views -<\/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\/customising-the-header-row-in-the-month-and-week-views\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Customising the header row in the month and week views -\" \/>\n<meta property=\"og:description\" content=\"Hi I have followed various articles about customising the month and week view header colours but found that the customisations were always being overridden (I could see that they were there when I inspected the element but they were a lower priority to the styles defined in the index page). I eventually found that the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/\" \/>\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\/customising-the-header-row-in-the-month-and-week-views\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/\",\"name\":\"Customising the header row in the month and week views -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-09-11T02:26:41+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/#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\":\"Customising the header row in the month and week views\"}]},{\"@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":"Customising the header row in the month and week views -","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\/customising-the-header-row-in-the-month-and-week-views\/","og_locale":"en_US","og_type":"article","og_title":"Customising the header row in the month and week views -","og_description":"Hi I have followed various articles about customising the month and week view header colours but found that the customisations were always being overridden (I could see that they were there when I inspected the element but they were a lower priority to the styles defined in the index page). I eventually found that the [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/","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\/customising-the-header-row-in-the-month-and-week-views\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/","name":"Customising the header row in the month and week views -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-09-11T02:26:41+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/customising-the-header-row-in-the-month-and-week-views\/#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":"Customising the header row in the month and week views"}]},{"@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\/1347343","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\/1347343\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1347343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}