[Plugin: NextGEN Gallery] show Title alt of image instead
- font size decrease font size increase font size
- Print Email
view/gallery.php.
----------------------------------------------------------------------
In the nextgen plugin dir, edit the file view/gallery.php.
Find the line of code for the anchor (link) around the thumbnail:
<a href="/<?php echo $image->imageURL ?>" title="<?php echo $image->description ?>" <?php echo $image->thumbcode ?> >
Replace the title attribute with:
<?php echo $image->alttext ?>
Result:
<a href="/<?php echo $image->imageURL ?>" title="<?php echo $image->alttext ?>" <?php echo $image->thumbcode ?> >
Explanation: The effects like the Shutter box use the anchor title attribute to display text under the image. NextGen defaults this to the description field, but the edit above will replace this default with the alttext field.
Hope that helps!
( ! ) Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 169 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0018 | 412168 | {main}( ) | .../index.php:0 |
2 | 0.2171 | 4262184 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.2171 | 4262184 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.6941 | 11452976 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.6952 | 11477352 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.6971 | 11532680 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.6980 | 11560080 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.7142 | 11959712 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.7142 | 11959712 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.7499 | 12610416 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.7499 | 12610416 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.7587 | 12981456 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.7611 | 13001824 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.8755 | 15870760 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.8755 | 15870760 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.8793 | 16043696 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |
- Published in Wordpress
- Read 1462 times
( ! ) Notice: Only variables should be assigned by reference in /var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php on line 478 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0018 | 412168 | {main}( ) | .../index.php:0 |
2 | 0.2171 | 4262184 | Joomla\CMS\Application\SiteApplication->execute( ) | .../index.php:49 |
3 | 0.2171 | 4262184 | Joomla\CMS\Application\SiteApplication->doExecute( ) | .../CMSApplication.php:196 |
4 | 0.6941 | 11452976 | Joomla\CMS\Application\SiteApplication->dispatch( ) | .../SiteApplication.php:233 |
5 | 0.6952 | 11477352 | Joomla\CMS\Component\ComponentHelper::renderComponent( ) | .../SiteApplication.php:194 |
6 | 0.6971 | 11532680 | Joomla\CMS\Component\ComponentHelper::executeComponent( ) | .../ComponentHelper.php:377 |
7 | 0.6980 | 11560080 | require_once( '/var/www/vhosts/shan.info/httpdocs/components/com_k2/k2.php' ) | .../ComponentHelper.php:402 |
8 | 0.7142 | 11959712 | K2ControllerItem->execute( ) | .../k2.php:64 |
9 | 0.7142 | 11959712 | K2ControllerItem->display( ) | .../BaseController.php:710 |
10 | 0.7499 | 12610416 | K2ControllerItem->display( ) | .../item.php:78 |
11 | 0.7499 | 12610416 | K2ControllerItem->display( ) | .../controller.php:19 |
12 | 0.7587 | 12981456 | Joomla\CMS\Cache\Controller\ViewController->get( ) | .../BaseController.php:663 |
13 | 0.7611 | 13001824 | K2ViewItem->display( ) | .../ViewController.php:102 |
14 | 0.8755 | 15870760 | K2ViewItem->display( ) | .../view.html.php:742 |
15 | 0.8755 | 15870760 | K2ViewItem->loadTemplate( ) | .../HtmlView.php:230 |
16 | 0.8793 | 16043696 | include( '/var/www/vhosts/shan.info/httpdocs/templates/gk_publisher/html/com_k2/templates/default/item.php' ) | .../HtmlView.php:701 |