Marker List Table column title change..??

New home Forums Gold Add-on General queries Marker List Table column title change..??

Viewing 15 posts - 16 through 30 (of 31 total)
  • Author
    Posts
  • #45665
    CSisker
    Member

    Is the csv file I attached what you need to help me change the column names?

    #45674
    Perry
    Moderator

    This CSV appears to contain map data but no marker data.

    Would you be able to open a ticket enclosing login details for the first site and the second site?

    If that’s permissible we would be more than happy to move your data for you.

    I hope that helps?

    Kind regards
    – Perry

    #45697
    CSisker
    Member

    I need the v7 map to stay where it is, at https://thompsoncenter-wh-dev.missouri.edu/training/echo-autism/
    Unfortunately, it’s behind a VPN, so I can’t share access. I can give you login credentials to my demo site, but it’s not really relevant to the project. I was only trying to copy the map there so you could see it. Will it help to have login details for the demo site?

    I noticed that the map data I shared also contained a second, old map that is no longer relevant. I deleted that data and also included the marker data csv as attachments below.

    • This reply was modified 1 year, 1 month ago by CSisker.
    Attachments:
    You must be logged in to view attached files.
    #45716
    Perry
    Moderator

    Hi there

    I see, I didn’t realise, thank you for clarifying that.

    If you want to change the column labels, you should be able to do that with JavaScript like this:

    jQuery(function($) {

    $(window).on(“load”, function(event) {
    $(“.wpgmza_table_title”).text(“Example”);
    });

    });

    You can paste that into Maps -> Settings -> Advanced under Custom JS.

    If you need any other examples please let us know which columns you are trying to change and what text you are looking to change to there.

    I hope that helps?

    Kind regards
    – Perry

    #45770
    CSisker
    Member

    Thanks, I tried adding that, but it didn’t seem to affect anything on the table. I would like to change the “Title” to “Clinic” and “Category” to “Target Audience”. Attached is what I pasted. My CSS is working correctly, but the JS didn’t seem to change the title.

    Attachments:
    You must be logged in to view attached files.
    #45780
    Perry
    Moderator

    Hi there

    Our forum converts plain quotes to angled quotes, can you please try that again with

    jQuery(function($) {
    
    $(window).on("load", function(event) {
    $(".wpgmza_table_title").text("Clinic");
    $(".wpgmza_table_category").text("Target Audience");
    });
    
    });

    Sorry to take up your time with that, I’ve also added the category text there too.

    Please try that and let us know if that helps?

    Kind regards
    – Perry

    #45869
    CSisker
    Member

    That worked, but instead of only changing the column labels, it also changed the marker data as well. A screenshot is attached. It looks like it’s based off of the default marker listings to show. I have it set at 10, so the first 10 all have “Clinic” and “Target Audience” as the marker labels. The next page shows the correct marker data and new column labels. It looks like the column labels are somehow overriding the marker labels.

    Attachments:
    You must be logged in to view attached files.
    #45876
    Perry
    Moderator

    Hi there

    I beg your pardon, this was an oversight on my behalf, please change that to this:

    jQuery(function($) {

    $(window).on(“load”, function(event) {
    $(“th.wpgmza_table_title”).text(“Clinic”);
    $(“th.wpgmza_table_category”).text(“Target Audience”);
    });

    });

    That will only change the table headers.

    I hope that helps?

    Kind regards
    – Perry

    #46181
    CSisker
    Member

    Perry,

    Sorry for the late response, but that fixed it. Thanks!

    #46195
    Perry
    Moderator

    Hi there

    You are most welcome 🙂

    Is there anything else we can help you with?

    Kind regards
    – Perry

    #46306
    ideasartcode
    Member

    Hello!

    This forum topic addresses the same request I have for my map, however, when I update the Custom JS as per your suggestion, the update does not happen. This is the Custom JS I added:

    jQuery(function($) {

    $(window).on(“load”, function(event) {
    $(“th.wpgmza_table_title”).text(“State”);
    $(“th.wpgmza_table_category”).text(“Region”);
    $(“th.wpgmza_table_description”).text(“Contact”);
    });

    });

    My public site is here: http://uscs.ideasartcode.com/facilities/

    Please advise at your earliest.

    Thank you!

    #46336
    Perry
    Moderator

    Hi there

    Can you please replace the angled quotes in your code with plain double quotes (“), JavaScript cannot interpret angled quotes and will fail with a syntax error.

    I hope that helps?

    Kind regards
    – Perry

    #49829
    chinjazz
    Member

    Thank you Perry for providing this solution.
    I did a search and found how to alter the title’s in the advanced listing!

    Cheers!
    Adam

    #49845

    Hi Adam,

    Thanks for the response.

    Just to confirm, is everything working correctly now?

    Best regards,
    Dylan

    #50165
    chinjazz
    Member

    Hi Dylan,

    I noticed a prior post you made:

    Column Heading Change

    Where you provided an example using the dom. As an experiment, I tried that version
    however the method above in this thread seems to work better.

    Here’s what’s working for me:

    jQuery(function($) {

    $(window).on(“load”, function(event) {
    $(“.wpgmza_table_title”).text(“Name”);
    $(“.wpgmza_table_category”).text(“Type”);
    $(“.wpgmza_table_link”).text(“Website”);
    });

    });

    Thanks!
    Adam

Viewing 15 posts - 16 through 30 (of 31 total)
  • You must be logged in to reply to this topic.