hasbehas
Posts: 3
Joined: Sat Apr 26, 2014 11:58 am

Image title + alt usage for PINTEREST

Hi all,

I am using highslide-with-html.js 4.1.13 with

Code: Select all

hs.captionEval = 'this.thumb.alt';
However I was unable to fix the Pinterest description problem.
Image

I have tried disabling/changing

Code: Select all

restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.'
part..

Has anybody managed to solve this ?

FYI: I am not JS guru, I am kind-a non programmer..
Browser:Chrome (Same on all)
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Image title + alt usage for PINTEREST

Which atribute is required for pinerest, title/alt? Could you descirbe your problem in more details and prepare live demo i.e jsfiddle.net?
Sebastian Bochan
Highcharts Developer
hasbehas
Posts: 3
Joined: Sat Apr 26, 2014 11:58 am

Re: Image title + alt usage for PINTEREST

What I am looking for is a solution for the pinterest image title/description.

Steps:
-Install pinterest "pinit" button. On Chrome or, website has already done it. (see on mywebsite: http://bit.ly/EphesusBreeze-Ephesus )
-Click on thumb image to be enlarged by highslide.
-Pin the enlarged image.
-What you see as the description of the image that is pinned, is highslide's default title.

Code: Select all

restoreTitle : 'Click to close image, click and drag to move. Use arrow keys for next and previous.'
in highslide-with-html.js line 33.

I would like to change this.
seba
Posts: 4415
Joined: Tue Jul 31, 2012 2:26 pm

Re: Image title + alt usage for PINTEREST

You need to find a lines

Code: Select all

this.content.title = hs.lang.restoreTitle;
and replace with the code

Code: Select all

this.content.title = this.thumb.title;
But image which you click, need to have title attribute.
Sebastian Bochan
Highcharts Developer
hasbehas
Posts: 3
Joined: Sat Apr 26, 2014 11:58 am

Re: Image title + alt usage for PINTEREST

Thanks seba,

kind a worked. But rather than the image href title, thumb title came up.

So changed to;

this.content.title = this.thumb.alt;

And this worked just fine since all images have good alt attributes.

Thank again.. :D

Return to “Highslide JS Usage”