Image allign inside gallery

  • Posted in : Photographer
  • VladyCu
    Participant

    Hello,

    For my site I use single column galleries and I want the photos to be centered.
    http://vladilas.ro/test/portfolio/mihaela-si-paul-gura-humorului-rarau-2015/
    In this example, you can see that the portrait images are aligned left. How can I change this? I would like to do this by modifying the child theme if possible :)

    serkan
    Moderator

    Hi,
    Could you try to use this custom css code;

    .gallery-item {  text-align: center; width: 100%; }

    Thanks

    VladyCu
    Participant

    I did that, it shows the image full width. If I remove the width parameter, it’s the same.

    serkan
    Moderator

    Hi, If you don’t want to make it full width, then you should add your images via add media button and choose the text-align center from the text editor area. The masonry layout is working that is why the custom css code is not working in this scenario.
    Thanks

    VladyCu
    Participant

    If I don’t add the images as a gallery, I lose the photowall…

    serkan
    Moderator

    Hi, If you don’t add the photowall shortcode, You images will come from the gallery which you inserted on the page. If you have the photowall shortcode, photos will come from the portfolio.
    If you are not using the shortcode so you should create a gallery on your homepage and upload your pictures there.
    What I mean is you can add a custom gallery for your photowall so it won’t affect from your portfolio page.

    VladyCu
    Participant

    I would have liked that the photowall built himself without me creating a special gallery for it.
    Anyway, I don’t like the way the photowall is working, because it only shows me images from the last portofolio gallery, instead of showing random photos from all the galleries.

    http://vladilas.ro/test/

    serkan
    Moderator

    Hi,
    It is randomly chosen from all portfolio gallery. You can create a private gallery to avoid complexity, but you do not want to create it. I will talk to our developer if there is anything we can do for you.
    Thanks for your understanding.

    VladyCu
    Participant

    I managed to do it by myself, you are not much of a help here :))

    .gallery-icon.portrait
    {
    margin-left: 20%;
    margin-right: 20%;
    }

    serkan
    Moderator

    Hi, Thanks for the feedback.

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

You must be logged in and have valid license to reply to this topic.

License required for the following item
Login and Registration Log in · Register