Search code examples
phpfaviconpage-title

Title and Favicon Doesn't display in PHP


Here is the title and link I used with the header, but I just get the word "Document" instead

<title>Chicken and Waffle | Local 360 | Gunyen&lt;/title>
<link rel="shortcut icon" type="image/png" href="images/gunyen%20logo%20dark.png">;

sample: https://gunyen.com/post/local360chknnwfl.php

What am I doing wrong?


Solution

  • Check your code again! This is the page source code I see in my browser:

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
    </head>
    <body>
    
    
    </body>
    </html>
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <meta name="docsearch:language" content="en">
        <meta name="docsearch:version" content="4.3">
        <meta content="width=device-width, initial-scale=1" name="viewport">
        <link rel="shortcut icon" type="image/png" href="images/gunyen%20logo%20dark.png"/>
        <!--https://developers.google.com/search/reference/robots_meta_tag#directives-->
        <!--<meta name="robots" content="index, follow, archive">-->
        <meta name="robots" content="nofollow, noindex">
    ...
    

    As you can see, there are 2 head blocks!