Modifying title on home page
-
So, this is probably a silly question – I set up my website using the copyblogger theme, and I entered the title as “Toby Muresianu – Comedian”. Generally, the page titles shows up in the browser as “[page name] — Toby Muresianu – Comedian”, but in the case of the home page, it just shows up as ‘– Toby Muresianu – Comedian’ (in the html, <title> — Toby Muresianu – Comedian</title> ). In the template, it looks like it gets the title via the following:
<title><?php if (is_home()) { bloginfo(‘description’); } else { wp_title(”,true); echo ‘—’;} bloginfo(‘name’); ?></title>
Where bloginfo is in general_template.php, which it doesn’t seem I have access to through the theme editor.
All in all, it looks like it thinks my home page is not the home page (so is_home() is failing) but under settings > reading the front page is set to it, not sure how else to do it. Also, the page has the title set as “home”, so it’s odd that doesn’t show up in the title.
Any ideas for how to change the title to get those dashes out?
The topic ‘Modifying title on home page’ is closed to new replies.