This topic contains 3 replies, has 2 voices, and was last updated by Sofia Moss Sofia Moss 7 years, 7 months ago.

Infobox marker on select

  • User Level

    Hallo again,

    Could you help me out with changing the infobox marker when the location is selected?

    It’s now same as marker background:
    http://i63.tinypic.com/15db8cn.png

    Also. I would like to change alphabetical to nummerical.

    Thanks in advance :)

    Sofia Moss
    StaffSuper ContributorUser Level

    Hi there,

    You can hide the upload your Custom Active Marker via the settings page, more info available here https://superstorefinder.net/superstorefinderwp/user-guide/#document-14

    As for changing the marker from Alphabetical to Numerical, you can edit js/mega-superstorefinder.js, search for the following code and change it from:

    function translateIntoLetter(index) {
    
                if(index < 26) {
    
                    switch(index) {
    
                        case 0:  return 'A'; break;
    
                        case 1:  return 'B'; break;
    
                        case 2:  return 'C'; break;
    
                        case 3:  return 'D'; break;
    
                        case 4:  return 'E'; break;
    
                        case 5:  return 'F'; break;
    
                        case 6:  return 'G'; break;
    
                        case 7:  return 'H'; break;
    
                        case 8:  return 'I'; break;
    
                        case 9:  return 'J'; break;
    
                        case 10: return 'K'; break;
    
                        case 11: return 'L'; break;
    
                        case 12: return 'M'; break;
    
                        case 13: return 'N'; break;
    
                        case 14: return 'O'; break;
    
                        case 15: return 'P'; break;
    
                        case 16: return 'Q'; break;
    
                        case 17: return 'R'; break;
    
                        case 18: return 'S'; break;
    
                        case 19: return 'T'; break;
    
                        case 20: return 'U'; break;
    
                        case 21: return 'V'; break;
    
                        case 22: return 'W'; break;
    
                        case 23: return 'X'; break;
    
                        case 24: return 'Y'; break;
    
                        case 25: return 'Z'; break;
    
                    }
    
                } else {
    
                    return '' + (index-25);
    
                }
    }

    to:

    function translateIntoLetter(index) {
    
              
    
                    return '' + (index+1);
    
    }
    • This reply was modified 7 years, 7 months ago by Sofia Moss Sofia Moss.
    • This reply was modified 7 years, 7 months ago by Sofia Moss Sofia Moss.
    User Level

    Is it best to put it in my themes custom js? And if so, should i put add something like !important like i do with css?

    Thanks for quick response again!

    Sofia Moss
    StaffSuper ContributorUser Level

    Hi there,

    For this, you can’t put it in theme js, you can only edit the js file as mentioned, if there’ s updates you just have to remember this part of the code.

    Cheers,
    Sofia

You must be logged in to reply to this topic.