Changing the syntax of the title tag on one page only
-
Hi can anyone help with the below, please?
I want to be able to change the syntax of my title tag only, so need to write an if / else statement.
I’m getting myself a bit muddled as my PHP isn’t great… but basically something along the lines of the below (although a working version) would be great 🙂
<?php if ( ! is_page_template('boatDetails.php') ) { ?> <title><?php bloginfo('name'); ?><?php wp_title('|'); ?></title>; else { <title>I'm a boat details page</title>; <?php } ?>
Thanks 🙂
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Changing the syntax of the title tag on one page only’ is closed to new replies.