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