add title on href

Permalink Browser Info Environment
Hello,

Thank you for the plugin.

In the demo website, there are title attributes on links.
How can I add title attribute on my gallery ?

Kinds regards.

Nicolas

Type: Discussion
Status: New
agencecoteo
View Replies:
jordanlev replied on at Permalink Reply
jordanlev
I removed that a few versions back because most people didn't like it (they did not want a tooltip popping up with the title). If you want to add it back, it is very easy to do by overriding the default template, as follows:

1) Create a new folder on your server here:
SITEROOT/blocks/deluxe_image_gallery


2) Copy these 2 files:
SITEROOT/packages/deluxe_image_gallery/blocks/deluxe_image_gallery/view.php
SITEROOT/packages/deluxe_image_gallery/blocks/deluxe_image_gallery/view.css

...into that new folder from step 1.

3) Edit the new copy of the "view.php" file, and find this line (shoudl be around line #20):
<img src="<?php echo $img['thumb_src']; ?>" width="<?php echo $img['thumb_width']; ?>" height="<?php echo $img['thumb_height']; ?>" alt="<?php echo $img['title']; ?>" />

...and change it to this:
<img src="<?php echo $img['thumb_src']; ?>" width="<?php echo $img['thumb_width']; ?>" height="<?php echo $img['thumb_height']; ?>" alt="<?php echo $img['title']; ?>" title="<?php echo $img['title']; ?>" />


Best,
Jordan

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.