WordPress.org

Support

Support » Plugins and Hacks » Google Maps CP » [Resolved] Can I remove the more… link?

[Resolved] Can I remove the more… link?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author codepeople

    @codepeople

    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 ? 😉

    Hi, is there a way to change or translate this link ? 😉

    thanks

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

    How do you remove the pop up bubble totally?

    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

    Plugin Author codepeople

    @codepeople

    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);
    },

    Plugin Author codepeople

    @codepeople

    Hi,

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

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

    Plugin Author codepeople

    @codepeople

    Hi,

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Resolved] Can I remove the more… link?’ is closed to new replies.
Skip to toolbar