WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Samerkamel
    Member
    Posted 1 year 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 :
    http://olympicegypt.com/sports/?album=2&gallery=5

    to this :
    http://olympicegypt.com/sports/?album=2&gallery=5#tab4

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

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. Samerkamel
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

    Resolved :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags