Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

.widget font-size set to 0

$
0
0

Replies: 0

I’m using the basic version of GeneratePress.

After changes to /inc/add-ons/typography.php the css for .sidebar .widget, .footer-widgets .widget is set to { font-size: 0px; } effectively hiding some widget content for me.

In generate_font_css() the $generate_settings are “incomplete”, eg. the “widget_content_font_size” parameter is missing. That is resulting in the zero px fontsize.


	$generate_settings = wp_parse_args(
		get_option( 'generate_settings', array() ),
		generate_get_default_fonts( true )
	);

(add true parameter to generate_get_default_fonts()) Helps, but I don’t know any side effects.

Other option is to test for the keys before the add_property calls.


Viewing all articles
Browse latest Browse all 59525

Trending Articles