Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Thread Starter shavenkitten

    (@shavenkitten)

    The functions already has the code in:

    if ( ! isset( $content_width ) )
    
    		$content_width = 640; /* pixels */

    Is it possible to set the gallery width to 100%?

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    Is it possible to set the gallery width to 100%?

    No, $content_width only accepts pixels:
    https://codex.www.ads-software.com/Content_Width

    Since your content area is larger than 640 pixels, I’d suggest changing that number to your theme’s content width value (817px, it seems).

    Thread Starter shavenkitten

    (@shavenkitten)

    I have made the adjustment to the Content_width, unfortunately still the same.

    The issue is, I think: data-original-width: 500px .

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic ??

    The issue is, I think: data-original-width: 500px .

    That’s correct. That value comes directly from your theme’s $content_width value. It is possible that $content_width is actually defined twice in your theme. That would explain why it remains set to 500px even though you’ve updated one of the values to 817px.

    Could you search for other instances of $content_width in your theme, and edit the value there?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Jetpack Gallery Width’ is closed to new replies.