Support

Home Forums Event Espresso Premium Hide Categories for non logged-in users (visitors) Reply To: Hide Categories for non logged-in users (visitors)

Reply To: Hide Categories for non logged-in users (visitors)

Author Replies
Josh # Posted on April 13, 2018 at 2:26 pm

A slight modification to the code will allow you to add more categories.

You change these two lines:

var cat = "category-slug"; //change this to match category slug
 jQuery("#espresso_calendar ." + cat).hide();

to:

var cat1 = "category-slug"; //category slug
var cat2 = "other-category-slug"; //other category
jQuery("#espresso_calendar ." + cat1 + ", #espresso_calendar ." + cat2).hide();
Do NOT follow this link or you will be banned from the site!