If colorbox is opened the Title is only shown for 1 second or so. This makes the title fairly useless. How can I make the Title to show permanently or at least for an extended time?

Comments

frjo’s picture

Category: feature » support
Status: Active » Fixed

The title show for 1,5 sec and then disappear until you move the mouse over the image, then it shows again. I like it this way since on my site the image is more important than the caption.

If you don't like it I suggest you use one of the other styles you find on the Colorbox settings page. It also possible to add your own style, see the README for that.

hass’s picture

Category: support » feature
Status: Fixed » Active

Can we change the time, please. You cannot read it in this short time. Usability wise it's bad as the title fades away when my eye just focus on the image. I also cannot read a title in 1.5 seconds. 3 or 5 seconds may be ok.

frjo’s picture

My idea is that by showing it a short time people will see that there are some text there. If they are interested in it they will start moving there mouse to find a way to show it and then it will automatically show.

This only applies to the default and plain styles. The other styles shows the text all the time.

If you like the default or plain style but want to change the time you can copy the style to your theme and change the time there.

It's in the file "colorbox/styles/default/colorbox_style.js" line 8. Change the value "1500" (milliseconds) to any value you like or just delete the whole line to disable this effect.

hass’s picture

My idea is that by showing it a short time people will see that there are some text there. If they are interested in it they will start moving there mouse to find a way to show it and then it will automatically show.

You expect too much :-). I tried it myself more than once and it's very difficult to find the position that keeps the title. On iPad it's more than impossible.

It's in the file "colorbox/styles/default/colorbox_style.js" line 8. Change the value "1500" (milliseconds) to any value you like or just delete the whole line to disable this effect.

But with every update via update module or drush I'm losing my style.

frjo’s picture

Make a copy of the style in your theme if you want to change it, see README for instructions.

You make a valid point but on the other hand, this functionality has been in place since the start and I can't remember another issue about it. Maybe everyone else just ignores it :-).

I will delete the "setTimeout…" line in the JS for the plain style and see how I like it, that’s the style I use on my own site now.

El Bandito’s picture

+1 for this feature as a configurable setting.

Thanks for the great work on this module.

El B

frjo’s picture

Issue summary: View changes
Status: Active » Closed (outdated)