Audio_Video_Media
Audio_Video_Media Recent Posts Threads Started
11 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Georgia
Audio_Video_Media says

Hi Everybody, i am developing my first wp blog theme and have question about $content_width, cant figure it out how much max value i should give ..,

My layout is very similar to this site http://que-demo2.elasticbuilder.com/?p=464, (responsive layout) as you can see if you resize browser till 5000px width content will be resized as well, so what does it means? it doesn’t have content width value? or it has and it more than 5000px? maybe 10 000px? or???

I want to get same result but cant figure out what max value i should give to $content_width = ????;

Please give some recommendations what should i do?

Thanks..

3556 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

^ The code written below can be found in any of my themes:

   // Define content width (stupid feature, this theme has no width)
   if( ! isset( $content_width ) ) {
      $content_width = 940;
   }

:D

Audio_Video_Media
Audio_Video_Media Recent Posts Threads Started
11 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Georgia
Audio_Video_Media says

Thanks for reply.

In my case my layout is responsive and If i set e.g $content_width = 3700; its ok? my theme will not be rejected for that?

Audio_Video_Media
Audio_Video_Media Recent Posts Threads Started
11 posts
  • Has been part of the Envato Community for over 1 year
  • Has collected 1+ items on Envato Market
  • Sells items exclusively on Envato Market
  • Located in Georgia
Audio_Video_Media says

^ The code written below can be found in any of my themes:
   // Define content width (stupid feature, this theme has no width)
   if( ! isset( $content_width ) ) {
      $content_width = 940;
   }
:D

I found one of your themes http://demo.krownthemes.com/huge/motion/self-hosted-video-2/ , my theme is similar like your theme , So In this theme you using $content_width = 940;?

3556 posts Ruben Bristian
  • Sells items exclusively on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
  • Has sold $500,000+ on Envato Market
  • Has been part of the Envato Community for over 6 years
+10 more
KrownThemes says

yes

by
by
by
by
by
by