• Resolved VierasTalo

    (@vierastalo)


    Hi, so, uh. I’ve had a support topic about this before. However, now the site has yet again done the same thing after the latest WordPress-update. The tab for the site reads, yet again, just the url for the site, instead of what should be there (the word Laajakuva). Here’s the site: https://www.laajakuva.com/

    Does anyone have any ideas what to do here?

Viewing 11 replies - 1 through 11 (of 11 total)
  • I think you lack Site identity – the name of the site should be written in Appearance//Customize//Site Identity…
    Try and see if that is the question…
    Harry.

    Thread Starter VierasTalo

    (@vierastalo)

    felbar77, that isn’t it. The name is under Site Identity as it should be. The name was listed in the tab until the latest update so maybe that did something.

    Your every page has two titles, shown in source – for example Kritiikit has:
    <title>Kritiikit – </title>
    <title>Kritiikit – Laajakuva</title>
    and home page has:
    <title></title> <title>Laajakuva</title>
    Obviously it displays the first title…

    You said in your other thread “Then I however added the Enable title tag- command to my child theme, and that solved the problem. ”

    maybe you should try and remove this now?

    Thread Starter VierasTalo

    (@vierastalo)

    Hi, I tried removing the enable title tag -command, but alas it did not do anything.

    If it’s showing up like that in the source code, is it possible that the problem is somehow in my index.php or page-title.php files?

    Do you have a modified header.php in your child theme? How about any functions in your child theme functions.php file that could affect the title? Or an SEO plugin?

    Thread Starter VierasTalo

    (@vierastalo)

    I do have a modified header.php in the child theme. I’ve pastebined it for reference: https://pastebin.com/XZEYzDLz
    I don’t know if any of my child theme functions could affect the title. I don’t think so? Here’s a pastebin of that too: https://pastebin.com/GQSX1WwC

    The site does not use any SEO-plugins.

    First thing I would try is removing this line from your child theme header.php file. It’s not in the current version because it’s no longer needed since the theme now uses the default WP function to load the title:

    <title><?php wp_title( '-', true, 'right' ); ?></title>
    Thread Starter VierasTalo

    (@vierastalo)

    Hi, I removed that line, however, when I did that the titles across all our posts stopped working. I put it back after this.

    I checked your child theme functions again. You’re missing this in the alx_setup() function:

    // Enable title tag
    add_theme_support( 'title-tag' );

    Sorry I didn’t notice that earlier when I suggested you remove the <title> line in header.php. The ‘title-tag’ theme support was added in v2.2.0 to take advantage of the WP core support for the site title. Add that to your child theme function, remove the <title> line in your child theme header.php, and see if that fixes it.

    Thread Starter VierasTalo

    (@vierastalo)

    Thank you! This fixed the problem.

    This was very helpful. I’m not sure what changed and when, but this fixed my ‘missing site title in blog post page header’ problem. I was using a child theme of the Hueman theme and made the recommended changes to the header.php and functions.php files.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Site title not showing up in browser tab’ is closed to new replies.