Viewing 8 replies - 1 through 8 (of 8 total)
  • I too am experiencing this and would love to have it simply fill 100% of the space it is set in – no other gallery or lightbox plugins are installed. I followed another post’s suggestion to add:

    if ( ! isset( $content_width ) )
    $content_width = 940;

    to functions.php, but I had no change in the setup, even after a server cache clearing (nginx) and a disable/re-enable of Tiled Galleries.

    http://dev.zahnhomes.com/portfolio-photo-albums/specialty-rooms/

    Any thoughts/direction would be greatly appreciated.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Adding a $content_width value should do the trick indeed.

    If that doesn’t help, could you check that the $content_width was not already defined somewhere else in your theme, or in a parent theme?

    Thread Starter bryananthonylewis

    (@bryananthonylewis)

    Can I do something like this?

    if ( ! isset( $content_width ) )
    $content_width = 100%;

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    I’m afraid not. The width is in pixels. You can read about it here:
    http://codex.wordpress.org/Content_Width

    Thread Starter bryananthonylewis

    (@bryananthonylewis)

    I find that adding…

    //add supported width for galleries – jetpack
    if ( ! isset( $content_width ) )
    $content_width = 760;

    really screws up the layout. I think I’ll just switch to another plugin and avoid this headache don’t the road.

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Your theme’s content width seems to be set to 730px at the moment. What happens when you set the $content_width value to 730px?

    Thread Starter bryananthonylewis

    (@bryananthonylewis)

    That seemed to work just fine. Crazy. I wondering why going over to 760 didn’t make it look overlapping. I was starting to get confused. Thank you very much! I’m very appreciative of the great support!

    Jeremy, thanks for the knowledge — it was indeed a function of the theme (child actually, not the parent). Secondary pages were set to a 2-column instead single that I was seeking, so now things look great! No need to edit the functions.php file further… just needed to get my child theme settings squared away. 🙂

    Thanks again.

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