Forum: F.A.Q

This forum is closed for new topics. However, you can still search for a solution in the old topics. For technical support and general questions related to GEO my WP plugin and its core add-ons please use the support forum.

Display manual address in info window?

Home Forums F.A.Q Display manual address in info window?

Tagged: ,

This topic contains 9 replies, has 3 voices, and was last updated by  stien Davis 2 years, 7 months ago.

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #53421

    Alan Green
    Participant

    Although Google Maps is usually pretty good at getting the correct address from the co-ordinates entered there’s times where I’ve had to enter the address manually to get the correct marker location.

    However this means that I have two addresses; the manual address and the autocomplete address. The autocomplete address is the one that displays in the info window.

    Is there any way to display the manually entered address in the info window instead?

    In face is there any way of changing the contents of that info window?

    #53449

    Eyal Fitoussi
    Keymaster

    Hello Alan,

    The Premium Settings add-on uses PHP template files to display the info-window content. And so, you can create a custom info-window template file and place it in your theme’s folder. This custom template file you can modify as you wish. And when doing so you can as well change the displayed address to show the manually entered address rather than the “Formatted address”.

    Do you know PHP and able to crete a custom template file?

    #53450

    Alan Green
    Participant

    I do but what does the template file need to be called and in what folder?

    #53457

    Alan Green
    Participant

    Can you please get back to me or at least give me a time indication for when support posts are answered.

    I have managed to figure out how to add a custom infobox but it doesn’t work!

    I have duplicated the gmw-global-maps/posts/templates/infobox/default directory to

    mytheme/geo-my-wp/posts/templates/infobox directory.

    It’s showing up in the “Choose the theme that will display the marker window.” section for the form selection but, even though I have not altered anything the popup window now doesn’t even show. I just get a spinning wheel for a second or two and then nothing.

    Link included in private content

    Private Content Hidden
    #53458

    Eyal Fitoussi
    Keymaster

    Hello Alan,
    It looks like the stylesheet of the template file does not load.

    1) The proper folder structure of the custom template file should be:
    mytheme/geo-my-wp/posts/info-window-templates/infobox/default

    instead of
    mytheme/geo-my-wp/posts/templates/infobox

    2) Did you duplicate the default folder with the CSS folder inside it?

    Once setup properly, in the form editor the info-window template file name should be “custom: default”.

    #53459

    Alan Green
    Participant

    Doh! I had it as

    mytheme/geo-my-wp/posts/info-window-templates/infobox/infobox/default

    Okay, that’s fixed but it’s still not working.

    If you take a look at the attachments you’ll see the Default version is correct and shows correctly. However the custom Default version doesn’t have anything on?!

    Attachments:
    You must be logged in to view attached files.
    #53462

    Alan Green
    Participant

    Also, even though I’ve managed to select the custom info window for the Posts Locator map. I’m unable to select it for the Posts Global Map

    #53463

    Eyal Fitoussi
    Keymaster

    Both Premium Settings and Global Maps add-on use their own unique info-window template files. The template files of the Premium Settings are to be used with “Normal” GEO my WP’s search forms and the Global Maps comes with its own template files.

    You can grab the “default” info-window folder from
    gmw-premium-settings/posts/templates/infobox/default

    and place it in
    mytheme/geo-my-wp/posts/info-window-templates/infobox/default

    Then, the “default” folder from
    gmw-global-maps/posts/templates/infobox/default

    place in
    mytheme/geo-my-wp/global-maps/posts/infobox/

    I apologize as I know this is a bit confusing.

    Please give this a try and let me know if that works for you.

    #53976

    Alan Green
    Participant

    Thanks for this. Works perfectly.

    #55954

    stien Davis
    Participant

    HI, I now this is an old post, but are you saying that you need to have both plugins in order to customize the info pop-up?

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

You must be logged in to reply to this topic.