• Resolved nayeh

    (@nayeh)


    In the sidebar and on the event listing I want to remove the location of the event.

    This website is for a theatre with only one stage so it’s always going to be at the same place in the same room.

    If I don’t enter anything it says “anywhere” which also isn’t acceptable. Is it possible to hide this field altogether? If so, how?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @nayeh,

    You need to override template file called content-single-event_listing.php to your theme side by following this doc https://wp-eventmanager.com/template-files-override/

    Then remove the following code from the template file

    <div itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
                      	<?php if(get_event_address()){ display_event_address(); echo ',';} ?> <?php display_event_location();?> 
                  	  </div>

    Thank you

    Thread Starter nayeh

    (@nayeh)

    Hi Hitesh

    Thank you for the reply.

    I have created the directory in my theme as shown in the link you provided. I have gone into the plugin folder for wp event manager and have copied the content-single-event-listing.php to that new directory. When I go in to remove that code I cannot find it. The only reference to address is at line 153 which is

    <h3 class="wpem-heading-text"><?php _e('Location','wp-event-manager');?></h3>
                      <?php if(get_event_address()){ display_event_address(); echo ',';} ?> <?php display_event_location();?> 

    I’m not very familiar with php, so can you help further please?

    Thank you

    Thread Starter nayeh

    (@nayeh)

    Hi @hiteshmakvana

    I went ahead and deleted the lines I showed above and it has worked.

    Many thanks for the assistance.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Remove Location from listing’ is closed to new replies.