• Resolved Webfolio Webdesign

    (@webreneszansz)


    Hello,

    Please be so kind and let me know, how can I remove the how many people viewed this event part on the single event pages?

    What is the basis of the counter? It seems, that the numbers are not correct on the wbesite above.

    Thank you!

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

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

    You can remove people view this event text by overriding template file called “content-single-event_listing.php” to your theme side by following this doc https://wp-eventmanager.com/template-files-override/

    Thank you

    Hi @webreneszansz,

    We haven’t heard back from you in a while. I am resolving this issue for now. Please create a new thread still if you are facing the issue.

    Thank you

    I didn’t understand the tip. I have the same question, when I want to edit the plugin I have the following code…where do I add the code you suggested?

    $view_count = get_post_views_count($post);
    if ($view_count) {?>
    <div class=”clearfix”> </div>
    <div><i class=”wpem-icon-eye”></i> <?php printf(__(‘%d people viewed this event.’, ‘wp-event-manager’), $view_count);?></div>
    <?php }?>
    <?php if (get_event_ticket_price()) {?>
    <div class=”clearfix”> </div>
    <div><i class=”wpem-icon-ticket”></i> <?php display_event_ticket_price(”, ”, true, $post);?></div>
    <?php }?>
    <?php if (get_event_ticket_option()) {?>
    <div class=”clearfix”> </div>
    <div class=”wpem-event-ticket-type”><span class=”wpem-event-ticket-type-text”><?php display_event_ticket_option();?></span></div>
    <?php }?>

    </div>
    </div>
    </div>
    </div>
    <div class=”wpem-single-event-body”>
    <div class=”wpem-row”>
    <div
    class=”wpem-col-xs-12 wpem-col-sm-7 wpem-col-md-8 wpem-single-event-left-content”>
    <?php do_action(‘single_event_overview_before’);?>
    <div class=”wpem-single-event-body-content” itemprop=”description” content='<?php echo wp_trim_words(get_the_content(),150) ; ?>’>
    <?php do_action(‘single_event_overview_start’);?>
    <?php echo apply_filters(‘display_event_description’, get_the_content()); ?>
    <?php do_action(‘single_event_overview_end’);?>
    </div>
    <?php do_action(‘single_event_overview_after’);?>
    </div>
    <div
    class=”wpem-col-xs-12 wpem-col-sm-5 wpem-col-md-4 wpem-single-event-right-content”>
    <div class=”wpem-single-event-body-sidebar”>
    <?php do_action(‘single_event_listing_button_start’);?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove – how many people viewed this event’ is closed to new replies.