Full post-width tiled gallery

In order to get the tiled gallery to use the full width of the post (currently 900px) instead of the built-in limit of 640px I’ve updated the /includes/functions.php with the following lines:

// Changes tiled gallery width

function custom_tiled_gallery_width( $custom_hello_text ) {
return 900;
}

add_filter( ’tiled_gallery_content_width’,’custom_tiled_gallery_width’);

This worked great, but I’m expecting it might get overwritten in future WordPress-updates and needs to be re-modified.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.