Ditto.. The default small-large font sizes are breaking accessibility guidelines. I’m not sure the inline styling is a great solution anyway. Forces theme developers to override the font sizes with !important.
Would be great if relative font sizes (smallest for lesser used tags, larger for more used tags), could be optional in the widget, allowing for the tag elements to just inherit whatever font size is chosen for the widget area and moving us a step closer to accessible websites.
For more info
https://developer.ww.wp.xz.cn/reference/functions/wp_tag_cloud/
Also this snippet removes inline styling that is added by core.. (but it’s extra work and shouldn’t be necessary)
add_filter('wp_generate_tag_cloud', 'myprefix_tag_cloud',10,1);
function myprefix_tag_cloud($tag_string){
return preg_replace('/style=("|\')(.*?)("|\')/','',$tag_string);
}
Bjarne
Hi @gemixin,
I am afraid that NextGen doesn’t offer an option to change that and using a JS/CSS solution might not be the case since the font size is being dynamically calculated based on the the tag’s popularity.
With the above being said – I will be happy to add it on our feature requests list.