• Resolved Jane Milburn

    (@jane-milburn)


    Hi, I am using a Twenty Seventeen child theme. WordPress version 5.0.3. I have searched the forum and online and unplugged plugins and cleared the cache but cannot find a solution that works.

    I am trying to make the gallery wider. I have found on this forum that the below code works to change the width –

    // Changes tiled gallery width

    function custom_tiled_gallery_width( $custom_hello_text ) {
    return 1200;
    }

    add_filter( ’tiled_gallery_content_width’,’custom_tiled_gallery_width’);

    I am nervous to add this to my functions.php and have instead used the Code Snippets plugin. What happens is odd. When I refresh the gallery page for a split second it is wider but then it goes back to normal.

    In the answer I read, someone had the same problem but apparently the problem was due to his server taking too much time initially and was corrected and it worked for them. I have been refreshing my page and clearing the cache for a few days now, so I don’t think that’s the problem.

    Any help to increase the gallery width will be much appreciated.

Viewing 1 replies (of 1 total)
  • Thread Starter Jane Milburn

    (@jane-milburn)

    I have found a solution using CSS although i’m not sure if this will work with all themes. I am using Twenty Seventeen.
    Firstly make you post/pages full width then add the CSS below to your CSS customize.
    .js-page-template-gallery .site-main {
    max-width:100% ;
    margin: 0 auto;
    }

Viewing 1 replies (of 1 total)
  • The topic ‘How to make the gallery wider. Tiled Gallery Carousel Without JetPack.’ is closed to new replies.