• Resolved Mohamed Abkari

    (@patrekdev)


    Hello everyone!

    Few hours ago, I noticed that the tagline is getting displayed next the title in the browser title area (ONLY) when the website is in the home page, I kept trying to sort it out but I coudn’t, and I can say that the issue isn’t coming from a specific plugin.

    I tried to overwrite the title-tag support when the website in in the homepage by doing bloginfo(‘name’), and the problem solved, but another thing happened which is having two title tags in the head area.

    Anything that could help from you guys is appreciated, Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    Tag line display is typically due to theme functionality. It certainly is if not due to a plugin. I suggest you ask in the dedicated support channel for your theme for assistance. There the theme’s devs and expert users will better be able to help you.

    Thread Starter Mohamed Abkari

    (@patrekdev)

    I developed theme myself from scratch for my business, I mean I’m not using the function wp_title which used to cause the problem but instead I’m using the support theme title-tag. Is there any suggestions you may have for me to help?

    Thread Starter Mohamed Abkari

    (@patrekdev)

    I solved the Issue which was coming from the title-tag support and the way it handles the document title parts. I simply wrote this filter to return an empty tagline when on home/front page.

    function document_filter_parts( $title_parts ) {
        // Alter the tagline output.
        $title_parts['tagline'] = '';
        return $title_parts;
    }
    add_filter( 'document_title_parts', 'document_filter_parts' );

    Thanks for your help anyway.

    Moderator bcworkz

    (@bcworkz)

    No problem, I’m glad you found a solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Having Tagline Displayed Next The Title In Browser Title Area’ is closed to new replies.