Support » Plugin: NextGEN Gallery - WordPress Gallery Plugin » Adding Anchor Tag to Gallery Link without permalinks

  • Resolved Samerkamel


    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 !!

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 ! )

    Resolved 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Adding Anchor Tag to Gallery Link without permalinks’ is closed to new replies.