Leaflet Maps Marker on front page (2 posts)

  1. Wendy
    Posted 3 years ago #

    I've just installed Amdhas theme on a new site I've created and I'd like to use a Googlemaps-style page on my home page. I can get a map to display on a separate page using the code:

    [mapsmarker marker="1"]

    But when I try to use that code in one of the two boxes of the 'default style' homepage, the text appears instead of a map.

    How can I get the home page to display a map?

  2. Wendy
    Posted 3 years ago #

    Don't worry. I sorted it.

    For anyone needing the same, you need to add the map to a page, and add the following code into home_landing.php (presuming you're using the default layout):

    $id = 4;
    $p = get_page($id);
    echo apply_filters('the_content', $p->post_content);

    My page that holds the map has an ID is 4. You need to change yours accordingly.

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic