Okay
  Public Ticket #2758201
Change Map Style of Google Maps
Closed

Comments

  •  4
    Dan started the conversation

    Hi,


    where can I change the map style of the google maps shown in the event single page or under the agenda view?


    Best Regards

  •  894
    Zhivko replied

    Hi,

    The calendar comes with 5 ready to use theme presets.

    You can switch to given theme by adding in your shortcode gmap_theme attribute.

    Example:

    [stachethemes_ec gmap_theme=silver]

    Accepted values are: 

    • aubergine
    • retro
    • night
    • silver
    • dark

    Stachethemes Developer

  •  4
    Dan replied

    Thank you!

  •  4
    Dan replied

    These setting is only affecting the Map in Agenda View. How can I change Map style in Single Event page?

  •  894
    Zhivko replied

    Open your theme or child-theme functions.php file and add following filter :

    add_action('stec_single_wp_footer', function() {
        ?>
        <script type="text/javascript">
            window.stecSingleOptions.gmap_theme = 'silver'; // silver theme
        </script>
        <?php
    }, 9999);

    You can change 'silver' with any of the available themes.

    • aubergine
    • retro
    • night
    • silver
    • dark


    Stachethemes Developer

  •  4
    Dan replied

    Thank you! Works fine!