This topic has 4 replies, 2 voices, and was last updated 7 years, 11 months ago ago by Eva Kemp
Hello,
I hope this message finds you doing very well.
Is it possible to give me a pointer on how I can modify the product categories widget? Specifically, I have a need to ensure that the first item in the product categories widget is not automatically set to “expand”. Furthermore, I’m hopeful I can highlight three of the categories in the product categories widget as these are the categories that we would like to promote a little more than the others.
Thank you for any help!
All the best,
Bryan
Hello,
You can close the first category by editing wp-content/themes/royal/js/etheme.js file. Find and comment out line 1828
$this.find('>li').first().find('.open-this').html(minusIcon).parent().addClass('opened').find('ul.children').show();
To highlight only first 3 categories add this code in Theme Options > Custom CSS > Global Custom CSS:
.cat-item-123 a, .cat-item-76 a, .cat-item-65 a {
color: red;
}
Regards,
Eva Kemp.
Thanks, Eva!
Hello,
You’re welcome.
Regards,
Eva Kemp.
The issue related to '‘Help with Product Categories Widget’' has been successfully resolved, and the topic is now closed for further responses