• Hello,

    I need to use 3 different thickness of a font in H2. How please?

    • This topic was modified 4 years, 5 months ago by Yui.
    • This topic was modified 4 years, 5 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 1 replies (of 1 total)
  • Is this for a single H2? Or all of them?
    For single, put <span class="thick1"> around the words, using different class names for each thickness. Then go define the classes in Customizer > Additional CSS or your child theme, to something like

     .thick1 {font-weight: 200;}
     .thick2 {font-weight: 400;}
     .thick3 {font-weight: 700;}

    This will usually only render well if the font that you are using has different weights, so you might need to load them in your theme or a plugin.

    To affect all H2 elements, you would need to add the classes with a script.

Viewing 1 replies (of 1 total)
  • The topic ‘Font Thickness’ is closed to new replies.