{"id":47784,"date":"2025-04-18T10:39:44","date_gmt":"2025-04-18T10:39:44","guid":{"rendered":"https:\/\/crocoblock.com\/knowledge-base\/?post_type=article&#038;p=47784"},"modified":"2025-04-18T10:39:46","modified_gmt":"2025-04-18T10:39:46","slug":"how-to-set-icon-color-dynamically-in-maps-listing","status":"publish","type":"article","link":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/","title":{"rendered":"How to Set Icon Color Dynamically in Maps Listing"},"content":{"rendered":"\n<p>Displaying dynamic, visually informative maps can significantly enhance the user experience, especially when map markers adapt based on your content.\u00a0<\/p>\n\n\n\n<p>With <em>JetEngine<\/em>\u2019s <strong>Map Listing<\/strong> widget\/block\/element, you can customize marker icon colors dynamically, assigning a different color to each post, term, <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-content-type\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>CCT<\/strong><\/a> item, user, etc. via the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>custom fields<\/strong><\/a>.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">For this tutorial, we use the <a href=\"https:\/\/crocoblock.com\/dynamic-templates\/travengo\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Travengo <\/strong>dynamic template<\/a>.<\/p><\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"backend-preparation\">Backend Preparation<\/h2>\n\n\n\n<div class=\"wp-block-group is-layout-constrained wp-block-group-is-layout-constrained\"><div class=\"wp-block-group__inner-container\">\n<h3 class=\"wp-block-heading\" id=\"create-a-colorpicker-meta-field\">Create a \u201cColorpicker\u201d meta field<\/h3>\n\n\n\n<p>In our case, we display posts on the map from the \u201cTours\u201d <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/custom-post-type-overview\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Custom Post Type<\/strong><\/a>, so we need to add a meta field for the icon color into the <strong>CPT<\/strong> source.<\/p>\n\n\n\n<p>We open the <strong><em>WordPress Dashboard > JetEngine > Post Types <\/em><\/strong>tab and click to edit the \u201cTours\u201d <strong>CPT<\/strong>. Here, we scroll the page down to the <strong>Meta Fields<\/strong> section and hit the \u201c<strong>New Meta Field<\/strong>\u201d button.<\/p>\n\n\n\n<p>Fill in the <strong>Label <\/strong>and <strong>Name\/ID <\/strong>and select the \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#colorpicker\" target=\"_blank\" rel=\"noreferrer noopener\">Colorpicker<\/a>\u201d or \u201c<a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/meta-field-types-overview\/#text\" target=\"_blank\" rel=\"noreferrer noopener\">Text<\/a>\u201d <strong>Field type<\/strong>. Set other meta field settings if needed and save the changes.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field.webp\" alt=\"colorpicker meta field\" class=\"wp-image-47785\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, we edit the custom posts and fill in the meta fields.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">A color is considered valid only if it is specified in HEX, RGB, or HSL format. Color names like \"red,\" \"green,\" or \"goldenrod\" are not accepted as valid inputs.<\/p><\/div><\/div>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts.webp\" alt=\"filling in colorpicker field for posts\" class=\"wp-image-47789\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/filling-in-colorpicker-field-for-posts-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"generate-a-shortcodemacro\">Generate a shortcode\/macro<\/h3>\n\n\n\n<p>To apply dynamic icon colors to the <strong>Map Listing<\/strong>, you need to generate a shortcode or macro.<\/p>\n\n\n\n<p>Proceed to the <strong><em>WordPress Dashboard > JetEngine > JetEngine > <\/em><\/strong><a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/jetengine-dashboard-settings-overview\/#shortcode-generator\" target=\"_blank\" rel=\"noreferrer noopener\"><strong><em>Shortcode Generator<\/em><\/strong><\/a><strong><em> <\/em><\/strong>to generate a shortcode.<\/p>\n\n\n\n<p>Select \u201cJetEngine Data\u201d in the <strong>Shortcode<\/strong> dropdown, \u201cMeta Data\u201d as <strong>Source<\/strong>, and the required <strong>Meta Field<\/strong>. Adjust other settings if needed and copy the shortcode from the bar at the bottom of the page ( in our case).<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker.webp\" alt=\"shortcode with jetengine meta data from the colorpicker\" class=\"wp-image-47801\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/shortcode-with-jetengine-meta-data-from-the-colorpicker-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>If you want to create a macro, open the <strong>Macros Generator <\/strong>tab.<\/p>\n\n\n\n<p>Choose \u201cCurrent meta value\u201d in the <strong>Macros<\/strong> dropdown and enter the \u201cColopicker\u201d meta field name into the <strong>Meta field<\/strong>. After that, you can copy the macro (%current_meta|icon_color% as an example).<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field.webp\" alt=\"current meta value macro for the colorpicker meta field\" class=\"wp-image-47786\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/current-meta-value-macro-for-the-colorpicker-meta-field-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dynamic-icon-color-in-elementor\">Dynamic Icon Color in Elementor<\/h2>\n\n\n\n<p>Open a page with the Elementor editor that contains the <strong>Map<\/strong> <strong>Listing<\/strong> widget.<\/p>\n\n\n\n<p>In the <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/map-listing-overview\/#general-settings-section\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>General<\/strong><\/a><strong> <\/strong>settings tab, ensure that the <strong>Listing <\/strong>and <strong>Address Meta Field <\/strong>are configured.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor.webp\" alt=\"map listing general settings in elementor\" class=\"wp-image-47793\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-elementor-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, unroll the <strong>Marker <\/strong>tab and select any <a href=\"https:\/\/crocoblock.com\/knowledge-base\/features\/map-listing-overview\/#marker-type\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>Marker Type<\/strong><\/a> (e.g., we pick \u201cIcon\u201d and set the \u201cMap marker alt\u201d <strong>Icon<\/strong> from the <strong>Icon Library<\/strong>). For our case, we also disabled the <strong>Marker Clustering <\/strong>toggle.<\/p>\n\n\n\n<div class=\"wp-block-image size-large is-resized\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor.webp\" alt=\"map listing marker settings in elementor\" class=\"wp-image-47796\" style=\"width:840px;height:auto\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-elementor-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Now, you can open the <strong>Style <\/strong>section and modify the marker appearance in the <strong>Marker <\/strong>style tab. That\u2019s how the marker will look on the map if the post meta field has no value.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor.webp\" alt=\"map listing marker style settings in elementor\" class=\"wp-image-47799\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-elementor-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>To apply dynamic colors, go back to the <strong>Marker<\/strong> settings tab of the <strong>Content<\/strong> section, enable the <strong>Use different markers by conditions <\/strong>toggle,<strong> <\/strong>and press the \u201c<strong>+ Add Item<\/strong>\u201d button.<\/p>\n\n\n\n<p>In the <strong>Item<\/strong> repeater, select the \u201cIcon\u201d <strong>Marker Type<\/strong>.<\/p>\n\n\n\n<p>If needed, set the <strong>Icon<\/strong> and pick an option from the <strong>Apply Icon Color to <\/strong>dropdown:<\/p>\n\n\n\n<ul>\n<li><strong>Fill<\/strong> \u2014 fills the icon with the adjusted color;<\/li>\n\n\n\n<li><strong>Stroke<\/strong> \u2014 applies the adjusted color to the outline (stroke) of the icon only;<\/li>\n\n\n\n<li><strong>Both<\/strong> \u2014 applies the adjusted color to both the fill and the stroke of the icon;<\/li>\n\n\n\n<li><strong>Keep SVG colors<\/strong> \u2014 retains the original colors defined in the SVG file, ignoring any adjusted color settings.<\/li>\n<\/ul>\n\n\n\n<p>Into the <strong>Dynamic Icon Color <\/strong>bar, enter the macro or shortcode generated previously.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">The <strong>Dynamic Icon Color <\/strong>option takes over the <strong>Icon Color<\/strong>, so you need to set either one or the other for each item.<\/p><\/div><\/div>\n\n\n\n<p>In the <strong>Apply this marker if <\/strong>dropdown, select the \u201cDynamic color not empty\u201d variant.<\/p>\n\n\n\n<p>After that, markers on the map will change their color according to the post meta field values. Changes can be saved by pushing the \u201c<strong>Publish<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value.webp\" alt=\"icon color depends on the post meta field value\" class=\"wp-image-47791\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dynamic-icon-color-in-gutenberg\">Dynamic Icon Color in Gutenberg<\/h2>\n\n\n\n<p>Open a page with the WordPress Block editor where the <strong>Map Listing <\/strong>block is placed.<\/p>\n\n\n\n<p>In the <strong>General<\/strong> settings tab, ensure that the <strong>LISTING<\/strong> and <strong>ADDRESS META FIELD<\/strong> are configured.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg.webp\" alt=\"map listing general settings in gutenberg\" class=\"wp-image-47794\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-gutenberg-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, unroll the <strong>Marker <\/strong>tab and select any <strong>MARKER TYPE<\/strong> (e.g., we pick \u201cImage\/Icon\u201d and set the <strong>Image\/Icon <\/strong>from the <strong>Media Library<\/strong>). For our case, we also disabled the <strong>Marker Clustering <\/strong>toggle.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg.webp\" alt=\"map listing marker settings in gutenberg\" class=\"wp-image-47797\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-gutenberg-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>If the <a href=\"https:\/\/crocoblock.com\/plugins\/jetstylemanager\/\" target=\"_blank\" rel=\"noreferrer noopener\"><em>JetStyleManager<\/em><\/a> free plugin is installed and activated, the \u201c<strong>paintbrush<\/strong>\u201d icon appears in the upper right corner. By clicking on it, you\u2019ll open the <strong>Map Listing <\/strong>style settings. In the <strong>Marker <\/strong>tab, you can customise how the marker will look on the map if the post meta field has no value.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg.webp\" alt=\"map listing marker style settings in gutenberg\" class=\"wp-image-47800\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-gutenberg-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>To apply dynamic colors, go back to the <strong>Marker<\/strong> settings tab of the <strong>Block<\/strong> section, enable the <strong>Use different markers by conditions <\/strong>toggle,<strong> <\/strong>and press the \u201c<strong>+ Add new item<\/strong>\u201d button.<\/p>\n\n\n\n<p>If needed, set the <strong>Image\/Icon <\/strong>pick an option from the <strong>APPLY ICON COLOR TO <\/strong>dropdown:<\/p>\n\n\n\n<ul>\n<li><strong>Fill<\/strong> \u2014 fills the icon with the adjusted color;<\/li>\n\n\n\n<li><strong>Stroke<\/strong> \u2014 applies the adjusted color to the outline (stroke) of the icon only;<\/li>\n\n\n\n<li><strong>Both<\/strong> \u2014 applies the adjusted color to both the fill and the stroke of the icon;<\/li>\n\n\n\n<li><strong>Keep SVG colors<\/strong> \u2014 retains the original colors defined in the SVG file, ignoring any adjusted color settings.<\/li>\n<\/ul>\n\n\n\n<p>Into the <strong>DYNAMIC ICON COLOR <\/strong>bar, enter the macro or shortcode generated previously.<\/p>\n\n\n<div class=\"note-banner d-flex border-bold border-jetthemecore rounded overflow-hidden p-20\"><div class=\"mr-12\"><svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M9 21C9 21.5 9.4 22 10 22H14C14.6 22 15 21.5 15 21V20H9V21ZM12 2C8.1 2 5 5.1 5 9C5 11.4 6.2 13.5 8 14.7V17C8 17.5 8.4 18 9 18H15C15.6 18 16 17.5 16 17V14.7C17.8 13.4 19 11.3 19 9C19 5.1 15.9 2 12 2Z\" fill=\"#F2D23C\"\/><\/svg><\/div><div class=\"d-flex flex-column\"><div class=\"text-900 mb-12\">Things to know<\/div><p class=\"m-0\">The <strong>DYNAMIC ICON COLOR <\/strong>option takes over the color picker above, so you need to set either one or the other for each item.<\/p><\/div><\/div>\n\n\n\n<p>In the <strong>APPLY THIS MARKER IF <\/strong>dropdown, select the \u201cDynamic color not empty\u201d variant.<\/p>\n\n\n\n<p>Finally, you can save the settings by clicking the \u201c<strong>Save<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor.webp\" alt=\"dynamic icon color option in the wordpress block editor\" class=\"wp-image-47788\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-the-wordpress-block-editor-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>After that, on the front end, markers on the map will change their color according to the post meta field values.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end.webp\" alt=\"icon color depends on the post meta field value on the front end\" class=\"wp-image-47790\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/icon-color-depends-on-the-post-meta-field-value-on-the-front-end-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"dynamic-icon-color-in-bricks\">Dynamic Icon Color in Bricks<\/h2>\n\n\n\n<p>Open a page with the Bricks editor where the <strong>Map Listing <\/strong>element is placed.<\/p>\n\n\n\n<p>In the <strong>GENERAL <\/strong>settings tab, ensure that the <strong>Listing <\/strong>and <strong>Address Meta Field <\/strong>are configured.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks.webp\" alt=\"map listing general settings in bricks\" class=\"wp-image-47792\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-general-settings-in-bricks-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Then, unroll the <strong>MARKER <\/strong>tab and select any <strong>Marker Type<\/strong> (e.g., we keep the default \u201cIcon\u201d option). Also, we disabled the <strong>Marker clustering <\/strong>toggle for now.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks.webp\" alt=\"map listing marker settings in bricks\" class=\"wp-image-47795\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-settings-in-bricks-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>Now, you can open the <strong>STYLE <\/strong>section and modify the marker appearance in the <strong>MARKER <\/strong>style tab. That\u2019s how the marker will look on the map if the post meta field has no value.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks.webp\" alt=\"map listing marker style settings in bricks\" class=\"wp-image-47798\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/map-listing-marker-style-settings-in-bricks-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>To apply dynamic colors, go back to the <strong>MARKER<\/strong> settings tab of the <strong>CONTENT<\/strong> section, enable the <strong>Use different markers by conditions <\/strong>toggle,<strong> <\/strong>and press the \u201c<strong>+ ADD MARKER<\/strong>\u201d button.<\/p>\n\n\n\n<p>In the <strong>Repeater <\/strong>item, select the \u201cIcon\u201d <strong>Marker Type<\/strong> and set the <strong>Icon<\/strong> if needed.<\/p>\n\n\n\n<p>Into the <strong>Dynamic Icon Color <\/strong>bar, enter the macro or shortcode generated previously.&nbsp;<\/p>\n\n\n\n<p><strong>!Things to know<\/strong><\/p>\n\n\n\n<p>The <strong>Dynamic Icon Color <\/strong>option takes over the <strong>Icon color<\/strong>, so you need to set either one or the other for each item.<\/p>\n\n\n\n<p>In the <strong>Apply this marker if <\/strong>dropdown, select the \u201cDynamic color not empty\u201d variant.<\/p>\n\n\n\n<p>After that, markers on the map will change their color according to the post meta field values. Finally, you can save the settings by clicking the \u201c<strong>Save<\/strong>\u201d button.<\/p>\n\n\n\n<div class=\"wp-block-image size-large\"><a href=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks.webp\"><img loading=\"lazy\" decoding=\"async\" width=\"1824\" height=\"1100\" src=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks.webp\" alt=\"dynamic icon color option in bricks\" class=\"wp-image-47787\" srcset=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks.webp 1824w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks-300x181.webp 300w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks-1024x618.webp 1024w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks-768x463.webp 768w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks-1536x926.webp 1536w, https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/dynamic-icon-color-option-in-bricks-600x362.webp 600w\" sizes=\"(max-width: 1824px) 100vw, 1824px\" \/><\/a><\/div>\n\n\n\n<p>That\u2019s all. Now you know how to dynamically change map marker icon colors in <em>JetEngine<\/em> <strong>Map Listings<\/strong> based on post meta field values using a macro or shortcode in Elementor, Gutenberg, and Bricks editors for WordPress.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn how to dynamically change map marker icon colors in JetEngine Map Listings based on post meta field values.<\/p>\n","protected":false},"author":8,"featured_media":0,"template":"","format":"standard","builder-category":[],"article-category":[396],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Set Icon Color Dynamically in Maps Listing \u2014 JetEngine | Crocoblock<\/title>\n<meta name=\"description\" content=\"Learn how to dynamically change map marker icon colors in JetEngine Map Listings based on post meta field values using macro or shortcode in Elementor, Gutenberg, and Bricks editors for WordPress.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Set Icon Color Dynamically in Maps Listing \u2014 JetEngine | Crocoblock\" \/>\n<meta property=\"og:description\" content=\"Learn how to dynamically change map marker icon colors in JetEngine Map Listings based on post meta field values using macro or shortcode in Elementor, Gutenberg, and Bricks editors for WordPress.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/\" \/>\n<meta property=\"og:site_name\" content=\"Help Center\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-18T10:39:46+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field.webp\" \/>\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=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/\",\"name\":\"How to Set Icon Color Dynamically in Maps Listing \u2014 JetEngine | Crocoblock\",\"isPartOf\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\"},\"datePublished\":\"2025-04-18T10:39:44+00:00\",\"dateModified\":\"2025-04-18T10:39:46+00:00\",\"description\":\"Learn how to dynamically change map marker icon colors in JetEngine Map Listings based on post meta field values using macro or shortcode in Elementor, Gutenberg, and Bricks editors for WordPress.\",\"breadcrumb\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Articles\",\"item\":\"https:\/\/crocoblock.com\/knowledge-base\/articles\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"How to Set Icon Color Dynamically in Maps Listing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#website\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"name\":\"Help Center\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#organization\",\"name\":\"Help Center\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"contentUrl\":\"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg\",\"caption\":\"Help Center\"},\"image\":{\"@id\":\"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Set Icon Color Dynamically in Maps Listing \u2014 JetEngine | Crocoblock","description":"Learn how to dynamically change map marker icon colors in JetEngine Map Listings based on post meta field values using macro or shortcode in Elementor, Gutenberg, and Bricks editors for WordPress.","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:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/","og_locale":"en_US","og_type":"article","og_title":"How to Set Icon Color Dynamically in Maps Listing \u2014 JetEngine | Crocoblock","og_description":"Learn how to dynamically change map marker icon colors in JetEngine Map Listings based on post meta field values using macro or shortcode in Elementor, Gutenberg, and Bricks editors for WordPress.","og_url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/","og_site_name":"Help Center","article_modified_time":"2025-04-18T10:39:46+00:00","og_image":[{"url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/colorpicker-meta-field.webp"}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/","url":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/","name":"How to Set Icon Color Dynamically in Maps Listing \u2014 JetEngine | Crocoblock","isPartOf":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#website"},"datePublished":"2025-04-18T10:39:44+00:00","dateModified":"2025-04-18T10:39:46+00:00","description":"Learn how to dynamically change map marker icon colors in JetEngine Map Listings based on post meta field values using macro or shortcode in Elementor, Gutenberg, and Bricks editors for WordPress.","breadcrumb":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/crocoblock.com\/knowledge-base\/jetengine\/how-to-set-icon-color-dynamically-in-maps-listing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/crocoblock.com\/knowledge-base\/"},{"@type":"ListItem","position":2,"name":"Articles","item":"https:\/\/crocoblock.com\/knowledge-base\/articles\/"},{"@type":"ListItem","position":3,"name":"How to Set Icon Color Dynamically in Maps Listing"}]},{"@type":"WebSite","@id":"https:\/\/crocoblock.com\/knowledge-base\/#website","url":"https:\/\/crocoblock.com\/knowledge-base\/","name":"Help Center","description":"","publisher":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/crocoblock.com\/knowledge-base\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/crocoblock.com\/knowledge-base\/#organization","name":"Help Center","url":"https:\/\/crocoblock.com\/knowledge-base\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/","url":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","contentUrl":"https:\/\/crocoblock.com\/knowledge-base\/wp-content\/uploads\/2025\/04\/invert-crocoblock-logo.svg","caption":"Help Center"},"image":{"@id":"https:\/\/crocoblock.com\/knowledge-base\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article\/47784"}],"collection":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article"}],"about":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/types\/article"}],"author":[{"embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/users\/8"}],"wp:attachment":[{"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/media?parent=47784"}],"wp:term":[{"taxonomy":"builder-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/builder-category?post=47784"},{"taxonomy":"article-category","embeddable":true,"href":"https:\/\/crocoblock.com\/knowledge-base\/wp-json\/wp\/v2\/article-category?post=47784"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}