WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Please Help Center Next Gen Photo Gallery (6 posts)

  1. jaytoddimages
    Member
    Posted 1 year ago #

    I need someone who knows their stuff. I am trying to center the photo gallery on my page and haven't been able to figure it out for weeks. I really would like to get my site up asap but I do not want it to look amateur with my stuff all off center. Could anyone help a brother out?

    http://www.jaytoddphotographer.com/portfolio/children/

    I am also confused where I should change things? in the custom css?

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Generally, you will need to get help from the theme vendor --as commercial themes are not supported here. That said, I looked at your site and it looks like all you need to do is change this CSS -- adding the "auto" to the margins:

    .scrollgallery {
        margin: 0 auto;
        padding: 0;
    }

    If your themes has custom CSS, add the above there. If that does not work, find that style code ins the scrollGallery.css file -- line 16 and add it there.

  3. jaytoddimages
    Member
    Posted 1 year ago #

    Thanks for the advice. How do you count the lines? I know that is probably a really stupid question. I try changing it in the custom css but it doesn't work. I will have to change it in the scrollgallery.css file but I don't want to change the wrong line.

  4. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    If you have custom css, that's actually a better place to make changes -- as they won't be erased when the theme is updated. So try copying the above code into the the custom CSS -- is that what you already tried?

    Try clearing your browse cache (and any other cache plug-ins you may have).

    If it still does not work, add the !important like this:

    .scrollgallery {
        margin: 0 auto !important;
        padding: 0;
    }
  5. jaytoddimages
    Member
    Posted 1 year ago #

    It worked! Thanks so much. I had a bunch of other crap in there that I erased and then I just copy and pasted and it worked beautifully! I totally appreciate the help!

  6. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    No problem & you're welcome - glad it worked! With CSS, you never quite know as it can be kinda fussy :).

Topic Closed

This topic has been closed to new replies.

About this Topic