Comments 2publicspace started the conversationFebruary 23, 2022 at 7:33pmHi ZhivkoI hope you can help. Each location for events has a title/name and an address, and both show correctly in the dropdown on the Agenda view. However, on the Single event page, only the address shows. The name of the location does not show. I don't think I have done anything wrong. I have set several locations, and they are all the same. I hope you can solve it. Thank you. 2publicspace repliedFebruary 28, 2022 at 2:50pmWith no other way, I have solved this simply by leaving the Title for each location blank. That means the location name goes in the address field, the address goes in the City field, and the postcode goes in the Country field. 877Zhivko repliedFebruary 28, 2022 at 3:25pmSorry I'll take a look now why's that and will see if I can provide you with a fix. Stachethemes Developer 877Zhivko repliedFebruary 28, 2022 at 3:33pmOkay here's solution:1) Open file stachethemes_event_calendar\view\front\pages\single.php2) Replace line 127 from: printf('<span class="stec-layout-single-preview-left-text-location"><i class="fas fa-map-marker-alt"></i>%s</span>', $location->full_address);to: printf('<span class="stec-layout-single-preview-left-text-location"><i class="fas fa-map-marker-alt"></i>%s</span>', $location->title . ', ' . $location->full_address);Unfortunately there's no way via a filter. Stachethemes Developer 2publicspace repliedFebruary 28, 2022 at 7:58pmGreat. That fixes it. Thank you. Sign in to reply ...
Hi Zhivko
I hope you can help. Each location for events has a title/name and an address, and both show correctly in the dropdown on the Agenda view.
However, on the Single event page, only the address shows. The name of the location does not show.
I don't think I have done anything wrong. I have set several locations, and they are all the same. I hope you can solve it.
Thank you.
With no other way, I have solved this simply by leaving the Title for each location blank. That means the location name goes in the address field, the address goes in the City field, and the postcode goes in the Country field.
Sorry I'll take a look now why's that and will see if I can provide you with a fix.
Stachethemes Developer
Okay here's solution:
1) Open file stachethemes_event_calendar\view\front\pages\single.php
2) Replace line 127 from:
to:
Unfortunately there's no way via a filter.
Stachethemes Developer
Great. That fixes it.
Thank you.