Title: Width REQUIRED
Last modified: August 30, 2016

---

# Width REQUIRED

 *  Resolved [Pedromrferreira](https://wordpress.org/support/users/pedromrferreira/)
 * (@pedromrferreira)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/width-required/)
 * I get this message: if ( ! isset( $content_width ) ) $content_width = 900;
 * Isn’t this the same?
 *     ```
       function themename_content_width() {
       	$GLOBALS['content_width'] = apply_filters( 'themename_content_width', 900 );
       }
       add_action( 'after_setup_theme', 'themename_content_width', 0 );
       ```
   
 * [https://wordpress.org/plugins/theme-check/](https://wordpress.org/plugins/theme-check/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [10 years, 9 months ago](https://wordpress.org/support/topic/width-required/#post-6433519)
 * Try it with the latest version of theme-check on github instead. This version
   will be released alongside WordPress 4.3.
 * [https://github.com/Otto42/theme-check](https://github.com/Otto42/theme-check)

Viewing 1 replies (of 1 total)

The topic ‘Width REQUIRED’ is closed to new replies.

 * ![](https://ps.w.org/theme-check/assets/icon-128x128.png?rev=972579)
 * [Theme Check](https://wordpress.org/plugins/theme-check/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/theme-check/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/theme-check/)
 * [Active Topics](https://wordpress.org/support/plugin/theme-check/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/theme-check/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/theme-check/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/width-required/#post-6433519)
 * Status: resolved