- AuthorPosts
- November 26, 2013 at 14:12 #2280
AnonymousInactiveI currently have a gallery that will eventually link to another page/gallery.
When I have entered a link to the next page, it opens the link in a new tab, I would like to keep it open in the same tab.
I know that the code is “tagert”_self or window.open but I can find where to apply this or even if there is another way around it.
Any help would be great, thanks
November 29, 2013 at 17:18 #2298
RattusKeymasterBe sure you have latest version of all modules: go to Manage Galleries.. page -> Available Modules tab -> update modules if any.
If you use Phantom module, then edit init.php file ( /wp-content/grand-media/module/phantom/init.php ) on line 106 find:
'linkTarget': ''and change to'linkTarget': '_self'November 29, 2013 at 20:53 #2301
AnonymousInactiveThanks Rattus, its a brilliant module you’ve created and would love to make this work with my site
I’ve made sure the module is up to date located the linkTarget in the init.php file.
I’ve changed it and uploaded back to the same location, however when I reload the page again, the gallery disappears, do you know why this might be?
November 30, 2013 at 21:15 #2307
RattusKeymasterprobably, you did something wrong or there is javascript error on the page. I need to see gallery page, so I can tell more.
December 12, 2013 at 17:03 #2343
AnonymousInactiveWhere can I find the file? I need to make the same change. Thanks!
December 12, 2013 at 17:04 #2344
AnonymousInactiveOh yea I am using the Phantom module.
December 14, 2013 at 12:43 #2349
RattusKeymasterusing FTP client open this file from your server: /wp-content/grand-media/module/phantom/init.php
and edit as described above.December 15, 2013 at 13:13 #2352
AnonymousInactiveCashforever2000, if you manage to get this to work can I see it, I’ve had to change the module as the client was wanting something live quickly.
December 18, 2013 at 20:48 #2365
RattusKeymasterI’ve attached modified init.php file (unzip it first). Replace init.php file in phantom module and links will open in same tab.
Attachments:
You must be logged in to view attached files.December 18, 2013 at 23:37 #2374
AnonymousInactiveI can;t find where to get into the phantom module to edit it.
Thanks
December 20, 2013 at 21:13 #2389
RattusKeymasterDo you have access to your server files? The path to Phantom module is “//wp-content/grand-media/module/phantom/” (relative to your website root folder)
- AuthorPosts
- The forum ‘Troubleshooting’ is closed to new topics and replies.
