New Landing How can we help? Atelier Adjust Masonry gutter spacing

Viewing 15 posts - 1 through 15 (of 15 total)
  • Posted in: Atelier
  • #229465
    HjalmarCarlson
    Member
    Post count: 30

    I know it’s possible to adjust the vertical spacing between masonry items with css, but in order to modify the gutter spacing I need to modify the function.js file.

    Is there another way to adjust the gutter spacing without modifying core files?

    #229501
    HjalmarCarlson
    Member
    Post count: 30

    To follow up on this, I noticed that there is a -15px margin that is being added to the gutters but when I overwrite those margins nothing changes.

    Here is what I modified, located in sf-combined.min.css:

    ul.blog-items.gutters {
        margin-left: -15px;
        margin-right: -15px;
    }
    #229502
    HjalmarCarlson
    Member
    Post count: 30

    I’ve also added this to the javascript editor:

    $('.blog-items').isotope({
      masonry: {
        gutterWidth: 20
      }
    });
    #229527
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please provide me login detail to check and find solution.
    Thanks
    Mohammad

    #229531
    HjalmarCarlson
    Member
    Post count: 30
    This reply has been marked as private.
    #229565
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Hi

    Add this to your custom css:

    .blog-masonry .masonry-items .blog-item {
      padding-left: 6px;
      padding-right: 6px;
    }

    – Kyle

    #229678
    HjalmarCarlson
    Member
    Post count: 30

    Kyle,

    I’ve add the css you shared but it didn’t change anything, you can see the page here: http://hjalmarcarlson.com/lab/hailnails/blog/

    I believe that the gutters need to be modified in the masonry/isotope settings. Can this be done in the Atelier theme files?

    #229681
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Not sure how you’ve managed that, but it’s working fine on my demo

    Probably the changes you have made are causing it to break like that

    – Kyle

    #229737
    HjalmarCarlson
    Member
    Post count: 30

    Kyle,

    Do you have any suggestions on how to resolve?

    Can you share your demo link? Then I can see what’s different.

    #229747
    HjalmarCarlson
    Member
    Post count: 30

    I just removed all of the custom styles I have applied and added your css and it still didn’t adjust the gutters. The gutters are visible if I remove the border but they do not expand at all when you change padding value.

    #229818
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    I promise you the css works without any other customisation, look here: http://d.pr/i/1g1G7/YpmsDUAZ

    I’m not sure what you’ve done to get your blog looking like it is but it looks pretty messed up. Please remove all the customisation to the blog and add just my css, I’ve tested and it works

    – Kyle

    #230074
    HjalmarCarlson
    Member
    Post count: 30

    Kyle,

    The way the blog looks is intentional, with the exception of the gutter spacing.

    Also, if you look at my previous response, you’ll see I had already reverted all custom styles & theme modifications and even with the barebones Atelier theme it didn’t help. It’s since been reverted back.

    A link to static image doesn’t help. Can please provide a live demo link?

    #230110
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    Try this:

    .masonry-items .blog-item {
      margin-left: 5px;
      margin-right: 5px;
      width: 33%;
    }

    To adjust, just change the %

    – Kyle

    #230451
    HjalmarCarlson
    Member
    Post count: 30

    Thanks Kyle, that did the trick.

    #230472
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Great thanks to Kyle.
    Thanks
    Mohammad

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

You must be logged in to reply to this topic.