In the template setting I used to be able to do <title>{if segment_2}{title} – {/if}{site_name}</title> which would only show the page title on pages other than the home page. Now when I do that, I just get the site_name being output and not the title. I have to remove the conditional for the title to show.
Which then means I can't format the spacing around the – properly. If I put it in as the default title postfix, it only includes spacing on one side of it so I get a title like Page Name– Site Name which is why I was using the method above in the template before.
I'm not sure when this changed, I'm just working on an upgrade of a site from EE2 to EE7 which is when I noticed it.
In the template setting I used to be able to do
<title>{if segment_2}{title} – {/if}{site_name}</title>
which would only show the page title on pages other than the home page. Now when I do that, I just get thesite_name
being output and not thetitle
. I have to remove the conditional for thetitle
to show.Which then means I can't format the spacing around the
–
properly. If I put it in as the default title postfix, it only includes spacing on one side of it so I get a title likePage Name– Site Name
which is why I was using the method above in the template before.I'm not sure when this changed, I'm just working on an upgrade of a site from EE2 to EE7 which is when I noticed it.