Okay
  Public Ticket #2988787
Location title/name does not show on Single events
Closed

Comments

  •  2
    publicspace started the conversation

    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.  

  •  2
    publicspace replied

    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. 

  •  877
    Zhivko replied

    Sorry I'll take a look now why's that and will see if I can provide you with a fix.


    Stachethemes Developer

  •  877
    Zhivko replied

    Okay here's solution:

    1) Open file stachethemes_event_calendar\view\front\pages\single.php

    2) 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

  •  2
    publicspace replied

    Great.  That fixes it.  

    Thank you.