GEO my WP Support

Use this forum for technical support and general questions related to GEO my WP plugin and its core add-ons only. For technical support and general questions related to any of the premium extensions please open a new premium support ticket.

[Not resolved]Map results Info Window design

Home Forums Support Map results Info Window design

This topic contains 5 replies, has 3 voices, and was last updated by  Joseph Barrett 2 years, 5 months ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #55824

    Joseph Barrett
    Participant

    I am hoping to make a few changes to the info window design and order. I would prefer the distance to be listed first and truncate the City, State and Zip from the Info window pop up. Also change the css of the results. Can you direct me to where the code it that determines this so I can reorder it and where the style.css is for the window. Thank you.

    #55830

    Paul
    Participant

    Hi Joseph,

    You can modify the order of the infobox content in the following location:

    wp-content\plugins\geo-my-wp\plugins\friends\includes\gmw-fl-search-query-class.php – At approx line 301 you will find a function called “public function info_window_content( $member )”. The $output variable here is what holds the infobox content. Re-order as necessary.

    The CSS is located in wp-content\plugins\geo-my-wp\assets\css\style.css – One of the classes I have identified at a glance is called “.wppl-fl-info-window”. I recommend using Firebug for Firefox or Chrome to play around with the CSS.

    Happy tinkering 🙂

    #55836

    Joseph Barrett
    Participant

    Thanks, but minor modifications aren’t showing any difference to the content. I’m not sure this is the right place as this seems like the buddypress info window for members as opposed to plain old posts? Anywhere else to look? EDIT: same thing but in the POSTS directory not friends I will tinker while I know updates to the plugin will overwrite them I enjoy it anyway.

    #55844

    Eyal Fitoussi
    Keymaster

    Hello @Joseph,
    I apologize for the delayed reply on this. And thank you @paul for providing a suggestion, which is indeed for BuddyPress members rather than posts.

    @Joseph,
    You should not modify the code file, since as you suggested the changes will be gone when you update the plugin.

    At the end of the info_window function there are 2 filters:

    Using those filters you can modify the info window content dynamically instead of modifying the core file.

    The script below will move the distance to the top of the info window and will remove the address. You can place it in the functions.php of your theme and modify it as you wish to get the best results:

    Let me know if this helps.

    #55861

    Joseph Barrett
    Participant

    Brilliant as always, Eyal. Thanks! Could this be accomplished with your Premium Settings plugin as well? Do you offer a lifetime Premium Plugin purchase or only yearly?

    #55862

    Joseph Barrett
    Participant

    Here’s what I ended up with

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

You must be logged in to reply to this topic.