Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Remove 'All' filter in K Galleries

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

This topic is: Resolved
[Resolved]
July 21, 2017 at 3:30 pm

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)

<?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>"; ?>

  • The forum ‘Membership Forums’ is closed to new topics and replies.