modifying title tag
-
I modified the title tag like so:
<title><?if ( ( $pt = single_post_title () ) || ( $pt = single_cat_title () ) ):?><?=$pt;?> – <?endif?><?=bloginfo ( ‘name’ );?></title>
so that if it is a category or a permalink, the title tag will display categoryname – blogtitle or permalinkname – blogtitle and if there is none of those it will just display blogtitle such as when the site just loads. However it does not want to include the “-” dash anywhere. Can anyone see where is the problem?
- The topic ‘modifying title tag’ is closed to new replies.