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.
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 "'; single_cat_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_tag() ) {
echo 'Tag Archive for "'; single_tag_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_archive() ) {
wp_title(''); echo ' Archive | '; bloginfo( 'name' );
} elseif ( is_search() ) {
echo 'Search for "'.wp_specialchars($s).'" | '; 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>
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.
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 "'; single_cat_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_tag() ) {
echo 'Tag Archive for "'; single_tag_title(); echo '" | '; bloginfo( 'name' );
} elseif ( is_archive() ) {
wp_title(''); echo ' Archive | '; bloginfo( 'name' );
} elseif ( is_search() ) {
echo 'Search for "'.wp_specialchars($s).'" | '; 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"));
Pali Madra answers:
Have you installed any SEO plugin on the same website?
liv comments:
yes
liv comments:
Yoast WordPress SEO
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.