• Skip to primary navigation
  • Skip to main content

BookingWP™

WordPress Appointment Booking Plugins for WooCommerce

  • Get Appointments
  • Contact
  • My Account

Tiled gallery – Full width

Home › Forums › Deprecated › Taverna

Log in
gallery
  • Laura Houghton
    Customer
    10 years, 1 month ago

    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.

    Zeljan Topic
    Support
    10 years, 1 month ago

    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.

    Laura Houghton
    Customer
    10 years ago

    I would like it to be on the homepage yes. In the same place as widget 3, ie. tiled gallery in Taverna theme.

    Zeljan Topic
    Support
    10 years ago

    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.

    Laura Houghton
    Customer
    10 years ago

    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.
    Zeljan Topic
    Support
    10 years ago

    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.

    Laura Houghton
    Customer
    10 years ago

    I have never used FTP access, and am not aware how to…

    Laura Houghton
    Customer
    10 years ago

    NM, figured it out. Thanks.

    Zeljan Topic
    Support
    10 years ago

    Glad it works now. Submit your website to our showcase if you like. I’m sure it looks amazing ;)

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

Follow @bookingwp 900+ followers

  • About
  • Blog
  • Support
  • Terms
  • Privacy

© BookingWP™