Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #738656

    Hello,
    On this page I would like to set the padding above and below the masonry gallery to 20px, I am having trouble using a custom css class to do this, I have tried applying it to the gallery and also the colour section that it is in but neither work.

    Any help really appreciated.

    Graham

    #738816

    Hey Graham,

    Please try the following in Quick CSS under Enfold->General Styling:

    .postid-1194 #av-masonry-1 {
        padding: 20px 0;
    }

    Best regards,
    Rikard

    #738831

    Hello,

    Thank you for your reply, unfortunately it does not seem to work, I have included a picture to show the space that I am trying to reduce (marked in red

    Info

    Thank you very much

    Graham

    #739219

    Hi,

    Ok, try this instead:

    .postid-1194 #after_layer_slider_1 .av-content-full {
      padding:0 !important;
    }

    Best regards,
    Rikard

    #739275

    Thank you that is perfect. If I want to apply this and a few other styles to many pages is it possible to assign a custom css class to a the pages to apply the style. I come from a Joomla background where we often used it. However with WP I see no way of applying a class to a page. I have it enables to add one to individual elements on the page but not the page a a whole.

    Thank you very much as ever.

    Graham

    #739777

    Hi,

    Glad we could help :) You can also check on the body’s classes as it is unique with every page or post, you can use that to style each page/post specifically.

    Best regards,
    Nikko

    #739901

    Hi Nikko,

    That’s great, one last question is it possible to add a class to every page so that I have just one line of CSS to apply this to many pages, bit like this

    .new-class #after_layer_slider_1 .av-content-full {
    padding:0 !important;
    }

    Then add the new-class class to every page that I want to style?

    If not no problem, just trying yo keep the CSS small as there may be 100+ pages that need this styling.

    Thank you very much.

    Graham

    #739973

    Hi!

    There is no such option we are afraid, as every page has a different id – and we do not have an option at enfold, to add a class at body.
    You can add a custom CSS to the element although.

    let us know if that works

    Best regards,
    Basilis

    #740001

    Thank you for that, I do have that enabled and will use that instead. What I was thinking of was not an out of the box way of working, I found some plugins to do it but would rather keep plugins to an absolute minimum on this site.

    Thanks for your help, I love the support here, and the template is great. Please can you close the ticket for me.

    Graham

    #741067

    Hi Graham,

    Glad we could help and thanks for the feedback :-)

    Please open a new thread if you should have any further questions or problems.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Masonry Padding’ is closed to new replies.