• Resolved sarahsas

    (@sarahsas)


    Hello. I have a page on which I have some “other content” sitting above a nextgen album. Everything is functioning as it should, but I would like to customize a behavior and I’m wondering if it’s even possible.

    When I start interacting with the galleries within the album on this page, the default behavior is to load the breadcrumbs and the gallery content in the same location on the overall page as where the album is (which is below the “other content” mentioned before). As a visitor to the site, this makes it difficult to find the gallery, as you have to scroll down past the header and the “other content” to locate it every time, which isn’t ideal.

    I have two solutions in mind, wondering if either will work and how/where to implement them.

    1. Is it possible to make it so that when you click on a gallery within the initial album, the new page loads with an anchor to the location of the gallery, so the visitor doesn’t have to scroll down?

    OR, my other idea:

    2. If I create a class for the “other content”, I can set it to display:none; using CSS, however, I’m at a loss as to how to target the internal pages of the album & galleries, because the page id remains the same even though the url path is different (i.e. https://joemeldrum.com/media/ and https://joemeldrum.com/media/nggallery/production-photos/chicago are both still technically .page-id-70, so how to use css to say “don’t display this class when the galleries are loaded below it”)

    I understand that I can just build dedicated pages to each gallery and load those specific pages through the album’s navigation instead, but this sort of defeats the purpose of using an album setup, and will make it more difficult for my client to add new galleries to the album himself in future if he so desires.

    I hope I have explained my question adequately. Looking forward to hearing if anyone has a solution for me. Thanks!!

    • This topic was modified 4 years, 2 months ago by sarahsas.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Mihai Ceban

    (@mihaiimagely)

    Hi @sarahsas,

    I am afraid that there aren’t such specific CSS classes that would allow to hide the extra blocks that you don’t want to appear on the gallery pages.

    You seem to already know what is the alternate option that consists in linking the galleries to specific pages.

    Thread Starter sarahsas

    (@sarahsas)

    Thanks, yeah, I decided to go down the path of creating individual pages to link to, which isn’t ideal for future updates if my client wants to add a new gallery, but it is a much nicer UI.

    Just checking, is my first idea not a possibility either, providing some sort of anchor links in the albums so that when the galleries load, the page jumps to the start of the gallery rather than the top of the page?

    Thoughts?

    Plugin Support Mihai Ceban

    (@mihaiimagely)

    Hi @sarahsas,

    I am afraid that this isn’t possible either ( at least not without having to edit the plugin’s files which isn’t recommended ). The path can be either automatically generated or a page link only.

    Thread Starter sarahsas

    (@sarahsas)

    ok thanks for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘albums loading location behavior’ is closed to new replies.