-
Hey,
Is there a way I can make the tiled gallery full width? I feel that the centred widget doesn’t fit with the rest of the theme. IMO.
Thank you.
Yes it is, but it depends, where you want to center this? – homepage? – where exactly? It would be best if you share a link to this page and I’ll post exact instructions.
I would like it to be on the homepage yes. In the same place as widget 3, ie. tiled gallery in Taverna theme.
1. Open your theme’s functions.php file and add this code at the end of it:
//* 1600px width for tiled gallery add_filter( 'tiled_gallery_content_width', 'custom_jetpack_galleries_width', 15 ); function custom_jetpack_galleries_width() { return 1600; }
2. Open your theme’s style.css file and add this code at the end of it:
/* Full width for the home section 3 */ #home-section-3 .wrap { max-width: 100% } /* Remove left/right padding for width edge-to-edge (optional) */ #home-section-3 .widget-wrap { padding: 0; }
Second part of style.css’s code is optional and I wouldn’t add it as it looks better with some padding on both sides.
So I just tried this and totally broke everything… I am now getting this and cant even log in. HELP!!!
Attachments:
You must be logged in to view attached files.I see you already have this function defined, so change the functions.php code with this:
1. Open your theme’s functions.php file and add this code at the end of it:
//* 1600px width for tiled gallery add_filter( 'tiled_gallery_content_width', 'custom2_jetpack_galleries_width', 15 ); function custom2_jetpack_galleries_width() { return 1600; }
Sorry for the inconvenience. Log in via FTP if site is inaccessible via web.
Glad it works now. Submit your website to our showcase if you like. I’m sure it looks amazing ;)
You must be logged in to reply to this topic.