Archived topic
Widget Title Height not working in customizer
4 replies · Started by Jon on March 1, 2022
I'm building a new site. The widget title height is not responding to settings in the customizer.
Appearance / Customize / Typography / Widgets / Widget-Title
The inspector is showing it is getting the properties from the H2 tag. Site is in private area below.
Is this a known bug, or am I doing something wrong?
Hi Jon,
That setting, by default, only works for legacy widgets. (The old widgets before Block editor was introduced to Appearance > Widgets)
You can try adding widget-title class to the h2 tag titles of your block widgets and see if it applies.
I see. I didn't realize that the "out of the box" widgets were block widgets, I assumed they WERE legacy widgets.
Adding the widget-title class didn't work. I tried both .widget-title and h2.widget-title in the "additional CSS Classes" of the block widget but neither worked. Is the syntax correct?
Oops... never mind. I used widget-title without the leading period and it worked. Thanks!
No problem. Let us know if you need further help. :D