WordPress.org

Forums

Google Maps Widget
[resolved] Text Link Opens Map (6 posts)

  1. mbenari
    Member
    Posted 2 years ago #

    Hi,

    I'd like the link that opens the lightbox map to be a text link and do not need the mini-map. Can this be done?

    Thanks,
    Maya

    http://wordpress.org/extend/plugins/google-maps-widget/

  2. WebFactory
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, via GUI - no. With a bit of PHP - yes. Have a look at the google_maps_widget_content filter in gmw-widget.php#218. You can use it to replace the image with a link.

  3. mbenari
    Member
    Posted 2 years ago #

    Awesome, so the entire line is:
    $out .= apply_filters('google_maps_widget_content', $tmp);

    Can you show me an example of how that would be a link?

    Thanks,
    Maya

  4. mbenari
    Member
    Posted 2 years ago #

    I changed $out .= apply_filters('google_maps_widget_content', $tmp); to $out .= 'map link'; and it didn't work. What should I do?

  5. mbenari
    Member
    Posted 2 years ago #

    Did it with css ;)
    .gmw-thumbnail-map img {display: none;}
    .gmw-thumbnail-map:after {content: "link";}

  6. WebFactory
    Member
    Plugin Author

    Posted 2 years ago #

    Glad you figured it out :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.