2

I have this element within <head></head>:

<title>Bau- und Möbelschreiner Mustermann</title>

but on Google it's displayed as

und Möbelschreiner Mustermann: Bau

Additionally I added a description meta tag which is displayed correctly:

<meta name="description" content="Bau- und Möbelschreiner Mustermann | Bla Bla Bla" />

Am I doing something wrong here? The website is made with Angular 4 (and NOT rendered on server side).

unor
  • 92,415
  • 26
  • 211
  • 360
modsfabio
  • 1,097
  • 1
  • 13
  • 29
  • 1
    [Google displaying website title differently in search results](https://stackoverflow.com/q/21387047/1591669) – unor Mar 10 '18 at 18:27
  • I also think that it does not have anything to do with angular. I've got a classic website (PHP) and the title is not exactly the one indicated. Also, the title for the landing page itsel changes depending on the search query on google... – David Apr 06 '18 at 12:45
  • DId you already have a website at this domain before? With correct title? – David Apr 06 '18 at 12:50
  • Yes, before I used angular the title was correct – modsfabio Apr 06 '18 at 13:14

2 Answers2

6

Check the encoding of your html file should be

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

and maybe set the language

At least here it works for a Bau- und Möbelschreiner

https://www.google.de/search?q=Bau-+und+M%C3%B6belschreiner&rlz=1C1GCEA_enDE767DE767&oq=Bau-+und+M%C3%B6belschreiner&aqs=chrome..69i57j0l5.719j0j7&sourceid=chrome&ie=UTF-8

Edit

If you are not sure how google sees your site then you might try their debugging tools on https://developers.google.com/search/docs/guides/debug

Mathias F
  • 15,906
  • 22
  • 89
  • 159
1

Try to add an <html lang="de"> on top of the index.html (after the !doctype, but before the head) and please enter an <meta charset="utf-8"> as first tag in the <head> tag.

That is the only thing I can imagine, what could scramble up this stuff. I never experienced this kind of problem before

Pawana
  • 296
  • 1
  • 4
  • 11
  • 1
    *"and please enter an `` as first tag in the `` tag."* Assuming, of course, the resource is delivered in UTF-8, and not some other encoding. Just blindly adding an encoding tag without ensuring it actually matches the encoding being used would be bad. – T.J. Crowder Mar 09 '18 at 08:39
  • I had this meta already, but I had language "en", changed it to "de". I will see if google accepts it... Thanks – modsfabio Mar 10 '18 at 11:58
  • hey, changing the lang did not help... UTF8 is already set correctly – modsfabio Mar 19 '18 at 07:27
  • sorry, was worth the shot – Pawana Mar 19 '18 at 07:32