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?
Try
add_filter('wp_title', 'my_custom_title');
function my_custom_title($title) {
return 'My Custom Title';
}
Check genesis/lib/structure/header.php to see how Genesis does it.