Page 1 of 1

Switch off views

PostPosted: 17 Mar 2016, 18:00
by micropub
Is it possible to disable the daily and total views for each listing?

Re: Switch off views

PostPosted: 18 Mar 2016, 10:39
by Foton
If the theme installed on your site is 'Classic' one, you need to remove the following code line in themes\classic\views\modules\apartments\views\view.php:
Code: Select all
<div class="stat-views">
            <?php if (isset($statistics) && is_array($statistics)) : ?>
            <?php echo tt('Views') ?><?php echo tt('views_all') . ' ' . $statistics['all'] ?><?php echo tt('views_today') . ' ' . $statistics['today'].'.&nbsp;';?>
            <?php echo '&nbsp;'.tc('Date created') . ': ' . $model->getDateTimeInFormat('date_created'); ?>
            <?php endif; ?>
        </div>