Setting content width
-
Underscores uses this code to set
$content_width
:function _s_content_width() { $GLOBALS['content_width'] = apply_filters( '_s_content_width', 640 ); } add_action( 'after_setup_theme', '_s_content_width', 0 );
which causes this error:
“REQUIRED: No content width has been defined. Example: (code snipped)”
Is Underscores setting
$content_width
appropriately? I haven’t submitted a theme for consideration since this code was added to Underscores, so I’m not sure if this would affect the review or not.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Setting content width’ is closed to new replies.