WordPress.org

Forums

WP Flexible Map
How to close directions after they appear (3 posts)

  1. Pantelis Orfanos
    Member
    Posted 1 year ago #

    hi there.
    i would like you to tell me how can i put an "extra" button or something to be able to close the directions (reset) to the default appearance of the map (without having the directions) WITHOUT the need to press the refresh button.
    is it possible or not?

    thanks m8 ;)

    http://wordpress.org/plugins/wp-flexible-map/

  2. webaware
    Member
    Plugin Author

    Posted 1 year ago #

    G'day Pantelis,

    The directions are inside a DIV with class "flxmap-directions", so you could add a button somewhere that removes content of that div, using a little jQuery like this:

    jQuery("#reset-directions").click(function() {
        jQuery(".flxmap-directions").html("");
    });

    cheers,
    Ross

  3. Pantelis Orfanos
    Member
    Posted 1 year ago #

    hey there. finally got the time to check this out. can you please tell me where exactly should i enter this code you gave me? thanks
    Pantelis

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Flexible Map
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic