Links in map open a new window

Home Forums MapPress Support Links in map open a new window

This topic contains 3 replies, has 2 voices, and was last updated by  Chris 2 months, 3 weeks ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18327

    edkim
    Participant

    I have a mashup with several points of interest. When you click on the any red droplet, it opens up a small window with the name of the point of interest. But when you click on the name of the poi, it opens the page in a new window. Can I change the behavior of this? I want the link to go to the new page but not open a new window. An example is at: https://www.grandcanyondeals.com/page-az-hotels/

    #18328

    Chris
    Keymaster

    Hi,

    Have a look at the MapPress settings screen in the ‘POI Click’ section, I think ‘Open post’ may be what you want.

    #18403

    edkim
    Participant

    Thank. That looks like the right setting to change but it does not help.

    There are three options for POI Click.

    I originally had it on “Open POI”. When I clicked on a dot, it would show a little balloon with the name of the poi. When clicking on poi, it would open the post in a new tab.

    The other two options were “Open Post” and “Post in new Tab” No matter which one I use, it opens the post in a new tab.

    Am I doing something wrong?

     

     

    #18404

    Chris
    Keymaster

    Hi,

    Sorry for the confusion, I think I misunderstood your original question.  This should help:

    To control what happens when a marker is clicked: use the settings ‘open POI’, ‘open post’, and  ‘open post in new tab’.  One of these options (‘open post’) wasn’t working properly – I had planned to deprecate it, but left it on the settings screen.  This is fixed in 2.53.3.

    To control what happens when the POI title is clicked (I think this is what you want to do): use the ‘templates’ section in the MapPress settings to edit the ‘mashup popup’ template.  In that template you’ll see:

    <div class='mapp-title'><a href='{{{poi.url}}}' target='_blank'>{{{poi.title}}}</a>

    Just change it to this (remove the target=’_blank’) and save:

    <div class='mapp-title'><a href='{{{poi.url}}}'>{{{poi.title}}}</a>

     

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

You must be logged in to reply to this topic.