Forum Moderators: coopster

Message Too Old, No Replies

use h1 tag as page title

         

ads112001

6:10 pm on Oct 3, 2011 (gmt 0)

10+ Year Member



I have smarty templates setup and would like for the template to pull in the page h1 tag as the page title. I already have an entire site setup and don't want to have to add anything to all the html files, just the template files. Can this be done with jquery or php?

httpwebwitch

6:21 pm on Oct 3, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



does the Smarty template render everything, including the <head> and <title>?

rocknbil

4:20 pm on Oct 4, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can't you just put <title>{$title}</title> in header.tpl?

ads112001

4:28 pm on Oct 4, 2011 (gmt 0)

10+ Year Member



Thanks for your responses, I think i found a solution.