This topic contains 1 reply, has 2 voices, and was last updated by Sofia Moss Sofia Moss 8 years, 2 months ago.

reformat the address in the dealer display

  • User Level

    Hi,

    I’d like to change the way the address information is displayed in the modal which opens when you click a dealer location on the map.

    Thought i could maybe do it with a js script in the child theme.

    jQuery( document ).ready(function() {
    	var data = jQuery('.store-address').text();
    	var arr = data.split(';');
    	var city = arr[2].replace(',', '');
    	var pc = arr[4].replace(' ','');
    	jQuery(".store-address").html("<div class='new-address-format'><span class='new-store-address'>" + arr[1] + "</span></br><span class='new-store-city'>" + city + "</span></br>" + "<span class='new-store-pc-place'>" + pc + " " +  arr[3] + "</span></div>");
    	
    });

    Here on codepen.io you can see what i want with the address.
    Codepen example
    Any suggestion is welcome.

    Thanks!
    Erik

    • This topic was modified 8 years, 2 months ago by  Erik Kroon.
    Sofia Moss
    StaffSuper ContributorUser Level

    Hi Erik,

    Thank you for your inquiry, our devs have reviewed this post and requested for the url of the store locator page and temporary FTP access which can be sent via the contact form at the profile page here https://codecanyon.net/user/highwarden

    Cheers,
    Sofia

The topic ‘reformat the address in the dealer display’ is closed to new replies.