How to leave only one filter in Sessions?

  1. Home
  2. Docs
  3. Vertoh
  4. Frequently Asked Question...
  5. How to leave only one filter in Sessions?

How to leave only one filter in Sessions?

Please follow the instruction below to hide other filters:

1) Please don’t forget to take a backup of the file prior to any change.

2) Login to the admin dashboard. Navigate appearance ->editor menu.

3) Select Schedule Page Template (schedule.php) from the right side of the page listing.

4) Search for the following line (apx line no: 78)

<ul id=”schedule_filters” style=”display:none;”>

5) Find it’s closing UL tag (</ul>). apx line no:112

6) Please comment or delete all the content with in that UL element. ie from 79 to 111. And insert the following code with in that UL tag

<?php if (!empty($session_locations)) { ?>

<li class=”std-dropdown”>

<a href=”javascript:void(0)”><?php _e(‘Filter by days’, ‘vertoh’); ?></a>

<ul class=”dropdown-menu” role=”menu”>

<li><a href=”#” data-timestamp=”0″><?php _e(‘All’, ‘vertoh’); ?></a></li>

<?php foreach ($session_dates as $session_date) { ?>

<li><a href=”#” data-timestamp=”<?php echo $session_date->meta_value; ?>”><?php echo date_i18n(get_option(‘date_format’), $session_date->meta_value); ?></a></li>

<?php } ?>

</ul>

</li>

<?php } ?>

7) Save the file.

Was this article helpful to you? Yes 1 No