• Resolved gemixin

    (@gemixin)


    Hi there

    Is there any way to change the font size of the tag cloud so that it’s much larger? The default small font size is very tiny and ideally I would like to have just one static font size of around 20px instead of the varying sizes based on frequency.

    Thanks
    Gemma

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.www.ads-software.com/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

    Plugin Support Mihai Ceban

    (@mihaiimagely)

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tag Cloud Font Size’ is closed to new replies.