Viewing 5 replies - 1 through 5 (of 5 total)
  • you could create a template file which includes the shortcode to a map. the page using this template could then be set as frontpage. More details about using shortcodes in template tags at https://www.mapsmarker.com/docs/basic-usage/how-to-add-maps-to-your-site-using-template-tags/

    Thread Starter ahd261

    (@ahd261)

    Hi Thx for your reply
    Could explain me in this case why the index.php file save as root and including :
    <?php echo do_shortcode('[mapsmarker layer="1"]'); ?>
    gives me back a white page ?

    I need to get a full width page
    How to use the shortcode to get this fullscreen ?

    Thx

    wp_head() and wp_footer() are anyway needed for Leaflet Maps Marker maps to load properly (for javascripts and CSS) – just adding the do_shortcode() function to a template file will not work for maps…

    Thread Starter ahd261

    (@ahd261)

    thx but could u develop a little bit more about what have i do concretely
    Thx for your help

    sorry, that is theme dependent – I’d advise asking your theme developer to create a new page template file, use that file for a page, test it, if it works, remove all html elements between <body> and </body> and add the do_shortcode in between and then select the page as front page in General / Reading…

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘leaflet-fullscreen.php’ is closed to new replies.