WordPress.org

Ready to get started?Download WordPress

Forums

Title not showing properly for static front page Cutline theme (3 posts)

  1. antorera
    Member
    Posted 4 years ago #

    On a blog I'm working on, it has a static front page and the Title is showing as Mozilla Firefox and the tab title just shows the site URL "http://www.myklogica.es". The rest of the pages are behaving correctly.

    The title should be showing the name of the company Myklogica etc.

    The theme is Cutline Column Right.

    I've tried a fix to the header.php file I found, but it didn't work.

    Any ideas? Thanks.

  2. alchymyth
    Forum Moderator
    Posted 4 years ago #

    the title tag is actually empty - look at the hmtl code in your browser.

    maybe best to download a fresh theme and copy the title tag code from the fresh header.php:
    <title><?php if (is_single() || is_page() || is_archive()) { wp_title('',true); } else { bloginfo('name'); echo(' — '); bloginfo('description'); } ?></title>

  3. wpboy
    Member
    Posted 3 years ago #

    I found a solution, you might want to check this parameter:

    if (is_front_page() )

    So my Title tag is now like this

    <title><?php if (is_front_page()) { bloginfo('name'); } else if (is_single() || is_page() || is_archive()) {wp_title(false); } else { bloginfo('name'); } ?></title>

    Tags: static home page doesn't load page title / empty title

Topic Closed

This topic has been closed to new replies.

About this Topic