• Resolved Alex

    (@molecularcode)


    Hi

    I’m loving the Pique theme, it’s a great one-pager.

    However, I’m having trouble using any of the Jetpack gallery options on the homepage at full-width. I have created a page using the full-width template and assigned it to one of the homepage panels. When I set up a gallery on that page and view it, it’s maximum with is 775px.

    I have tried using the Jetpack fix suggested in this thread, but after looking around the Pique functions.php file a bit, it appears the full-width $content_width is already being set on lines 90-114 (v1.2.3):

    if ( ! function_exists( 'pique_content_width' ) ) :
    	function pique_content_width() {
    		if ( is_page_template( 'page-templates/template-full-width.php' ) ) :
    			global $content_width;
    			$content_width = 1400; /* pixels */
    			endif;
    	}
    endif;

    If I view the page displaying the gallery, it is also limited to a width of 775px, so it’s not an issue restricted to the homepage. You can see same problem on the homepage and the individual page.

    Any help would be much appreciated.
    thank you
    Alex

Viewing 10 replies - 1 through 10 (of 10 total)
  • Hi Alex! I wonder if the content_width is actually being set correctly (without having looked at the theme’s code)? Maybe you can try echo-ing the value somewhere on the page, to see if it’s actually being set to 1400? If it isn’t, maybe something else is over-riding it?

    Also, note that your link to the suggestion in another thread is broken, so I can’t check what you’re referring to there.

    Thread Starter Alex

    (@molecularcode)

    Hi Richard

    Thanks for the quick response. Good suggestion! You are correct, the $content_width is always 775, regardless of the page template being used.

    Even when disabling all plugins I still get the same result. For now I have set the $content_width to be 1400 in the functions.php file, which fixes my immediate issue. I’m guessing this is a theme bug?

    thanks for much for your help
    Alex

    Btw, the link was to a thread where you’d previously posted a snippet of code for the functions.php file.

    if ( ! isset( $content_width ) )
    $content_width = 930;
    Moderator Kathryn Presner

    (@zoonini)

    Hmm – I haven’t been able to replicate this so far on my test site running Pique 1.2.3 – the gallery on a page using the full-width template stretches to fill the whole width of the page, as expected, both on the homepage panel and the single page.

    If you activate the parent theme instead of your child, do you see the same result?

    Thread Starter Alex

    (@molecularcode)

    Hi Kathryn

    Thanks for the suggestion, but I get the same result with the parent theme activated.

    Moderator Kathryn Presner

    (@zoonini)

    Very strange. You can see in this screenshot that I have a 9-column gallery stretching the full width of the page:

    Pique kp 1 2 3 by Automattic tagline 1

    This is also with all plugins deactivated. If I can think of anything else I’ll let you know.

    Moderator Kathryn Presner

    (@zoonini)

    If you’re able to undo your workaround temporarily so I can see the problem live on your site, I might be able to spot a clue.

    Moderator Kathryn Presner

    (@zoonini)

    I was able to replicate the issue only with these settings:

    – Jetpack’s Tiled Galleries module active
    – square tiled gallery

    Could you try a regular thumbnail gallery instead of a tiled gallery, and undo your workaround, and let me know how it goes?

    Thread Starter Alex

    (@molecularcode)

    Yes, the problem has always been with the Jetpack galleries e.g. tiled mosaic. The 2 default WP galleries display fine.

    I’ve undone the fix and you can see both a thumbnail gallery, which does extend full-width, and beneath it a tiled gallery that only goes to 775px wide.

    This isn’t Jetpack gallery’s issue, it’s the Pique theme issue. It’ll be fixed in the next update.

    Thread Starter Alex

    (@molecularcode)

    Thanks for the help everyone, much appreciated!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Problem using Jetpack galleries at full screen width with Pique theme’ is closed to new replies.