homepage Welcome to WebmasterWorld Guest from 54.198.148.191
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
Forum Library, Charter, Moderator: open

WYSIWYG and Text Code Editors Forum

    
How to change alt tags site-wide
Using Dreamweaver find and replace
Syzygy




msg:3631805
 9:46 pm on Apr 21, 2008 (gmt 0)

I'd like to add a few extra words into all my image alt tags. I don't want to replace the tags, just include additional words.

Initially I presumed that as the pages are templated, I could just add new text to the tags via this, but seemingly not.

Can I do this using find and replace? If so, how?

Thanks...

Syzygy

 

skipfactor




msg:3631819
 10:12 pm on Apr 21, 2008 (gmt 0)

Search Entire Current Site For:
alt="

Replace With:
alt="added text[space]

Obviously it will only work for adding text at the beginning of the alt tags. Don't forget the space.

BeeDeeDubbleU




msg:3631824
 10:19 pm on Apr 21, 2008 (gmt 0)

I am not sure that I am interpreting your requirements properly but here goes.

You can use find and replace to locate the tags but assuming that the words you want to replace are different on each alt tag you would still need to change them individually.

To do this choose Edit > Find and Replace then when the Find and Replace window opens select the "Find in Entire Local Site" site option along with the "Search Source Code" option.

Put alt= in the Find box and keep clicking "find next" to find all occurrences of alt=.

Edit: posted at same time as reply above.

[edited by: BeeDeeDubbleU at 10:20 pm (utc) on April 21, 2008]

Syzygy




msg:3632721
 9:46 pm on Apr 22, 2008 (gmt 0)

Replace With:
alt="added text[space]

That worked a treat. All alt texts added to with just one click! Thanks.

Syzygy

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / WYSIWYG and Text Code Editors
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved