Recent Topics

1 Jan 22, 2012 10:19    

My b2evolution Version: 4.1.x

Hi

How do I call the file description or caption, alternative text from a linked image?

2 Jan 22, 2012 18:46

Is the linked image in your CSS file? In which case, you can't add alternative text I don't think.

If it's coded somewhere else, edit the file/widget/whatever, find the image code you want, and add

alt="your description here"

to the image code. Ie.
<img src="whatever URL you're using for the image" alt="your description here" />

I hope that's what you meant, I'm not entirely sure if that's what you were asking.

3 Jan 22, 2012 18:56

Try this

$File->desc
$File->alt
$File->title

4 Jan 22, 2012 22:03

Thanks guys, thought I deleted this post since I got it. Your reply is correct Sam.


Form is loading...