Meta Title Not Displaying Correctly

Allgemeines
Post Reply
sajuk
Posts: 1
Joined: Thu 26. Jun 2025, 17:07

Meta Title Not Displaying Correctly

Post by sajuk »

Hi all,

I'm new to this site and have been working with CM Simple on localhost. I've encountered an issue that I’m hoping someone can help me resolve—perhaps it’s just a setting I’ve overlooked.

The Issue:
When I create a new page and set a custom Meta Title, it doesn't appear as expected. Instead of showing the Meta Title I’ve entered, the page title defaults to the page name (e.g., Home or Contact).

The current format being displayed in the browser is:
<title>sitename - pagename</title>

Any guidance on how to make the Meta Title display correctly would be greatly appreciated.

Thanks!
Gert
Posts: 2225
Joined: Sun 18. Nov 2012, 14:18

Re: Meta Title Not Displaying Correctly

Post by Gert »

sajuk wrote: Thu 26. Jun 2025, 18:10 The current format being displayed in the browser is:
<title>sitename - pagename</title>
Yes - and so it shall be. That normally makes sense for SEO reasons. If you want to suppress the pagename global, you'll need to use a trick. Start the template.htm like this:

Code: Select all

<?php $title=''; ?>
<!DOCTYPE html>
...
Gert
Gert Ebersbach | CMSimple | Templates - Plugins - Services
Post Reply