I've found a string that's showing the posts title - blogname as title in the browser, but it's adding an extra '
This is the code I'm using:
<title><?php wp_title(‘ | ‘, ‘echo’, ‘right’); ?> - <?php bloginfo(‘name’); ?></title>
I can't see any extra ' so I don't know what's wrong.
I've found a string that's showing the posts title - blogname as title in the browser, but it's adding an extra '
This is the code I'm using:
<title><?php wp_title(‘ | ‘, ‘echo’, ‘right’); ?> - <?php bloginfo(‘name’); ?></title>
I can't see any extra ' so I don't know what's wrong.
Share Improve this question edited Feb 13, 2022 at 22:57 rudtek 6,3535 gold badges30 silver badges52 bronze badges asked Feb 13, 2022 at 20:14 Adam LarssonAdam Larsson 436 bronze badges1 Answer
Reset to default 1Those look like smart apostrophes to me. They have a curve on theme. Try:
<title><?php wp_title(' | ', 'echo', 'right'); ?> - <?php bloginfo('name'); ?></title>
Otherwise post what you have around that php section too.