WordPress.org

Ready to get started?Download WordPress

Forums

Gallery
[resolved] Help with opening link in the same window (6 posts)

  1. weirdali
    Member
    Posted 1 year ago #

    Hi guys, basically I use the gallery plugin to display images which all link to their relevant pages. At the moment when I click the images, the relevant pages open in a new window which is really frustrating. How do I get the pages to open in the same window?

    My page I am on about is http://www.teentipsdaily.com/relationships

    Thanks a lot for your help in advance

    Alex

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

  2. dlorenty
    Member
    Posted 1 year ago #

    I'm having the same problem. I would like to stay on the same page rather than opening a new tab when the image is clicked.

  3. abriel_s
    Member
    Posted 1 year ago #

    Until they come up with an update for the plugin, I simply input this into my header.php file, using the following:

    <script type="text/javascript">
    			$(document).ready(function(){
    				$('.gllr_image_block p a[target="_blank"]').removeAttr('target');
    			});
    </script>

    Hopefully this helps! :)

  4. weirdali
    Member
    Posted 1 year ago #

    Hi there abriel, I have put the coding into my header.php file, but the images are still opening in a new window :/

    Alex

  5. dlorenty
    Member
    Posted 1 year ago #

    Worked like a charm!! Thanks, abriel_s!!

  6. bestwebsoft
    Member
    Plugin Author

    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.