Viewing 12 replies - 1 through 12 (of 12 total)
  • Hi!

    Had a similar problem a while ago, I dont know if its possible to modify it to a _blank way(most likely it is), but here is the tutorial URL : http://www.kimwoodbridge.com/how-to-link-nextgen-gallery-images-to-an-individual-page-or-post-in-wordpress/

    Hope it helps!

    Thread Starter gooma2

    (@gooma2)

    that’s a good one for having the image show up on same page without going off page. I used to use that, but for some reason all the gallery images wouldn’t show up on Google Images.

    Found out from them that they want the image to show up on its own page. Basically it’s just trying to figure out where to put in the simple code of (target=”_blank”)

    I’m sure someone will know which file or place to put that one.

    Thanks for that though!

    by the way, which plugin do you use???

    Thread Starter gooma2

    (@gooma2)

    ah, it was one of those so easy to fix things too!

    basically you just go in the nextgen/view/gallery.php file and under

    <!– Thumbnails –>

    you just add the target= blank to the href as below:

    <a>imageURL ?>" <strong>target="_blank"</strong> title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >

    now to just remember to keep adding that with each new update of the plugin:0

    thanks xAxKx for your help too!

    [Please post code snippets between backticks or use the code button.]

    hey I’m using nextgen gallery!!
    but why pictures opening in a light box??
    I want to open my pictures in next page

    Thread Starter gooma2

    (@gooma2)

    if you want your individual pics in your gallery to open up in a new window, just do what I found above.

    just go into your plugin section on wordpress…find Nextgen Gallery….hit edit and all the php files will pop up for you.

    Just look for the one that’s

    nextgen/view/gallery.php

    go near the bottom where it says

    <!– Thumbnails –> (looks just like this too)

    <a href="<?php echo $image->imageURL ?>" <strong>target="_blank"</strong> title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >

    Where it’s bold is where I put in that little snippet to open in a new window. I didn’t just the code button up top so the code isn’t correct. this one is.

    Thread Starter gooma2

    (@gooma2)

    the original code will look like this:

    '<a>imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >'

    just put the 'target="_blank" right after the '"
    ' following imageURL ?>" and you're all good to go.</a>'

    no, I dont want to open my pictures in new window!!!
    I just want to open my pictures in individual pages!!
    at present my pictures are opening in a light box.

    Nevermind!! I found the problem.

    The new code shouldn’t go in the second line 🙂

    Cool, thanks!!

    Thread Starter gooma2

    (@gooma2)

    I don’t know why they don’t add this code in automatically since most people want their thumb picks to open up on a new page rather than keep making the viewer go back and forth so with this latest update, don’t forget to add the above code in since this update makes your thumb gallery pics open up on the same page.

    I’ve had the same problem.

    Every image in the galleries has the abbility to get published via the “Publish” button.

    I created a custom field with the NGG Custom Fields Plugin and tweaked the publish function in manage.php so it writes the ID of the post into the custom-field’s value automatically.

    In the gallery.php it is an easy thing to check, if something is stored in the custom field. If it’s a post ID I generate a link with get_permalink(), otherwise I just return the imageURL. So you could create a post for each image in your gallery if you want to and get it hyperlinked without extra work to do.

    Good thing about storing the post ID: If you change f.e. the permalink slug of the article, you don’t have to change the custom-field value.

    I could publish those code snippets if someone want to mess around with it 🙂

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Plugin: NextGEN Gallery] How To Get Gallery Pics To Open On New Page?’ is closed to new replies.