knuckle34
Member
Posted 8 months ago #
I am wondering how to change the "view with piclens" link to an image instead of text. I would like the piclens to be the only way or at least the most obvious way for someone to view the pics.
I understand how to change a hyperlink to an image link, but I cannot locate the area in the plugin where this link is generated.
Anyone? Alex, any ideas how I could do this?
http://www.wordpress.org/extend/plugins/nextgen-gallery
sterex
Member
Posted 6 months ago #
You can do this by editing the file "gallery.php" line:63
Insert the image, change the text, do whatever! :D
OceanRock
Member
Posted 5 months ago #
Sorry, but can I do this in the WP Editor? I looked all through nextgen-gallery/nggallery.php within the plugin editor and could not find where to do play with the PicLens link. Also, lines of code are not numbered, where am I off here? Thanks!
My site www.OceanRockProperties.com
@OceanRock:
Go to the nggfunctions.php file in your nextgen-gallery folder. Once you opened the file, search for:
if ($ngg_options['usePicLens']) {
$gallery->show_piclens = true;
$gallery->piclens_link = "javascript:PicLensLite.start({feedUrl:'" . htmlspecialchars( nggMediaRss::get_gallery_mrss_url($gallery->ID) ) . "'});";
}
(Usually line 204)
Change the indicated 'true' to 'false'. Problem solved.
Palituner
Member
Posted 5 months ago #
In my case helped: manually in my plugins directory, ussualy \wp-content\plugins\nextgen-gallery\view\gallery.php edit line 32 in this file gallery.php for change in gallery(in post/page) or in file gallery-caption.php for change it in Caption description.
rlopez
Member
Posted 3 months ago #
Thanks glex, worked perfectly