Support » Themes and Templates » Amdhas » Leaflet Maps Marker on front page

Leaflet Maps Marker on front page

  • 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?

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Leaflet Maps Marker on front page’ is closed to new replies.
Skip to toolbar