NextGEN Gallery
[resolved] Adding Anchor Tag to Gallery Link without permalinks (3 posts)

  1. Samerkamel
    Posted 3 years ago #

    Hi, i currently am using Nextgen Gallery and I have edited it to fit all my needs, i am currently stuck with the fact that i have a client who needs the gallery to be inside a tabbed layout and would like to add an anchor tag ( #Tab4 ) at the end of the generated gallery link after refresh so it would load the appropriate tag ( can be use to scroll long posts to gallery area ) .. ALL galleries will always have the same anchor link so literally sticking it inside the code will do the trick for me

    what i want to do is :

    Transform this :

    to this :

    i am just not sure where exactly in the code is that link generated !!


  2. Samerkamel
    Posted 3 years ago #

    Ok i think i found it !

    i changed :
    <a class="Link" href="<?php echo $gallery->pagelink ?>">

    into :

    <a class="Link" href="<?php echo $gallery->pagelink ?>#tab4">

    and it actually works !! i hope this helps anyone who's facing the same problem ( Either in tabs, accordions or very long posts ! )

  3. Samerkamel
    Posted 3 years ago #

    Resolved :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic