Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Problem with echo of Site name WordPress

Hello I am have a small issue. On the forum section of my site "mysite.com/forum" in the Site name in the browser tab it echos my website name twice. I am using mingle forum plugin if that helps.

For example:

On homepage:

Websitename

on forum section:

Forum l WebsitenameWebsitename

Any ideas?

Thanks.

Answers (5)

2012-09-17

Michael Caputo answers:

What is the code between the <Title></title> tag in your header.php file?


liv comments:

<title><?php if ( is_category() ) {

echo 'Category Archive for &quot;'; single_cat_title(); echo '&quot; | '; bloginfo( 'name' );

} elseif ( is_tag() ) {

echo 'Tag Archive for &quot;'; single_tag_title(); echo '&quot; | '; bloginfo( 'name' );

} elseif ( is_archive() ) {

wp_title(''); echo ' Archive | '; bloginfo( 'name' );

} elseif ( is_search() ) {

echo 'Search for &quot;'.wp_specialchars($s).'&quot; | '; bloginfo( 'name' );

} elseif ( is_home() || is_front_page() ) {

bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );

} elseif ( is_404() ) {

echo 'Error 404 Not Found | '; bloginfo( 'name' );

} elseif ( is_single() ) {

wp_title('');

} else {

echo wp_title( ' | ', false, right ); bloginfo( 'name' );

} ?></title>

2012-09-17

Francisco Javier Carazo Gil answers:

I would have to see first dashboard and later if not, look at code of plugin to see if there are any hook that is creating the problem.

Send me details via PM.

2012-09-17

Arnav Joy answers:

go to admin panel general setting and see the "Site Title" option

share your header.php here


liv comments:

<title><?php if ( is_category() ) {

echo 'Category Archive for &quot;'; single_cat_title(); echo '&quot; | '; bloginfo( 'name' );

} elseif ( is_tag() ) {

echo 'Tag Archive for &quot;'; single_tag_title(); echo '&quot; | '; bloginfo( 'name' );

} elseif ( is_archive() ) {

wp_title(''); echo ' Archive | '; bloginfo( 'name' );

} elseif ( is_search() ) {

echo 'Search for &quot;'.wp_specialchars($s).'&quot; | '; bloginfo( 'name' );

} elseif ( is_home() || is_front_page() ) {

bloginfo( 'name' ); echo ' | '; bloginfo( 'description' );

} elseif ( is_404() ) {

echo 'Error 404 Not Found | '; bloginfo( 'name' );

} elseif ( is_single() ) {

wp_title('');

} else {

echo wp_title( ' | ', false, right ); bloginfo( 'name' );

} ?></title>


Arnav Joy comments:

try deactivating plugins one by one and see if the problem gets corrected.


liv comments:

It was caused by the Yoast Wordpress SEO, any idea how to fix it?


Arnav Joy comments:

i checked the mingle forum plugin , it is adding a filter to the title

try removing this line from mingle forum plugin


// line no 44 in mingle-forum/wpf-main.php

add_filter("wp_title", array(&$mingleforum, "set_pagetitle"));


2012-09-17

Pali Madra answers:

Have you installed any SEO plugin on the same website?


liv comments:

yes


liv comments:

Yoast WordPress SEO

2012-09-17

Asad Iqbal answers:

If you have no problem then please set up an temporary admin account and pm me that username, password and site address.