View Full Version : Changing HTML declarations
dartho
Fri 28th Dec '07, 12:32am
I'd like to change the the <HTML> declaration. It seems that there are many templates with the same
<html xmlns="http://www.w3.org/1999/xhtml" dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> at the top and I would like to change this on all templates. Is this possible from a single source, or would I have to manually edit all the templates?
Onimua
Fri 28th Dec '07, 2:32pm
Admin CP > Styles & Templates > Manage Templates > Style Vars > Miscellaneous
dartho
Fri 28th Dec '07, 4:53pm
Thanks, but that will only change the DOCTYPE.
It would seem I have to manually change all the templates, is there a way I can create a new variable so that should I need to make changes again in the future I can do this centrally?
i.e. I change all the <html> declarations to <html $stylevar[htmltags]> and set the $stylevar[htmltags] variable somewhere to be what I need?
Onimua
Sat 29th Dec '07, 3:00am
What you could do, and sorry for misunderstanding, is use the search and replace feature to do that. Just copy what you want and then paste what you want to change it to and it then submit it. Just make sure you do it for the style you want it to take effect in.
dartho
Sat 29th Dec '07, 10:18pm
/me slaps head
You know, I've never ever noticed the search and replace option before.
Too easy - thank you for you help, Onimua
Powered by vBulletin™ Version 4.0.2 Copyright © 2010 vBulletin Solutions, Inc. All rights reserved.