Can I Add Heading Tags Using Smarty in Meta.tpl file?

derrickhand300
@derrickhand300
10 years ago
1,353 posts
I would like to use the meta.tpl file to add H1 tags to all my pages so what I am after is to have all page titles to be in H1 tags-I have tried editing the code below:
 {jrCore_lang skin=$_conf.jrCore_active_skin id="1" assign="default_title"}
<title>{$page_title|default:"`$default_title`"|capitalize}</title>

By adding this
 {jrCore_lang skin=$_conf.jrCore_active_skin id="1" assign="default_title"}
<title><h1>{$page_title|default:"`$default_title`"|capitalize}</h1></title>

but not working properly-any way to add this using smarty?

Thanks
updated by @derrickhand300: 12/22/16 11:55:59AM
michael
@michael
10 years ago
7,816 posts
That's invalid html.

The title tag is meta data that goes to the browser. H1 is a formatting tag that changes the look of the text on the page.

H1 is only valid inside the body /body section.
derrickhand300
@derrickhand300
10 years ago
1,353 posts
Ok so can this be done using smarty in the body section?
michael
@michael
10 years ago
7,816 posts
What is it you want to do?

<title></title>
is ONLY for the head section
<h1></h1>
is ONLY for the body section.

Page titles can be put in the item_detail.tpl page and can be wrapped in an H1 tag if you like.
derrickhand300
@derrickhand300
10 years ago
1,353 posts
ok thanks

Tags