Home Forums Membership Forums Remove 'All' filter in K Galleries

This topic is: resolved
Posted in: Membership Forums  
  • July 21, 2017 at 3:30 pm #152605

    Thanks for the K Galleries plugin, I really like it… One question- I would like to remove the All filter (view all) in the gallery. I’m working on sites for artists who only want one type of work showing at a time.

    I see it here, but how would you override it in a child theme functions.php? (I’m primarily a front-end dev/designer, but I know a little PHP)

    					echo '<ul class="clearfix kt-option-set">';
    					echo '<li><a href="#" title="All"><span>'.__('All', 'kadence-galleries').'</span></a></li>';
    					foreach ($filter_cats as $cat_id) {
    						$filter_term = get_term($cat_id, 'kt-media-category');
    						echo '<li class="postclass"><a href="#">slug).'" title="" rel="'.esc_attr($filter_term->slug).'"><span>'. esc_html($filter_term->name).'</span></a></li>';
    					echo "</ul>"; ?>

    Sorry, this forum is for Premium customers only. Please Login to continue

    If you are using a free theme you can access support on wordpress.org by searching for the free theme and using the support tab.