I have made a page template for a Genesis theme in which I want to change the <title>
tag but I can’t find any API reference or example to do this.
Does anyone have any idea how to do this?
I have made a page template for a Genesis theme in which I want to change the <title>
tag but I can’t find any API reference or example to do this.
Does anyone have any idea how to do this?
Comments are closed.
Try
Check genesis/lib/structure/header.php to see how Genesis does it.
I don’t know about any Genisis-specific way of doing this, but you can change the page title though the
wp_title
filter.The next step is to check if the current page uses the Foo Template page template. Remember to replace
foo_template.php
with the filename of your page template:See the WordPress Codex for more information on the
is_page_template()
function and thewp_title
filter.Take a look at
Reference : http://my.studiopress.com/snippets/entry-header/