0to9Digital / SEO-Lite-Pro

The most powerfull SEO module for ExpressionEngine.
6 stars 6 forks source link

Segment conditionals don't work any more #21

Closed tyssen closed 1 year ago

tyssen commented 1 year ago

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.

0to9Digital commented 1 year ago

Hi @tyssen ,

You have to use the default title postfix, but have to add an extra space before the dash sign, like this: &nbsp;-&nbsp;SITENAME

the &nbsp; represents a space.