WordPress.org

Ready to get started?Download WordPress

Forums

CP Google Maps
[resolved] Can I remove the more... link? (10 posts)

  1. Robin
    Member
    Posted 1 year ago #

    Is there an easy way of removing the more... link on the pop up info bubble. It only links back to the page that the map is being displayed on and as such is a useless distraction.

    Otherwise, I love the plugin, it works well.

    http://wordpress.org/extend/plugins/codepeople-post-map/

  2. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    In the current version of plugin, it is required to modify the code to hide the more... links, but do not panic, the process is very simple:

    Open the cpm-styles.css file in the text editor your choice, the file is located in "wp-content/plugins/codepeople-post-map/styles/cpm-styles.css"

    and set the following line at the end:

    .cpm-infowindow .cpm-content .more {display:none;}

    That's all, very simple, huh ? ;-)

  3. Khazd0rf
    Member
    Posted 1 year ago #

    Hi, is there a way to change or translate this link ? ;-)

    thanks

  4. Khazd0rf
    Member
    Posted 1 year ago #

    I found out how to do it, forget my question.

  5. d8thnote
    Member
    Posted 1 year ago #

    How do you remove the pop up bubble totally?

  6. nikmav
    Member
    Posted 1 year ago #

    I know the actual question has been resolved but to answer d8thnotes question about the entire bubble you need to open cpm.js in the /wp-content/plugins/codepeople-post-map/js folder and comment out the following blocks:

    Lines 159 to 163 - The Bubble

    // Open the marker bubble
    			open_infowindow : function(m){
    				this.infowindow.setContent(this._str_transform(this.data.markers[m.id].info));
    				this.infowindow.open(this.map, m);
    			},

    and

    Line 113 - The click event if someone clicks the marker it will generate a JS error (invisible to the user but visible to firebug)

    google.maps.event.addListener(marker, 'click', function(){ me.open_infowindow(this); });

    Awesome plugin by the way but would be a good idea to include an option to display or hide the bubble.

    Cheers

    Nik

  7. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    If you want to hide all infowindows you only should to entering a "return" sentence in the "open_infowindow" routine, like below:

    open_infowindow : function(m){

    return;

    this.infowindow.setContent(
    this._str_transform(this.data.markers[m.id].info)
    );
    this.infowindow.open(this.map, m);
    },

  8. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    We have updated the current version of Post Maps to allow disabling the info-windows from the settings of maps.

  9. d8thnote
    Member
    Posted 1 year ago #

    Thanks for the updated information. I am not seeing that option in my settings. Do I need to download an update to the plugin?

  10. codepeople
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,

    Yes, please. Download the plugin again, and the new options will be present in the settings page of plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags