Marker List Table column title change..??

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

This topic contains 25 replies, has 6 voices, and was last updated by  ideasartcode 2 months, 1 week ago.

Viewing 12 posts - 16 through 27 (of 27 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 3 months, 1 week 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

Viewing 12 posts - 16 through 27 (of 27 total)

You must be logged in to reply to this topic.