420 posts
  • Elite Author
  • Bought between 50 and 99 items
  • Exclusive Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 2-3 years
  • Envato Studio (Microlancer) Beta Tester
  • Grew a moustache for the Envato Movember competition
  • Referred between 10 and 49 users
  • United Kingdom
Jaynesh says

Hello,

I’ve been soft rejected due to not correctly setting $content_width (and a few other issues).

But this content_width thing is bugging me the most..

How would the $content_width be set on a responsive design where the width will differ depending on the browser size?

How would the $content_width be set on a theme when the user can set their own width for each individual post?

3189 posts
  • Sold between 5 000 and 10 000 dollars
  • United States
  • Bought between 10 and 49 items
  • Has been a member for 4-5 years
  • Exclusive Author
organicbee says

How would the $content_width be set on a responsive design where the width will differ depending on the browser size?

Max width

How would the $content_width be set on a theme when the user can set their own width for each individual post?

You can set the content with based on the size/option of a post

1465 posts
  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Croatia
OriginalEXE says

Regarding responsive design, you can’t do much about it, but you can make embedds responsive, right? So I would say, set the content_width to the (max) size viewed on desktop.

Regarding individual post size, you could do it with a simple is_single check. Then, if it is a single post, get_post_meta to retrieve user defined post width and then define content_width appropriately.

http://codex.wordpress.org/Content_Width
by
by
by
by
by
by