1
nmshah
Adding alt tag to images in custom block
  • 2007/10/21 11:10

  • nmshah

  • Just can't stay away

  • Posts: 556

  • Since: 2007/7/2 8


On my homepage i have some custom made blocks with images in them. I want to add the alt description to these images. Any way to do this.

2
kris_fr
Re: Adding alt tag to images in custom block
  • 2007/10/21 11:24

  • kris_fr

  • Theme Designer

  • Posts: 1009

  • Since: 2005/12/31


hi,

Personnal Block in xoopscode or html ?

@+

3
jeffgr
Re: Adding alt tag to images in custom block
  • 2007/10/21 12:56

  • jeffgr

  • Quite a regular

  • Posts: 263

  • Since: 2004/2/22


If you want to add Alt descriptions to your image tags, you must modify the image tag like this:

<img src="http://yourdomain.com/images/imagename.jpg" alt="This is the Alternate Text" />

So, go to your Blocks admin page, find the custom block, hit the edit link,, and just modify the code where your image is embedded in that block. You are basically just adding alt="This is the Alternate Text" inside the image tag.

On another note, if you are adding this Alt description to help with youR XOOPS site SEO, you may also want to change your file names so that they are more keyword descriptive....as this will also help your SEO efforts. You would have to change the reference to the image file in your custom blocks, as well as actually changing the file name where it is uploaded to the server. Here's an article that I recently wrote about image file names for XOOPS SEO.

jeffgr

Login

Who's Online

264 user(s) are online (189 user(s) are browsing Support Forums)


Members: 0


Guests: 264


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits