{"id":1351425,"date":"2017-09-19T12:55:33","date_gmt":"2017-09-19T19:55:33","guid":{"rendered":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/"},"modified":"2017-09-19T12:55:33","modified_gmt":"2017-09-19T19:55:33","slug":"style-the-maps","status":"closed","type":"topic","link":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/","title":{"rendered":"Style the maps"},"content":{"rendered":"<p>Hi,<\/p>\n<p>I would like to style the Google Maps and searched in the forum for a solution, but unfortunately couldn&#8217;t find an answer.<\/p>\n<p>In this post: <a href=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-styling-2\/\">https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-styling-2\/<\/a> you are mentioning the Themer&#8217;s Guide and the possibility to customize the different views (what I am using already).<\/p>\n<p>So I took a look into the different map related views but could not find the correct place where to add the JSON (generated with <a href=\"https:\/\/mapstyle.withgoogle.com\/\" target=\"_blank\">Google Styling wizard<\/a>) and found in ..\/tribe-events\/modules\/map.php a hint in the following filter:<\/p>\n<p><code>$style = apply_filters( 'tribe_events_embedded_map_style', \"height: $height; width: $width\", $index );<\/code><\/p>\n<p>After searching for this filter in your documentation I found a <a href=\"https:\/\/theeventscalendar.com\/knowledgebase\/change-map-size\/\" target=\"_blank\">post<\/a>where it seems as if this filter can be used to influence the map. For example with:<\/p>\n<p><code>add_filter( 'tribe_events_embedded_map_style', 'modify_embedded_map_inline_styles' );<br \/>\nfunction modify_embedded_map_inline_styles() {<br \/>\n    return 'width: 100%; height: 1000px';<br \/>\n}<\/code><\/p>\n<p>The size of the map can be changed. Can this filter (when added in functions.php of my child theme) also been used to change the styling of the map?<\/p>\n<p>Or is there another file where the styling code for the map has to be implemented?<\/p>\n<p>Many thanks in advance,<br \/>\nDinah<\/p>\n","protected":false},"template":"","class_list":["post-1351425","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>Style the maps -<\/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\/style-the-maps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Style the maps -\" \/>\n<meta property=\"og:description\" content=\"Hi, I would like to style the Google Maps and searched in the forum for a solution, but unfortunately couldn&#8217;t find an answer. In this post: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-styling-2\/ you are mentioning the Themer&#8217;s Guide and the possibility to customize the different views (what I am using already). So I took a look into the different map [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/\" \/>\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\/style-the-maps\/\",\"url\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/\",\"name\":\"Style the maps -\",\"isPartOf\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/#website\"},\"datePublished\":\"2017-09-19T19:55:33+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/#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\":\"Style the maps\"}]},{\"@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":"Style the maps -","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\/style-the-maps\/","og_locale":"en_US","og_type":"article","og_title":"Style the maps -","og_description":"Hi, I would like to style the Google Maps and searched in the forum for a solution, but unfortunately couldn&#8217;t find an answer. In this post: https:\/\/theeventscalendar.com\/support\/forums\/topic\/google-maps-styling-2\/ you are mentioning the Themer&#8217;s Guide and the possibility to customize the different views (what I am using already). So I took a look into the different map [&hellip;]","og_url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/","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\/style-the-maps\/","url":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/","name":"Style the maps -","isPartOf":{"@id":"https:\/\/theeventscalendar.com\/support\/#website"},"datePublished":"2017-09-19T19:55:33+00:00","breadcrumb":{"@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/theeventscalendar.com\/support\/forums\/topic\/style-the-maps\/#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":"Style the maps"}]},{"@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\/1351425","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\/1351425\/revisions"}],"wp:attachment":[{"href":"https:\/\/theeventscalendar.com\/support\/wp-json\/wp\/v2\/media?parent=1351425"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}