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
Kadence Theme – Several Questions From New But Old User
Home / Forums / Kadence Theme / Kadence Theme – Several Questions From New But Old User
Tagged: buttons, navigational arrows, woocommerce
- This topic has 1 reply, 1 voice, and was last updated 4 years, 11 months ago by
Mark.
I have used Kadence themes on my site for years. So first off thank you for the great themes!
I recently decided to try the new theme as I noticed it had a few features that would be useful. Nothing urgent but a few questions.
First on the Woocommerce Single product page, is there no option to display navigational arrows? I mean baked in. I am trying to get away from adding in page builders for one or two features.
Second item, is there a way to disable “Zoom” on Woocommerce product page images. I want the lightbox functionality but not zoom? I could not find a way to accomplish this within the customizer options.
Third items is a bit more involved and it actually took me awhile to figure out what (sort of) was happening. It may well be outside of support but I’ll ask anyway. For years I’ve had a sort of “secret” category in my blog. It’s only purpose is for the RSS feed that goes to my newsletter. I didn’t want all of my posts to go to the newsletter, so I created this category that has no other purpose in site organization. The following piece of code in my child functions hid that category and while I was at in any uncategorized posts that might slip through.
function the_category_filter($thelist,$separator=' ') {
if( is_admin() )
return $thelist;
// list the IDs of the categories to exclude
$exclude = array(1,235);
// create an empty array
$exclude2 = array();
// loop through the excluded IDs and get their actual names
foreach($exclude as $c) {
// store the names in the second array
$exclude2[] = get_cat_name($c);
}
// get the list of categories for the current post
$cats = explode($separator,$thelist);
// create another empty array
$newlist = array();
foreach($cats as $cat) {
// remove the tags from each category
$catname = trim(strip_tags($cat));
// check against the excluded categories
if(!in_array($catname,$exclude2))
// if not in that list, add to the new array
$newlist[] = $cat;
}
// return the new, shortened list
return implode($separator,$newlist);
}
// add the filter to 'the_category' tag
add_filter('the_category','the_category_filter', 10, 2);
Fair warning this is code that came from a user forum but it worked. The categories are identified by post ID, so the numbers are relevant on my site. The category is visible for admin when creating posts but not to readers. When I first tested the new Kadence theme on a test site with this code in my child functions the other day, it worked. So I was surprised when I activated it on my actual site and it was not. After hours of deactivating plugins, verifying the functions code was the same on both sites, I finally realized the difference. On my live site, I decided to use the “pill” shaped categories in post meta and on the archive pages. Sure enough when I changed from “pill” design back to “normal” the hidden category returned to hidden. If it’s a simple fix to change this, I’d love to be able to use the pill shaped categories as I think they look better visually but if it’s super complicated and thus outside of support, then no problem! It might be the catalyst to re-think hiding that category – maybe I could make it organizationally useful…
And a fourth item that is actually not specific to Kadence Theme. I had this same question from Ascend which I was using previously. When using the Advanced Custom Button block in posts, I always change the colors of the button – fairly consistently to the same colors. Is there a way I’ve missed that one can set default styling for that button? The only thing I saw was making reusable content but all elements including the button text/link needed to be static as far as I could tell for that. If not and it’s possible that would be an awesome feature, IMO.
Thanks!
-
This topic was modified 4 years, 12 months ago by
Mark.
- The forum ‘Kadence Theme’ is closed to new topics and replies.


