From af1b44e3dcc2c0eab63b06d32fb2770d2d6b4527 Mon Sep 17 00:00:00 2001 From: Scott Walkinshaw Date: Mon, 24 Sep 2012 13:08:16 -0400 Subject: [PATCH] Better comment regarding $content_width --- lib/config.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/config.php b/lib/config.php index 6dead0d..165001b 100644 --- a/lib/config.php +++ b/lib/config.php @@ -36,5 +36,13 @@ function roots_sidebar_class() { define('GOOGLE_ANALYTICS_ID', ''); // UA-XXXXX-Y define('POST_EXCERPT_LENGTH', 40); -// Set the content width based on the theme's design and stylesheet +/** +* $content_width is a global variable used by WordPress for max image upload sizes and media embeds (in pixels) +* +* Example: If the content area is 640px wide, set $content_width = 620; so images and videos will not overflow. +* +* Default: 940px is the default Bootstrap container width. +* +* This is not required or used by Roots. +*/ if (!isset($content_width)) { $content_width = 940; }