• Resolved marianssen

    (@marianssen)


    Hi,

    when I activate the plugin, my homepage title (the one in the tabs) changes from “Nitra | City Guide” to “Nitra | City GuideNitra | City Guide”. This only happens on my homepage and my news page. Any ideas how this can be fixed?

    https://wordpress.org/plugins/geodirectory/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Paolo

    (@paoltaia)

    Hi,

    are you using a SEO plugin?

    I would need to know what theme are you using and possible the code it has between the <title></title> tags in the header.php file.

    Let us know,

    Thx

    Thread Starter marianssen

    (@marianssen)

    Hi, this is the title code I’m using:

    <title><?php
    /*
    * Print the <title> tag based on what is being viewed.
    */
    global $page, $paged;

    wp_title( ‘|’, true, ‘right’ );

    // Add the blog name.
    bloginfo( ‘name’ );

    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( ‘description’, ‘display’ );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo ” | $site_description”;

    ?>
    </title>

    Plugin Author Paolo

    (@paoltaia)

    are you using a SEO plugin?

    Thread Starter marianssen

    (@marianssen)

    I’m not using SEO plugin.

    Thread Starter marianssen

    (@marianssen)

    The title only changes when I active your plugin. My theme is based on the Gentle theme by Themeforest.

    Plugin Author Stiofan

    (@stiofansisland)

    Hello,

    There are several ways to fix this but the easiest would be to just comment out these lines:

    // Add the blog name.
    bloginfo( 'name' );
    
    // Add the blog description for the home/front page.
    $site_description = get_bloginfo( 'description', 'display' );
    if ( $site_description && ( is_home() || is_front_page() ) )
    echo " | $site_description";

    Let me know if you need another solution.

    Thanks,

    Stiofan

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Title issue’ is closed to new replies.