Override map height in shortcode

New home Forums Pro Add-on General queries Override map height in shortcode

Tagged: ,

This topic contains 6 replies, has 2 voices, and was last updated by  SupportTeam 3 years ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #20979

    banannah
    Member

    I have created a map with WP Google Maps Pro. Iā€™d like it to appear with a height of 600px on the home page and a height of 450px on some post archive pages. Is there a way to override the height in the shortcode? Is there a way to add it to the archive page php template but override the height? Any suggestions would be appreciated, thanks! ?

    #20984

    SupportTeam
    Moderator

    Hi there

    Unfortunately the width and height cannot be overridden via the shortcode at the moment – currently only the zoom can be, however we will consider this for a future release. So sorry about that.

    #21004

    banannah
    Member

    thanks anyway šŸ™‚

    #21005

    SupportTeam
    Moderator

    Hi there

    Not a problem. I have added this to Github to see if we can have this as a standard feature for a future release though šŸ™‚

    https://github.com/CodeCabin/wp-google-maps/issues/147

    #21011

    banannah
    Member

    awesome! šŸ™‚

    #21378

    banannah
    Member

    ps. in the meantime we used css to specify height of the second instance of the map on blog archive pages in case anyone else wants to do the same thing:

    body.archive .wpgmza_map, body.blog .wpgmza_map { height: 300px!important; }

    You’ll probs need to change it slightly to reflect the selectors in your specific WP theme

    #21423

    SupportTeam
    Moderator

    Hi banannah

    Thanks so much for posting your solution!

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.