Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #410404

    Hi,

    I’m using the built-in Google Maps element of Enfold to show about 40 locations all over Europe. Unfortunately, in the CMS it’s very difficult to see which is which based on the Address(/street) field. Easier would be to show the country name. Is there a way I can change what field it shows in the list, please?

    Even better would be an extra field for the location name, then show that name in the list. For example:
    – Main office
    – Car shop
    – Police station
    – Train station
    – Mall
    – Post office
    – and so on …

    It makes it a lot easier (especially for 40 locations) to check if all of them are added and which one you need to open to make changes.

    Thanks in advance!

    #411136

    Hey DavyE!

    Open up /enfold/config-templatebuilder/avia-shortcodes/google_maps.php and change line 233 from this.

    $params['innerHtml'] .= "<div class='avia_title_container' {$template}>".__("Address", 'avia_framework' ).": ".$params['args']['address']."</div>";
    

    To this.

    $params['innerHtml'] .= "<div class='avia_title_container' {$template}>".__("Address", 'avia_framework' ).": ".$params['args']['address']. " " .$params['args']['country']."</div>";
    

    Regards,
    Elliott

    #411158

    And once again, perfect for me!

    Thank you, Elliott!

    #411452

    Hey!

    Great, glad we could help :)

    Cheers!
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Google Maps element showing different field in list’ is closed to new replies.