Fudge

  1. Home
  2. Docs
  3. Fudge
  4. Frequently Asked Questions
  5. How to Remove Filter by Track and Filter by Location from the Schedule View

How to Remove Filter by Track and Filter by Location from the Schedule View

1) Please backup the file prior any editing.

2) Open wp-content/themes/fudge/functions/widget-schedule.php

3) Search for “<ul class=”filter track”>”. (around line number 110)

4) Remove the following lines:

<?php /*
<ul class=”filter track”>
<li>
<a title=”<?php _e(‘Filter by Track’, ‘fudge’); ?>” data-track=”0″><?php _e(‘Filter By Track’, ‘fudge’); ?></a>
<ul>
<li><a href=”#” data-track=”0″><?php _e(‘Reset’, ‘fudge’); ?></a></li>
<?php
foreach ($session_tracks as $session_track) {
?>
<li><a href=”#” data-track=”<?php echo $session_track->term_id; ?>”><?php echo $session_track->name; ?></a></li>
<?php
}
?>
</ul>
</li>
</ul>
<ul class=”filter location”>
<li>
<a title=”<?php _e(‘Filter by Location’, ‘fudge’); ?>” data-location=”0″><?php _e(‘Filter By Location’, ‘fudge’); ?></a>
<ul>
<li><a href=”#” data-track=”0″><?php _e(‘Reset’, ‘fudge’); ?></a></li>
<?php
foreach ($session_locations as $session_location) {
?>
<li><a href=”#” data-location=”<?php echo $session_location->term_id; ?>”><?php echo $session_location->name; ?></a></li>
<?php
}
?>
</ul>
</li>
</ul> */ ?>

5) Search for
<a class=”btn-less main-bkg-color” title=”<?php echo!empty($schedulelesstext) ? $schedulelesstext : __(‘View Less’, ‘fudge’); ?>” href=”#”><?php echo!empty($schedulelesstext) ? $schedulelesstext : __(‘View Less’, ‘fudge’); ?></a>
<a class=”btn-more main-bkg-color” title=”<?php echo!empty($schedulemoretext) ? $schedulemoretext : __(‘View More’, ‘fudge’); ?>” href=”#”><?php echo!empty($schedulemoretext) ? $schedulemoretext : __(‘View More’, ‘fudge’); ?></a>

(around line number 146)

6) Remove the above lines

Was this article helpful to you? Yes No