Tiled Galleries are built to fit your theme’s content width. You can define a specific $content_width value by adding the following code to your theme’s functions.php file:
if ( ! isset( $content_width ) )
$content_width = 800;
Hi guys,
Apologies if this is a stupid question, coding’s not my strong suit (it’s more like a paper bag I wear and hope it doesn’t rain).
Whereabouts in the theme’s functions.php file do I put this code?
I pasted it at the bottom of Standard Theme’s functions.php, and all it did was display the above line of code at the top of my blog.
See; http://imgur.com/i0CydD6
Would appreciate a tip!
Blog: http://www.doshio.com/2013/02/03/20-random-v3/ (I’ve since removed the code until a solution is found)
Actually, wait, I found the following section;
http://i.imgur.com/VtOZ2Ns.jpg – changed the width from 540 to 620, as you can see here. However, the Jetpack gallery at http://www.doshio.com/2013/02/03/20-random-v3/#more-1005 doesn’t appear to have changed in width.
The $content_width value might be set somewhere else in your theme; could you search for other instances of $content_width in your theme files?
Thanks!
Soooo, I haven’t found a solution to the width. My tiled-gallery for the Lamoon theme is set at 500px even though in Theme Functions.php the code is:
if (!isset($content_width)) $content_width = 900;
I don’t have any other image gallery plugins installed.
When I inspect element, it says: data-original-width=”500″
Every other theme I’ve tried, that number matches the $content_width number in the functions.php file.
So I have no idea.
here’s the page: http://digitalblueberries.com/products/
Could you check for other instances of $content_width
in your theme, just to make sure that the value isn’t already defined somewhere else?