• Hi all,

    After PHP 5.6 broke my previous theme completely I started to rebuild my website from scratch. I nuked everything and installed the Pixgraphy theme (if it matters) and Jetpack and imported the demo. Then I set about making a new landing page. All I want is a tiled gallery, full width, black or dark grey background. Yet for some reason I can’t make it full-width. If you look at my linked page the gallery takes maybe two thirds of my screen, with a left indent and lots of white space on the right. The gallery is set as full width when I edit the page, and the site is set to full width layout in my layout options. What am I missing here?

    Thanks!

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Topher

    (@topher1kenobe)

    Ah, the jetpack tiled gallery! I love that one, it might be my favorite. Here’s the deal. Once upon a time it was normal to declare a max content width in a theme’s functions.php file, and the gallery shortcode still respects that setting. So look in functions.php for $content_width. Either remove it, or set it to something you like. You can read more about it here: https://codex.ww.wp.xz.cn/Content_Width

    Topher

    (@topher1kenobe)

    I should also tell you that if you want a gutenberg solution, I found this one to be pretty similar to the jetpack gallery: https://ww.wp.xz.cn/plugins/simply-gallery-block/

    Thread Starter wbouille

    (@wbouille)

    Thanks @topher1kenobe. The strange thing is that I tried editing the content_width (the global one and the gallery one) and it didn’t affect anything. Did I do it wrong? I just tried again (commented out the funtion) and still no dice…

    Topher

    (@topher1kenobe)

    Bleh, that’s always been the right answer. 🙂 I suppose it could ALSO be set someplace else. It could possibly also be a theme setting. What theme are you running? If it’s the type that offers lots of options they may have a setting someplace.

    Topher

    (@topher1kenobe)

    I just did some snooping on your HTML and found that the content area is set to be 70% of its containter. When I removed that it went to 100% of the container, but that still wasn’t 100% of the browser.

    This may be more work than you want, but I KNOW that the Kadence theme can get you what you want, including all the design elements I see on your existing site.

    Thread Starter wbouille

    (@wbouille)

    I just went through function.php and style.css and took any *width I could find and set it at 100% or 4000 px depending on which unit it wanted. I inserted something in the custom css to force containers to 100%. I double-checked everything. Nothing on my website even moved. Jesus, this is SO much stupider than it needs to be.

    Okay so maybe it’s the theme, I’m happy to use another. Kadence doesn’t support PHP 5.6 apparently, any other suggestions likely to work out of the box? I don’t mind nuking whatever I have on the website today (which is to say, really not much) and starting from scratch again. Literally all I need is a nice design, and 6-7 pages each with a full-width gallery. That’s it; no posts, no sidebar, no contact me, no e-commerce, no social media, I can live without any of that.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Full-width galleries?’ is closed to new replies.