Plugin Directory


Opened 4 years ago

Closed 4 years ago

#2043 closed defect (duplicate)

Custom CSS: custom $content_width value doesn't overwrite theme's $content_width

Reported by: jeherve Owned by: tmoorewp
Priority: normal Severity: normal
Plugin: jetpack Keywords: custom-css content-width
Cc: jeherve, richardmtl, csonnek, ryancowles


Steps to reproduce:

  1. Activate a theme that sets a $content_width value (e.g. one of the default themes
  2. Activate Jetpack and the Custom CSS module
  3. In Appearance > Edit CSS, define a custom $content_width value that is different from the theme's:


  1. Save your changes
  2. Load a page where a Youtube video is inserted using oEmbed, or where you've inserted a Vine video using Jetpack's Vine shortcode:
    • Youtube uses oEmbed, and ends up using the global $content_width value set by the theme.
    • Vine uses Jetpack::get_content_width(); by default, and consequently uses the custom value we set in the Custom CSS screen.


I believe the Custom CSS Content width setting should overwrite all settings, as mentioned in the description of the option.

Could we overwrite the global content width value on save?

Reported here:

Change History (1)

comment:1 in reply to: ↑ description @jeherve4 years ago

  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.