Guten Morgen zusammen,
ich habe mal eine Frage zu der Titelanzeige im Browser.
Ich habe einen WP Block wo die Anzeige im Browser zu meiner Zufriedenheit funktioniert.
Planer-24.de - Alles zum Thema Planen und Einrichten mit CAD Programmen
Egal ob auf den Seiten oder Im Forum
siehe z.B. hier:
Bueromoebel kaufen Forum » Planer-24.de
der Titel wird immer vernünftig im Browser angezeigt.
hier also: Büromöbel kaufen, Forum, Planer-24
Ich habe einen zweiten Block
Espresso Forum, Espressobar 24 » Espresso und Caffè
wo die Seiten ebenfalls mit dem richtigen Browsertitel versehen werden. Wenn ich hier jedoch ins Forum gehe, funktioniert das leider nicht.
Espresso Forum, Espressobar 24 » Forum
Titel ist:
Espresso Forum, Espressobar-24, Forum
Titel soll:
Espresso Forum, Espressobar-24, Forum, espressozubereitung
Ich habe leider nicht viel Ahnung von WP und von PHP. Ich denke mir aber, das es am Template liegt. Da beide Seiten von der Version als auch von den Plugins identisch sind.
Der Fehler müsste ja in der header.php des Templates liegen (hoffe ich zumindest)
Ich poste hier mal die beiden header.php
Wäre nett wenn mir jemand sagen könnte was ich da verändern muss.
1. header.php von Planer-24.de - Alles zum Thema Planen und Einrichten mit CAD Programmen (also die richtig funktioniert):
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head profile="http://gmpg.org/xfn/11">
<?php if (is_home()) { ?>
<title><?php bloginfo('name'); ?> - <?php bloginfo('description'); ?></title>
<?php }
elseif(is_category() or is_archive() or is_page() or is_single()) { ?>
<title><?php wp_title(''); ?> » <?php bloginfo('name'); ?></title>
<?php } else { ?>
<title><?php bloginfo('name'); ?><?php wp_title(); ?> - <?php bloginfo('description'); ?> | <?php bloginfo(); ?></title>
<?php } ?>
<meta http-equiv="Content-Type" content="text/html; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" type="text/css" media="print" href="<?php echo bloginfo('template_directory'); ?>/print.css" />
<link rel="stylesheet" type="text/css" media="screen, projection" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<link rel="shortcut icon" href="<?php echo bloginfo('template_directory'); ?>/grafik/favicon.ico" />
<?php wp_head(); ?>
</head>
<body>
<div class="unsichtbar"><p>Zum <a href="#text-inhalt">Inhalt</a> springen</p></div>
<!--WordPress-Theme by:<a href="http://www.vlad-design.de">Vladimir Simovic</a> aka <a href="http://www.perun.net">Perun</a>-->
<hr />
<div id="rand">
<h1><a href="<?php echo get_settings('siteurl'); ?>/" title="Home/Startseite"><?php bloginfo('name'); ?><span> - <?php bloginfo('description'); ?></span></a></h1>
<div id="inhalt">
<div id="navi">
Alles anzeigen
2. header.php von Espresso Forum, Espressobar 24 » Espresso und Caffè (mit dem Fehler drin)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head profile="http://gmpg.org/xfn/11">
<title><?php bloginfo('name'); ?><?php wp_title();?> </title>
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="text/xml" title="RSS .92" href="<?php bloginfo('rss_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
<?php wp_get_archives('type=monthly&format=link'); ?>
<?php //comments_popup_script(); // off by default ?>
<?php wp_head(); ?>
</head>
<body>
<div id="rap">
<ul id="gnav">
<li <?php if(is_home()){echo 'class="current_page_item"';}?>><a href="<?php bloginfo('siteurl'); ?>" title="Home">Home</a></li>
<?php wp_list_pages('title_li=&depth=1')?>
</ul>
<div id="header">
<h1><a href="<?php bloginfo('url'); ?>"><?php bloginfo('name'); ?></a></h1>
<h4><?php bloginfo("description")?></h4>
</div>
Alles anzeigen