Something seems off with your theme’s $content_width
value: it seems to be set to “lap-and-up-two-thirds” instead of an actual value in pixels (ref).
Could you check your theme’s functions.php and try to change that value to something like 690
?
You can also try to use this plugin to overwrite the current content width value:
http://wordpress.org/plugins/custom-content-width/
Let me know if it helps.
Hi Jeremy,
We declared $content_width variable in functions.php like this:
if ( ! isset($content_width)) {
$content_width = 960;
}
I installed that plugin too but no change.
.lap-and-up-two-thirds
it’s a CSS class from the grid system used. Do you have any ideas of why that class appear instead of width in pixels?
Could you let me know how the grid system adds the classes to each element?
Classes are added directly from PHP – so isn’t something dynamic using JS.
Could you check that function and make sure it doesn’t make changes to the content_width
option? Could you also try the plugin I mentioned earlier and see if it helps?
Hi there Jeremy,
I’m currently using the theme linked in the first post and am having the same issue. I’ve tried the plugin you suggested but it’s still returning negative values.
I found a line in one of the theme’s files that I believe may be the culprit but I’m not entirely sure what needs to be done to get it to work correctly.
$content_width = $disable_sidebar == 'on' ? 'one-whole' : 'lap-and-up-two-thirds';
Commenting out that line appears to fix the issue with the negative values but disables the sidebar of the theme automatically on all posts. I understand this is most likely a problem with the theme and not Jetpack itself but any insight would be greatly appreciated.
@nuceman Could you please start a new thread about your issue?
http://wordpress.org/support/plugin/jetpack#postform
Thanks!