<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Texto.de - Mein WordPress Magazin &#187; WordPress Theme</title>
	<atom:link href="http://www.texto.de/tag/wordpress-theme/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.texto.de</link>
	<description>Tutorials zu  WordPress als Blog, WordPress als CMS, WP SEO tauglich machen - einfach ein WP Nachschlagewerk</description>
	<lastBuildDate>Tue, 31 Jan 2012 22:41:38 +0000</lastBuildDate>
	<language>de</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Praxis: Sidebar für eine bestimmte Kategorie</title>
		<link>http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/</link>
		<comments>http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 23:21:21 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WP-CMS]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=1264</guid>
		<description><![CDATA[Eine Sidebar mit ganz eigenen Widgets  für eine ganz bestimmte Kategorie. Wie geht man dabei in WordPress   vor, was sollte man beachten. ]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:260px;">
<dt>&nbsp;</dt>
<dd><img  src="http://www.texto.de/wp-images/wordpress-cms-komplexe-projekte.jpg" alt="WP  Praxis eine Sidebar für eine Kategorie" width="250" height="250" /></dd>
</dl>
<p><span class="caplize">W</span>ie geht man vor, um für eine bestimmte Kategorie eine anders gestaltete/aufgebaute (auch mit Widgets bestückte) Sidebar aufzurufen? &#8211; Dies wurde ich per E-mail gefragt.  Ich zeige hier in diesem Artikel einen Weg auf. Doch wie immer gilt, es gibt ganz viele Wege nach Rom <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . Kommt drauf an was man schlussendlich wirklich alles braucht. </p>
<p>Wenn solche Arbeitsschritte erklärt werden liest sich dies meist langsamer als es dann gemacht wird. Und ich versuche immer sehr genau zu erklären, so dass Du dies wirklich 1:1 nachmachen kannst. </p>
<h3>Was man dazu braucht:</h3>
<ul>
<li>Einen Texteditor (WordPad ist keiner)
</li>
<li>die category.php oder archive.php des verwendeten Themes.
</li>
<li>den &#8220;Category Slug&#8221; der gewählten Kategorie.
</li>
<li>die sidebar.php.
</li>
<li>die functions.php um dort neue Widgets einzutragen und für ein paar neue Funktionen.
</li>
</ul>
<p><span id="more-1264"></span></p>
<h3>das neue Template category-slug.php erstellen</h3>
<p>Um die Übersicht in dem ThemeOrdner zu bewahren ist es günstig für solche Aktionen wirklich ein eigenes <strong>category-slug.php </strong>Template zu erstellen.</p>
<p>Einfach die category.php, wenn die nicht da ist im ThemeOrdner, dann die archive.php öffnen und als category-slug.php abspeichern.</p>
<p>Den &#8220;Slug&#8221; einer Kategorie findest Du entweder in der URL, oder <strong>Dashboard ==> Artikeln==>Kategorie==> Titelform</strong>.</p>
<p>WordPress erkennt solche Templates von sich aus, dies habe ich mal <a href="http://www.texto.de/update-cheat-cheet-wp-template-hierarchie-909/" title="Template Hierarchy">hier</a> beschrieben. </p>
<h3>das neue Template sidebar-categoryslug.php</h3>
<p>Ebenfalls der Übersicht wegen ist es günstig, die neue Sidebar unter dem &#8220;Slug&#8221; /Titelform dieser Kategorie abzuspeichern.</p>
<p>Also sidebar.php öffnen und als sidebar-categoryslug.php abspeichern.<br />
WordPress erkennt dieses Template (noch) nicht von selbst, aber es erleichtert ungemein den Durchblick <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>category-slug.php und sidebar-categoryslug.php bekanntmachen</h3>
<p>Naja mir fiel da jetzt wirklich keine andere Überschrift ein, aber die category-slug.php weiß noch nicht, dass sie die neue Sidebar sidebar-categoryslug.php  herzeigen sollte, also muss man es ihr sagen. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Ganz am Ende der category-slug.php steht sicher:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Steht dies nicht dort, dann ist dieses Theme sicher ein eigenes Framework und ich tät dann davon abraten dies zu tun, außer man kennt sich in PHP gut aus => oder man fragt die ThemeErsteller. </p>
<p>Aber findest Du dort get_sidebar dann kann man WP sagen, dass es da eine spezielle Sidebar gibt:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'categorslug'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Nun sucht WP nach einem Template das sidebar-categoryslug heißt und nimmt es. </p>
<p>Ab jetzt kann man in dieser Sidebar anzeigen was auch immer man mag, es wird nur für diese Kategorie genommen. </p>
<h3>functions.php neue Widgets erstellen</h3>
<p>Meist stehen in der functions.php bereits Widgets, dort findet man dann auch wie das HTML für dieses Theme dort angeben ist. Ich nehm hier Beispiele aus TwentyTen Eleven.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">register_sidebar<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'CategorySlugKATS'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twentyeleven'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sidebar-8'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'description'</span> <span style="color: #339933;">=&gt;</span> __<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'The sidebar for the special Category CategorySlug'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'twentyeleven'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;aside id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">&quot;&lt;/aside&gt;&quot;</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h3 class=&quot;widget-title&quot;&gt;'</span><span style="color: #339933;">,</span>
<span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h3&gt;'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Dies in die functions.php kopieren und dort sooft kopieren wie Du Widgets brauchst. name, id und description ändern, so dass es für Dich gut verständlich ist wofür dieses Widget da ist. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
Sollte in der functions.php bereits ein Widget mit der ID 8 sein, dann logischerweise bitte eine andere nehmen. IDs kann es immer nur eine geben <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Widget1 oder Widget3 ist ganz nett, aber sagt Null, Nade Nix aus und spätestens nach 3 Monaten fragt man sich was das da soll.</p>
<h3>Widgets erstellt und nun in der sidebar-categoryslug.php abrufen.</h3>
<p>In der sidebar-categoryslug.php stehen vielleicht schon Widgets. Keine Ahnung, wenn dann löschen und durch das ersetzen.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span> dynamic_sidebar<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'sidebar-8'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// end sidebar widget area  ID 8 ?&gt;</span></pre></div></div>

<p>sidebar-8 => die ID (!)</p>
<p>Hast du für diese Sidebar mehrere solche Widgets &#8220;Flächen&#8221; erstellt, dann eben sooft wiederholen wie nötig und die IDs anpassen. </p>
<p>Alle Templates   hochladen. Unter <strong>Dashboard=> Design=>Widgets </strong>diese befüllen und fertig biste.</p>
<h3>Haben nun auch alle Artikel dieser Kategorie diese Sidebar</h3>
<p>Nein.</p>
<p>Diese Sidebar wird aber nur in der Kategorie genommen. Sie erscheint noch nicht bei den Artikeln in dieser Kategorie.</p>
<p>Das aber wird ein nächster Artikel unter dem Stichwort: aus der Praxis&#8230;.., weil sonst wirds wirklich zulang. </p>
<div class="sign">Hast Du Fragen dazu einfach fragen bitte.   <img src="http://www.texto.de/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /></div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/praxis-sidebar-fuer-eine-bestimmte-kategorie-1264/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Taxonomie Guide für WP 3.0</title>
		<link>http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/</link>
		<comments>http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#comments</comments>
		<pubDate>Mon, 19 Jul 2010 15:14:01 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WP-CMS]]></category>
		<category><![CDATA[taxonomien]]></category>
		<category><![CDATA[WordPress Theme]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=946</guid>
		<description><![CDATA[Taxonomien und WordPress. Definition von Taxonomie, Verwendungsbeispiele für Taxonomien . Taxonomie Templates und Taxonomie Cloud.]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:270px;">
<dt> Taxonomie in WordPress</dt>
<dd><img src="http://www.texto.de/wp-images/0710/taxonomie-ordnungshilfe.jpg" alt=" Taxonomien in WP sind Ordnungshilfen" width="261" height="308" /></dd>
</dl>
<p><strong>Taxonomien</strong> kann es das neue WordPress 3.0 und zwar einfacher als WP 2.8 wo es diese das erste Mal gab. Eingeweihte nutzen dies schon seit geraumer Zeit, andere diskutieren gerne darüber und viele freuten sich. Doch selten fand ich noch Erklärungen was denn dies so sei und wozu es nützlich und gut ist. </p>
<p>Und weil der Taxonomie Guide doch lang ist  biet ich hier Sprunglinks zu den einzelnen Bereichen an: </p>
<ul class="inhalt">
<li><b>Inhalt</b></li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-definition">Definition</a>
</li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-schubladen">Taxonomien von WP</a>
</li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-zugehoerigkeit">wo ordnen sich Taxonomien in WP ein</a>
</li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-tipp">Tipps zur Praxis</a>
</li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-moeglichkeit">Einsatzmöglichkeiten von Taxonomien</a>
</li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-templates">Taxonomie Templates nutzen</a>
</li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-cloud">Taxonomie Clouds erstellen</a>
</li>
<li><a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/#taxonomie-ausblick">Ausblick auf weitere Taxonomie Guides</a>
</li>
</ul>
<p><br class="clear"/>Um <strong>Taxonomien</strong> nicht nur technisch, sondern auch halbwegs logisch zu verwenden dachte ich sei es auch nötig, sich mal anzuschauen was denn eine Taxonomie <span id="more-946"></span>ist:</p>
<blockquote><p><a id="taxonomie-definition" class="invisible"></a>Eine Taxonomie (altgr. táxis ,Ordnung’ und nómos  ,Gesetz’) oder Klassifikationsschema ist ein einheitliches Verfahren oder Modell, um Objekte eines gewissen Bereichs (ggf. unter Zuhilfenahme eines Klassifikationsinstruments) nach bestimmten Kriterien zu klassifizieren, das heißt sie in bestimmte Kategorien oder Klassen (auch Taxa  genannt) einzuordnen.[1] <cite><a href="http://de.wikipedia.org/wiki/Taxonomie" title="">Taxonomie</a></cite></p>
</blockquote>
<p>Also auf gut deutsch: eine Möglichkeit Inhalte in einer neuen Schublade zu sortieren, in der man Unterteilungen machen kann.  </p>
<h3><a id="taxonomie-schubladen" class="invisible"></a>Die Schubladen (Taxonomien) die WordPress bereits hat</h3>
<p>heißen &#8220;Kategorien&#8221; und &#8221; Tags&#8221;.  Kategorien kann man noch dazu hierarchisch ordnen, Tags  nicht. </p>
<p>Man kann einer Taxonomie jeden Namen geben den man mag. Sinnvoller weise jedoch einen, der genau beschreibt worum es bei dieser *Ordnung* geht, sonst kennst Du dich irgendwann nicht mehr aus <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>Am Beispielbild siehst Du die erstellten Taxonomien &#8220;video&#8221; und &#8220;Schauspieler&#8221;. </p>
<h3><a id="taxonomie-zugehoerigkeit" class="invisible"></a>Wo gehören Taxonomien dazu</h3>
<dl class="right" style="width:160px;">
<dt> Taxonomien zuweisen</dt>
<dd><img src="http://www.texto.de/wp-images/0710/taxonomie-wp-admincenter-rechts.jpg" alt=" Taxonomien zuweisen" width="150" height="160" /></dd>
</dl>
<dl class="left" style="width:160px;">
<dt> Taxonomien gehören zu den Artikeln&nbsp;</dt>
<dd><img src="http://www.texto.de/wp-images/0710/taxonomie-wp-admincenter.jpg" alt=" Taxonomien findet man unter den Artikel in WordPress" width="152" height="175" /></dd>
</dl>
<p>Normal findet man eine erstellte Taxonomie im Admincenter als Ordnungshilfe für Artikel. Ist eine Taxonomie richtig erstellt, erscheint sie unterhalb des Menüpunktes &#8220;Artikel&#8221; im Adminbereich von WP.</p>
<p>Mag man einem Artikel eine Taxonomie zuweisen, so findet man dies auf der rechten Seite unter:<br />
<strong>Admincenter==>Artikel erstellen==>rechte Seite</strong> . Und dort unter dem Namen, den man der Taxonomie gegeben hat. <br class="clear"/></p>
<h3><a id="taxonomie-tipp" class="invisible">Schubladen zum Sortieren sind gut</h3>
<p>doch hat man zuviele davon findet man auch nichts mehr. Drum sei sparsam mit dem neuen Spielzeug Taxonomie. </p>
<ul>
<li> Erstens kann man sich verzetteln,
</li>
<li>zweitens findet der Leser den Inhalt schneller, je flacher eine Menüführung ist und
</li>
<li>drittens wird sonst der Adminbereich unübersichtlich und die Ordnung der Schubladen geht verloren.  <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />
</li>
</ul>
<h3><a id="taxonomie-moeglichkeit" class="invisible"></a>Möglichkeiten mit Taxonomien</h3>
<p><span class="firstletter">D</span>u schreibst in Deinem Blog über dies und das und hast eine irre Tagcloud. Gern tätst Du diese ein wenig übersichtlicher schlichten.  Also eine Tag(Schlagwort)Cloud über  Bereich X eine über den Bereich Y und eine über die Tags, die man auch unter Z gut darstellen könnte.</p>
<p><span class="firstletter">D</span>u hast wenige Kategorien und möchtest keine Unterkategorien, aber so eine Übersicht welche Artikel wo noch dazu passen wäre fein.  zb Videosammlung/Handies/Filme/Gartenblogs. </p>
<p><span class="firstletter">D</span>u hast einen großen Newsbereich, da landen viele unterschiedliche Artikel drin und diese fürs Archiv aufzusplitten wäre wunderbar. Machst Du dies aber in unterschiedlichen Kategorien wäre die Programmierung für die *Featured* Artikel sehr kompliziert.  </p>
<p>usw&#8230;</p>
<p>Praxisbeispiele gerne erwünscht <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<h3><a id="taxonomie-templates" class="invisible"></a>Taxonomien sichtbar machen mit den templates</h3>
<dl class="right" style="width:360px;">
<dt> Taxonomie templates</dt>
<dd><img src="http://www.texto.de/wp-images/0710/taxonomie-template-00.jpg" alt=" Taxonomie templates" width="350" height="338" /></dd>
</dl>
<p>WordPress 3.0 erkennt automatisch templates, die taxonomie.php heißen. Man kann somit <strong>Taxonomie Archive</strong> unterschiedlich darstellen.  Dies wirkt sich aber nur für die Archivansicht aus &#8211; der einzelne Artikel, der einer oder mehreren Taxonomien zugeordnet ist wird vom taxonomie.php template nicht berührt!</p>
<p>Beispiel: </p>
<p>Du hast die Taxonomie &#8220;Schauspieler&#8221; erstellt und darin gibts die &#8220;Angelina&#8221; &#8211; Du hast jede Menge Artikel über Angelina geschrieben und magst, dass die Archivansicht der Taxonomie Schauspieler-Angelina ganz speziell aussieht. </p>
<p>Du erstellst somit das template  <strong>taxonomie-schauspieler-angelina.php</strong> und schon kannst Du da drin mit eigenen CSSKlassen besonders gestalten.<br class="clear"/> </p>
<dl class="left" style="width:360px;">
<dt> Taxonomie templates</dt>
<dd><img src="http://www.texto.de/wp-images/0710/taxonomie-template-01.jpg" alt=" Taxonomie templates" width="350" height="338" /></dd>
</dl>
<p>Hast Du unter &#8220;Schauspieler &#8221; auch den Brad  und gönnst du dem keine besondere Gestaltung dann nimmt WP das <strong>taxonomie-schauspieler.php </strong>template,  gibt es das nicht, dann das <strong>taxonomie.php</strong> template, hast du dies auch nicht, dann nimmt WP die<strong> archive.php</strong>.  <br class="clear" /></p>
<h3><a id="taxonomie-cloud" class="invisible"></a>Taxonomien als Cloud darstellen</h3>
<dl class="left" style="width:225px;">
<dt> Taxonomie Clouds</dt>
<dd><img src="http://www.texto.de/wp-images/0710/taxonomie-clouds.jpg" alt=" Taxonomie  Clouds" width="218" height="88" /></dd>
</dl>
<p>Du kennst vermutlich Tagclouds. Du kannst auch die erstellten Taxonomien als Cloud darstellen. </p>
<p>Hier der einfache Code, den Du in die sidebar.php oder wo auch immer Du diese Clouds darstellen magst einfügst. Nutzt Du  Widgets brauchst Du ein Plugin, um diesen Code in ein Textwidget einfügen zu können:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;li&gt;Taxonomie Cloud Schauspieler&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
wp_tag_cloud<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'taxonomy'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'schauspieler'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;li&gt;Taxonomie Cloud Video&lt;/li&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> 
wp_tag_cloud<span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'taxonomy'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'video'</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Das gezeigte HTML muss nicht zu dem HTML in der Sidebar Deines Themes passen. Einfach abschauen wie die anderen Angaben drin stehen.  </p>
<h3><a id="taxonomie-ausblick" class="invisible"></a>Taxonomie Guide 2ter Teil</h3>
<p>die nächsten Artikel zum Thema Taxonomien in WP 3.0 werden sich den unterschiedlichen WP Plugins zum Thema widmen und auch wie man Taxonomien in der functions.php sich selbst schreiben kann. </p>
<div class="sign"> Weitersagen erwünscht und Kommentare sind  das täglich Brot eines Bloggers <img src="/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /></div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/taxonomie-guide-fuer-wp-3-0-946/feed/</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>WordPress 2.8 WordPress Theme und Theme Verwaltung</title>
		<link>http://www.texto.de/wordpress-28-wordpress-theme-und-theme-verwaltung-846/</link>
		<comments>http://www.texto.de/wordpress-28-wordpress-theme-und-theme-verwaltung-846/#comments</comments>
		<pubDate>Sun, 17 May 2009 11:08:35 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WP-News]]></category>
		<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WP 2.8]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=846</guid>
		<description><![CDATA[WordPress 2.8 erleichtert die Theme Verwaltung, die Theme Suche. Für WP Theme Entwickler und Designer sind sicher die neuen CSS classes und WAI Elemente im Default Theme interessant.  ]]></description>
			<content:encoded><![CDATA[<dl id="attachment_847" class="wp-caption alignleft" style="width: 280px"><dt><img src="http://www.texto.de/wp-images/2009/05/theme-28-270x300.gif" alt="WP Theme Verwaltung in WP 2.8" title="WP Theme Verwaltung in WP 2.8" width="270" height="300" class="size-medium wp-image-847" /></dt><dd class="wp-caption-text">WP Theme Verwaltung in WP 2.8</dd></dl>
<p><span class="caplize">W</span>ordPress 2.8 erleichtert die Theme Verwaltung ein wenig. Man kann sich jetzt aussuchen ob man das Theme gleich aktiviert, sich die Vorschau ansieht oder das Theme direkt aus dem Admincenter löschen. </p>
<h3>Neue WP Themes direkt laden</h3>
<p>Außerdem kann man unter  <strong>Admincenter==>Designs==>neues Design hinzufügen</strong>  sich all die Themes von <a href="http://wordpress.org/extend/themes/" title="WP Themes">wordpress.org</a> ansehen und laden. </p>
<p><strong>WordPress 2.8</strong> bringt im default Theme einiges Neues, das ich hier kurz vorstellen mag:</p>
<h3>body_class die neue CSS Klassen für WP Themes ab WP 2.8</h3>
<p><span id="more-846"></span></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&nbsp;
&lt;body <span style="color: #000000; font-weight: bold;">&lt;?php</span> body_class<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;</pre></div></div>

<p>Erstmals gibt es in WordPress für <strong>body eine class</strong>, die sich je nach Ansicht ändert. Wer also entweder die <strong>Kaskade</strong> oder die <strong>Vererbung </strong>in <abbr title="Cascading Style Sheet"><span class="abbr" title="Cascading Style Sheet">CSS</span></abbr> nutzen mag und kann ist dies sicherlich eine Erleichterung. Für alle, die nicht so gut CSS können kann dies ein Ansporn sein sich mit den Themen *Vererbung und/oder Kaskade in CSS * näher zu beschäftigen <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>Besonders auffällig ist, dass man die class <strong>logged-in</strong> hat, man kann also registrierten Nutzern etwas anders zeigen als nicht registrierten Nutzern. </p>
<p><strong>Grenzen dieser body class</strong></p>
<p>Wer jedoch für eine<strong> bestimmte Kategorie</strong> und deren Unterkategorien und deren Artikel ein eigenes Aussehen haben mag kann diese body class nicht dafür nutzen. Entweder schreibt man sich eine Funktion, die die Ausgabe der body class für bestimmte Kategorien und deren Unterkategorien etc ändert oder man macht es wie bisher mit eigenen Templates dafür. Was ich persönlich als den einfacheren Weg halte -zumindest derzeit <img src='http://www.texto.de/wp-includes/images/smilies/zwinker.gif' alt=':zwinker:' class='wp-smiley' />  .</p>
<p><strong>body_class bietet insgesamt:</strong></p>
<ul>
<li> rtl
</li>
<li> home
</li>
<li> blog
</li>
<li> archive
</li>
<li> date
</li>
<li> search
</li>
<li> paged
</li>
<li> attachment
</li>
<li> error404
</li>
<li> single postid-(id)
</li>
<li> attachmentid-(id)
</li>
<li> attachment-(mime-type)
</li>
<li> author
</li>
<li> author-(user_nicename)
</li>
<li> category
</li>
<li> category-(slug)
</li>
<li> tag
</li>
<li> tag-(slug)
</li>
<li> page-parent
</li>
<li> page-child parent-pageid-(id)
</li>
<li> page-template page-template-(template file name)
</li>
<li> search-results
</li>
<li> search-no-results
</li>
<li> logged-in
</li>
<li> paged-(page number)
</li>
<li> single-paged-(page number)
</li>
<li> page-paged-(page number)
</li>
<li> category-paged-(page number)
</li>
<li> tag-paged-(page number)
</li>
<li> date-paged-(page number)
</li>
<li> author-paged-(page number)<br />
vsearch-paged-(page number)</li>
</ul>
<p><strong>Hier nun 3 Beispiele wie sich diese body class im Quelltext zeigt:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;home blog logged-in&quot;</span>&gt;</span>
Startseite 
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;single postid-550 logged-in&quot;</span>&gt;</span>
Einzelansicht eines Artikels
&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">body</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;page page-id-538 parent-pageid-0 page-template- logged-in&quot;</span>&gt;</span>
Seite ohne Unterseite mit normaler page.php</pre></div></div>

<h3>WordPress 2.8 wird barrierefreier und der W3C Validator kommt endgültig an seine Grenzen</h3>
<dl class="left" style="width:360px;">
<dt> &nbsp;</dt>
<dd><img src="http://www.texto.de/wp-images/0509/attribut-role.gif" alt=" HTML Validator bemängelt role=" width="350" height="89" /></dd>
</dl>
<p>Ganz verkürzt erklärt:</p>
<p>Bereits in WP 2.7 gibt es das für Menschen mit Seheinschränkungen so nötige  <strong>aria-required</strong> und wurde damit ein gutes Stück *mehr*  <a href="http://www.webdesign-in.de/mts/wordpress-27-wird-barrierefrei-und-erzeugt-daher-invalides-xhtml/" title="WP 2.7 wird barrierefrei und daher invalid">barrierefrei</a>. Der HTML Validator des W3C ist in die Jahre gekommen, das W3C selbst fördert *aria* ist aber nicht (noch nicht) bereit dies dem Validator beizubringen. <a href="http://www.w3.org/TR/wai-aria-roadmap/" title="WAI Roadmap">WAI Roadmap</a>. </p>
<p>Nun in WP 2.8 findet man bereits die ebenfalls wichtigen *role* Angaben, die der HTML Validator natürlich auch noch bemängelt. <img src='http://www.texto.de/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <a href="http://www.w3.org/TR/wai-aria/#roles_categorization" title="WAI Role">WAI Role</a>.</p>
<p>Im <strong>default Theme von WP 2.8</strong> ist folgendes zu finden:</p>
<p>index.php, single.php, archive.php, category.php, page.php,search.php, tag.php image.php usw&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;content&quot;</span> <span style="color: #000066;">class</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;narrowcolumn&quot;</span> role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;main&quot;</span>&gt;</span></pre></div></div>

<p>footer.php</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;footer&quot;</span> role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;contentinfo&quot;</span>&gt;</span></pre></div></div>

<p>sidebar.php</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">div</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;sidebar&quot;</span> role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;complementary&quot;</span>&gt;</span></pre></div></div>

<p>und</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;">&nbsp;
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span> role<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;navigation&quot;</span>&gt;</span>
  wp_list_pages......
&nbsp;
  <span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span>&gt;&lt;<span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>Archives<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">h2</span>&gt;</span>
	<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
	.wp_get_archives.....
	<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span>
  <span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">li</span>&gt;</span>
       .wp_list_categories..........
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">ul</span>&gt;</span></pre></div></div>

<p><strong>comments.php</strong></p>
<p>Hier finde ich zwar im Template die Angaben für <strong>aria-required</strong>, aber sie werden nicht im Quelltext ausgegeben, &#8211; entweder habe ich technisch was übersehen  oder es ist ein Bug &#8211; kann ich derzeit einfach nicht sagen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$req</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;aria-required='true'&quot;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Weitere Neuigkeiten von WP 2.8 das jetzt in der Beta1 da ist bringe ich die Tage. Ende Mai sollt es ja zum Download bereitstehen. </p>
<h3>WordPress 2.8 Beta 1</h3>
<p>Wer die Beta Version testen mag kann sich diese hier <a href="http://wordpress.org/wordpress-2.8-beta1.zip" title="Beta 1 von WP 2.8">herunterladen</a>. Achtung: Dies geschieht auf <strong>eigenes Risiko </strong>und ich empfehle dies nur Menschen, die wirklich wissen was sie tun <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  . </p>
<div class="sign"> <img src="/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /></div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/wordpress-28-wordpress-theme-und-theme-verwaltung-846/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/wordpress-28-wordpress-theme-und-theme-verwaltung-846/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ein WordPress Theme entsteht &#8211; Teil 2</title>
		<link>http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/</link>
		<comments>http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/#comments</comments>
		<pubDate>Wed, 29 Oct 2008 18:18:39 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=652</guid>
		<description><![CDATA[Ein WordPress Theme von der Idee zur Umsetzung. Geringe CSS und XHTML Kenntnisse sind nötig. Der Rest sind Anpassungen diverser Tutorials, die alle hier auf Texto.de zu finden sind. Heute kommt header.php und footer.php dran, die widgetfähig gemacht wird.]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:455px;">
<dt> WordPress Theme Idee Demo</dt>
<dd><a href="http://www.texto.de/mts-theme-erstellung/" title="Muster Design"><img src="http://www.texto.de/wp-images/1008/theme-gestaltung-01.gif" alt=" WordPress Theme Erstellung" width="450" height="261" /></a></dd>
</dl>
<p> <span class="caplize">I</span>n meinem 1. Artikel zu dieser WP Theme Serie wurde die index.php so gestaltet, dass sie die passenden Kategorien entweder Links oder Rechts anzeigt.  Für das XHTML ist jetzt noch die header.php und die footer.php nötig.  Im Footer sollen außerdem Widgets angezeigt werden können. Also siehst Du hier wie man etwas widgetfähig macht.<br class="clear" /></p>
<p><span id="more-652"></span></p>
<h3>header.php anpassen</h3>
<p>Als Grundgerüst für eine passablen header.php kann man den des default Themes nehmen. </p>
<p>Folgendes muß aber aus dieser header.php vorerst gelöscht werden.</p>
<p>Dies findest Du VOR /head:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;style type=&quot;text/css&quot; media=&quot;screen&quot;&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// Checks to see whether it needs a sidebar or not</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$withcomments</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
	#page { background: url(&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'stylesheet_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/kubrickbg-<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'text_direction'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.jpg&quot;) repeat-y top; border: none; }
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #666666; font-style: italic;">// No sidebar ?&gt;</span>
	<span style="color: #666666; font-style: italic;">#page { background: url(&quot;&lt;?php bloginfo('stylesheet_directory'); </span><span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #339933;">/</span>images<span style="color: #339933;">/</span>kubrickbgwide<span style="color: #339933;">.</span>jpg<span style="color: #0000ff;">&quot;) repeat-y top; border: none; }
&lt;?php } ?&gt;</span>
&nbsp;
&lt;/style&gt;</pre></div></div>

<p>Nach body mußt Du dies alles löschen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;div id=&quot;page&quot;&gt;
&lt;div id=&quot;header&quot;&gt;
	&lt;div id=&quot;headerimg&quot;&gt;
		&lt;h1&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_option<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h1&gt;
		&lt;div class=&quot;description&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
	&lt;/div&gt;&lt;/div&gt;&lt;hr /&gt;</pre></div></div>

<p>Nach body fügst Du jetzt untenstehendes ein. </p>
<p>Wie die CSS class gestaltet wurden, findest Du im Download der Musterdatei am Ende des Artikels hier.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #339933;">&lt;/</span>head<span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;&lt;!--</span>steht schon da nicht nochmals einfuegen<span style="color: #339933;">-</span>nur damit du weisst wo
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;navaussen&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;navinnen clearfix&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>Fresh v<span style="color: #339933;">&lt;</span>span <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;fresh&quot;</span><span style="color: #339933;">&gt;</span>s<span style="color: #339933;">.</span> Trash<span style="color: #339933;">&lt;/</span>span<span style="color: #339933;">&gt;&lt;/</span>h1<span style="color: #339933;">&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;cat clearfix&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Kategorien siehe Tutorial<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
  <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>Tags siehe Tutorial<span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>cat end<span style="color: #339933;">--&gt;</span>
 <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>navaussen end<span style="color: #339933;">--&gt;</span>
&nbsp;
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;postaussen&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;postinnen clearfix&quot;</span><span style="color: #339933;">&gt;</span></pre></div></div>

<h3>Kategorien und Tags anzeigen</h3>
<p>Der Blogtitel steht unter navaussen, navinnen und innerhalb dessen werden die Kategorien und die Tags angezeigt. </p>
<p>Das Blog ist jung, doch irgendwann werden es viele Tags und noch mehr Kategorien sein, daher empfiehlt es sich entweder nur einige Kategorien *händisch* zu verlinken oder dieses Tutorial zu lesen und anwenden </p>
<p><a href="http://www.texto.de/wordpress-theme-wie-teilt-man-die-anzeige-der-kategorien-auf-wp-list-categories-539/" title="Anzeige der Kategorien aufteilen"><strong>wp_list_categories</strong></a>.</p>
<p>Außerdem kann man  die angezeigten Tags  limitieren, das kann zb das <strong>WP Plugin Simple Tags</strong> ganz gut.</p>
<p>Brauchst Du Hilfe, weil Du eine horizontale Liste nicht gut anzeigen kannst, dann hilft dies sicher weiter:<strong>Horizontale Liste gestalten</strong>.</p>
<h3>Footer.php das XHTML</h3>
<p>Die index.php endet so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;/div&gt;&lt;!--sidebar end--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>d.h. all das was in der header.php  anfing muß in der footer.php geschlossen werden.</p>
<p>postinnen und postaussen sind als divs noch nicht geschlossen.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>postinnen <span style="color: #990000;">end</span> postaussen end<span style="color: #339933;">--&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footeraussen&quot;</span><span style="color: #339933;">&gt;</span>
 <span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footerinnen clearfix&quot;</span><span style="color: #339933;">&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>footerinnen <span style="color: #990000;">end</span> footeraussen end<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;&lt;/</span>html<span style="color: #339933;">&gt;</span></pre></div></div>

<p>&raquo; &raquo; Spätestens jetzt empfiehlt es sich, das XHTML zu testen: <a href="http://validator.w3.org/" title="Validator">Validator</a>. Vor Fehler ist niemand gefeit und besser ist besser <img src='http://www.texto.de/wp-includes/images/smilies/zwinker.gif' alt=':zwinker:' class='wp-smiley' />  </p>
<p>Im 1. Artikel war mir noch nicht klar, was da alles in den Footer reinsollte. Via PN im forum.wordpress-deutschland.org erfuhr ich, dass Widgets ganz gut wären. Obwohl noch unbekannt.</p>
<h3>Spalten im Footer</h3>
<p>Man kann da 3 Spalten machen oder nur 2 oder auch 4 &#8211;  Wobei dies dann schon sehr eng wird <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Die Methode ist immer dieselbe, bei den Breitenangaben muß man sich spielen. Da geringe CSS und XHTML Kenntnisse da sind und ich flexible Designs bevorzuge, stelle ich hier eine Methode mit 3 Spalten vor:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box03&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box02&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>div <span style="color: #000000; font-weight: bold;">class</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;box01&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Ich lasse die box03 und box02 nach Rechts fließen (float right), daher müssen die beiden vor box01 stehen, diese fließt nach Links (float left). Zur Demonstration bekamen die 3 einen sehr bunten Rahmen <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  .</p>
<h3>CSS der 3 Spalten in der footer.php</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">.</span>box03<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color:#800080;">32.1</span><span style="color: #339933;">%;</span>float<span style="color: #339933;">:</span>right<span style="color: #339933;">;</span>border<span style="color: #339933;">:</span>1px solid green<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">.</span>box02<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color:#800080;">32.1</span><span style="color: #339933;">%;</span>float<span style="color: #339933;">:</span>right<span style="color: #339933;">;</span>margin<span style="color: #339933;">-</span>right<span style="color: #339933;">:</span><span style="color:#800080;">1.4</span><span style="color: #339933;">%;</span> border<span style="color: #339933;">:</span>1px solid blue<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
<span style="color: #339933;">.</span>box01<span style="color: #009900;">&#123;</span>width<span style="color: #339933;">:</span><span style="color:#800080;">32.1</span><span style="color: #339933;">%;</span>float<span style="color: #339933;">:</span>left<span style="color: #339933;">;</span>border<span style="color: #339933;">:</span>1px solid red<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Achtung:</strong>niemals die Spalten ganz eng aneinander kleben, das bricht relativ rasch das Design und padding &#8211; also der Innenabstand ist verboten. Das ist einfach die Kurzfassung des Box-Models. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>Jede Spalte für sich widgetfähig machen</h3>
<p>Dazu brauchst Du zuerst die functions.php. Als Beispiel wieder die des default Themes.</p>
<p>In dieser kannst Du alles löschen. Danach fügst Du ganz oben</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> ein und ganz unten  <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>Achtung: </strong>keine Leerzeichen vor der 1. Spitzenklammer und nach der letzten! Das ergibt Fehler.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Das da macht ein WP Theme prinzipiell widgetfähig. Damit kann man angeben wie man das html rund um die Widgetausgabe haben mag. </p>
<p>Wir brauchen da jetzt 3 davon, das sieht dann so aus:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Footerbox03'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Footerbox02'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
    register_sidebar<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
<span style="color: #0000ff;">'name'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Footerbox01'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;li id=&quot;%1$s&quot; class=&quot;widget %2$s&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_widget'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/li&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'before_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;h2 class=&quot;widgettitle&quot;&gt;'</span><span style="color: #339933;">,</span>
        <span style="color: #0000ff;">'after_title'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/h2&gt;'</span><span style="color: #339933;">,</span>
    <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Diese Datei speichern und in den Theme Ordner geben.</p>
<p>Nun die <strong>footer.php </strong>öffnen:</p>
<p>Dort sollte das ganze dann so aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;/div&gt;&lt;/div&gt;&lt;!--postinnen end postaussen end--&gt;
 &lt;div class=&quot;footeraussen&quot;&gt;
 &lt;div class=&quot;footerinnen clearfix&quot;&gt;
&nbsp;
&lt;div class=&quot;box03&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Footerbox03'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
&lt;div class=&quot;box02&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Footerbox02'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
&lt;div class=&quot;box01&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Footerbox01'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;
&nbsp;
&lt;/div&gt;&lt;/div&gt;&lt;!--footerinnen end footeraussen end--&gt;
&lt;/body&gt;&lt;/html&gt;</pre></div></div>

<p>Wieso dem so ist habe ich in dem Artikel zur Theme Vorlage erklärt: WP Theme blank.</p>
<h3>Geht das auch ohne Widgets?</h3>
<p>Im Admincenter==>Theme/Design==>Widgets kannst Du jetzt pro Spalte andere Widgets einfügen udn nutzen.  Du kannst auch eine Spalte ohne Widgets nutzen dann mußt Du hier dazwischen das einfügen was Du anzeigen magst:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span><span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'dynamic_sidebar'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> <span style="color: #339933;">!</span>dynamic_sidebar<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Footerbox01'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;p&gt;Das was du haben magst ohne Widget&lt;/p&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Download der Musterdateien</h3>
<p>==> Diese Musterdateien sind akut nicht aktuell, wie ich es zeitlich schaffe kommen sie wieder!</p>
<h3>Rückmeldung</h3>
<p>Ich freu mich über jede Art der Rückmeldung. War es hilfreich, über einen Social Bookmark oder einen Link, viel Freud .</p>
<div class="sign"><img src="/wp-images/smilies/icon_confused.gif" alt="Kaffeetrinkender Smilie" width="27" height="21" /> </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Ein WordPress Theme entsteht</title>
		<link>http://www.texto.de/ein-wordpress-theme-entsteht-650/</link>
		<comments>http://www.texto.de/ein-wordpress-theme-entsteht-650/#comments</comments>
		<pubDate>Sat, 25 Oct 2008 16:14:43 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=650</guid>
		<description><![CDATA[Wie baut man sich sein individuelles WordPress Theme. Du hast die Idee geringe XHTML und CSS Kenntnisse und dann. Hier  ein Beispiel: Ein WordPress Theme von der Idee zur Umsetzung. ]]></description>
			<content:encoded><![CDATA[<dl class="center" style="width:410px;">
<dt> WordPress Theme Idee&nbsp;</dt>
<dd><img src="http://www.texto.de/wp-images/1008/theme-gestaltung.gif" alt=" WordPress Theme Erstellung" width="402" height="413" /></dd>
</dl>
<p><span class="caplize">D</span>ieses Layout möchte <a href="http://forum.wordpress-deutschland.org/design/40802-2-geteiltes-theme.html#post199601" title="zweigeteiltes Theme">yippiehey</a> so gern haben. Geringe <abbr title="Hyper Text Markup Language"><span class="abbr" title="Hyper Text Markup Language">HTML</span></abbr> und <abbr title="Cascading Style Sheet"><span class="abbr" title="Cascading Style Sheet">CSS</span></abbr> Kenntnisse sind da. Aber es hapert an der Umsetzung dennoch.  So dachte ich , dass dies ein guter Aufhänger wäre für eine Anleitung wie man sich an die Umsetzung eines WordPress Themes machen kann.</p>
<h3>Wie findet man ähnliche Themes zur Hilfe</h3>
<p>Dieses Layout hat einen eindeutig erkennbaren Header, dann zwei getrennte Bereiche, es ist zentriert, also in der Mitte des Bildschirmes zu finden. </p>
<p>Es ist also vordergründig nichts anders als ein zweispaltiges Layout mit Header. Klar haben 99% aller zweispalten Layouts eine Spalte breiter als die andere. D.h. man muß von einer Vorlage <span id="more-650"></span>die Breitenangaben ändern. </p>
<h3>zweispaltiges Layout mit Header</h3>
<p>In einem Artikel auf meiner WebDesign-in.de stelle ich so ein Layout zur Verfügung. Außerdem ist die style.css auch gleich dabei.  Diese Mustervorlage nehme ich für dieses Beispiel um das<a href="http://www.webdesign-in.de/mts/simplyfy-your-css-oder-ueberblick-in-der-stylecss/" title="CSS und XHTML"> XHTML Grundgerüst</a> zu bauen. </p>
<h3>Meine Arbeitsschritte:</h3>
<ol>
<li>Muster heruntergeladen und entpackt.
</li>
<li>Mit einem Texteditor geöffnet.
</li>
<li>Hintergundbild erstellt: 2000px X 2px weiß-schwarz.
</li>
<li>.content und .sidebar gleich breit gemacht.
</li>
<li>.content nach rechts fließen lassen, damit es schöne Abschlüsse gibt.
</li>
<li>.post01 und .post02 als neue class eingeführt, in denen dann die einzelnen Artikel drin sind.
</li>
<li>.cat in der .navigationaussen erstellt, dies beinhaltet dann die Kategorien und die Tags. Dies ist dann in der header.php
</li>
<li>span.fresh erstellt damit man die Headerüberschrift zweifarbig haben kann.</li>
</ol>
<dl class="left" style="width:455px;">
<dt> WordPress Theme Idee Demo</dt>
<dd><a href="http://www.texto.de/mts-theme-erstellung/" title="Muster Design"><img src="http://www.texto.de/wp-images/1008/theme-gestaltung-01.gif" alt=" WordPress Theme Erstellung" width="450" height="261" /></a></dd>
</dl>
<p> Hier kannst Du Dir das Muster herunterladen. Es beinhaltet die style.css, die index.html und das Hintergrundbild und die  index.php,header.php, footer.php und die functions.php (Bitte auch den 2.Artikel lesen <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ) .<a href="http://www.texto.de/count/downloadcounter.php?stwc_cz=1&#038;stwc_id=15" title="Muster Dateien download">Theme-Erstellung-Muster</a>. <br class="clear" /></p>
<h3>Wie teilt man nun die Kategorien auf</h3>
<p>Ich empfehle dazu den Loop den ich in diesem Artikel vorschlug Weiterblättern und Loop.</p>
<p>Du brauchst dazu die <strong>IDs der Kategorien</strong>, die Du auf der jeweiligen Seite anzeigen magst.</p>
<p>Beispiel: die IDs 4,6,9 auf der rechten Seite und die IDs 2,9,23 auf der linken Seite.</p>
<p>Magst Du mehr als 3 Artikel insgesamt anzeigen, dann ändere bei <strong>showpost</strong> die Zahl. Sollte auf jeder Seite gleich sein. </p>
<h3>Die index.php sollte dann so aussehen:</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;content&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$temp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=4,6,9&amp;showposts=3'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;paged='</span><span style="color: #339933;">.</span><span style="color: #000088;">$paged</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div class=&quot;post01&quot;&gt;
&lt;h3&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;raquo;&amp;raquo; &quot;</span> <span style="color: #339933;">.</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;p class=&quot;navigate&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next_or_number'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;p class=&quot;postmeta&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Verfasst von:<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> Eingeordnet in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
&lt;/div&gt;&lt;!--post01 end--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;navigation&quot;&gt;
 &lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo; &amp;auml;ltere Artikel'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
  &lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'neuere Artikel &amp;raquo;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
 &lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;&lt;!--content end--&gt;
&nbsp;
&lt;div class=&quot;sidebar&quot;&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #000088;">$temp</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cat=2,9,23&amp;showposts=3'</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&amp;paged='</span><span style="color: #339933;">.</span><span style="color: #000088;">$paged</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$wp_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;div class=&quot;post02&quot;&gt;
&lt;h3&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;&amp;raquo;&amp;raquo; &quot;</span> <span style="color: #339933;">.</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_link_pages<span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'before'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;p class=&quot;navigate&quot;&gt;'</span> <span style="color: #339933;">.</span> __<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Pages'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">' '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'after'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'&lt;/p&gt;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'next_or_number'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'number'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;p class=&quot;postmeta&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Verfasst von:<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span> Eingeordnet in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/p&gt;
&lt;/div&gt;&lt;!--post02 end--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div class=&quot;navigation&quot;&gt;
 &lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo; &amp;auml;ltere Artikel'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
  &lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'neuere Artikel &amp;raquo;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
 &lt;/div&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">;</span> <span style="color: #000088;">$wp_query</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$temp</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
&lt;/div&gt;&lt;!--sidebar end--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3>Header und Footer fehlen noch</h3>
<p>Da auch Rom ein paar Tage brauchte, kommt dies im nächsten Artikel. Vorher brauch ich auch noch ein wenig Rückmeldung von yippiehey, ob er damit klar kommt.</p>
<div class="eyecatch">
<p><strong>Edit: </strong>Hier geht es zum 2.Teil : <a href="http://www.texto.de/ein-wordpress-theme-entsteht-teil-2-652/" title="2.Teil ein WP Theme entsteht"><strong>Ein WordPress Theme entsteht</strong> </a>2.Teil.</p>
</div>
<p>Und außerdem jede Menge Rückmeldung von Dir. Ob alles verständlich, nachmachbar ist.</p>
<div class="sign">War dies hilfreich freu ich mich über jede Art des Dankes <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/ein-wordpress-theme-entsteht-650/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/ein-wordpress-theme-entsteht-650/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How To &#8211; Design Your Own WordPress Theme</title>
		<link>http://www.texto.de/how-to-design-your-own-wordpress-theme-265/</link>
		<comments>http://www.texto.de/how-to-design-your-own-wordpress-theme-265/#comments</comments>
		<pubDate>Thu, 12 Oct 2006 22:40:05 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/how-to-design-your-own-wordpress-theme/</guid>
		<description><![CDATA[You know a bit about html and css, but to use this in combination with php is a bit of a blur with you. Here is a step by step tutorial. How to- design your own wordpress theme.]]></description>
			<content:encoded><![CDATA[<h3>edit am 15.02.07 Diesen Artikel in Deutsch: Schritt für Schritt zum eigenen WordPress Theme. </h3>
<p><span class="firstletter">J</span>oram schrieb mir eine Email. Er kann ein wenig CSS und ein bisschen HTML. Aber wenn er dann PHP irgendwo sieht traut er sich kaum dieses Wissen zu nutzen. Er würde aber gerne sein eigenes WordPress Theme gestalten und holte sich daher mein  WordPress Theme blank.</p>
<p>Joram kommt aus Holland und kann englisch und daher ist dieses Tutorial soweit als nötig in Englisch aber mit ganz vielen Code Beispielen. </p>
<p>The story behind this tutorial: I&#8217;ve got an email from Joram:</p>
<blockquote><p>I know a bit about html and css, but to use this in combination with php is a bit of a blur with me. Could you please tell me how to implement the css I&#8217;m about to write? Because writing the css is one thing, but putting the class/id tags in the html is another. I&#8217;m not sure how to write the css if I don&#8217;t know where to enter their div-tags <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</blockquote>
<h3>How To &#8211; Design Your Own WordPress Theme &#8211;  Let&#8217;s start</h3>
<p><strong>Preambel:</strong> This post is full with code examples and so it is very long.<br />
And I know: &#8220;All roads leed to Rome&#8221;. Here is only one of them. </p>
<p>And you know:==>I would like to read your comment or the sky will fall on your <span id="more-265"></span>head&#8230;. .</p>
<ul>
<li>You need WordPress. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </li>
<li>My <a href="http://www.texto.de/texto/wordpress-theme-vorlage/2/" title="WordPresse Theme blank">blank WordPress Theme</a>.</li>
<li>Time and coffee (or tea if you are ill <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).</li>
<li>A bit knowledge about css and html.</li>
<li>An editor. Wordpad is good enough.</li>
<li>Information about &#8216;editing files&#8217; and &#8216;change chmod permission&#8217;, you&#8217;ll find the links in this <a href="#comment-2862" title="Links to the codex">comment</a>.<a href="#test">Thanks to Lorelle</a></li>
</ul>
<p>I need  the structure of a design: <a href="http://blog.html.it/layoutgala/" title="Layout Gala">Layout Gala</a>==><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.</p>
<p>Two percentage columns and one larger, with header and footer. </p>
<p><strong>Remember &#8220;Murpheys Law&#8221; and save your theme files.</strong></p>
<h3><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.==>Sourcecode ==> CSS</h3>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>style type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;text/css&quot;</span><span style="color: #339933;">&gt;</span>
html<span style="color: #339933;">,</span>body<span style="color: #009900;">&#123;</span>margin<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>padding<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#125;</span>
body<span style="color: #009900;">&#123;</span>font<span style="color: #339933;">:</span> <span style="color: #cc66cc;">76</span><span style="color: #339933;">%</span> arial<span style="color: #339933;">,</span>sans<span style="color: #339933;">-</span>serif<span style="color: #009900;">&#125;</span>
p<span style="color: #009900;">&#123;</span>margin<span style="color: #339933;">:</span><span style="color: #cc66cc;">0</span> 10px 10px<span style="color: #009900;">&#125;</span>
a<span style="color: #009900;">&#123;</span>display<span style="color: #339933;">:</span>block<span style="color: #339933;">;</span>color<span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">#006;padding:10px}
</span>div<span style="color: #666666; font-style: italic;">#header{position:relative}
</span>div<span style="color: #666666; font-style: italic;">#header h1{height:80px;line-height:80px;margin:0;
</span>padding<span style="color: #339933;">-</span>left<span style="color: #339933;">:</span>10px<span style="color: #339933;">;</span>background<span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">#EEE;color: #79B30B}
</span>div<span style="color: #666666; font-style: italic;">#header a{position:absolute;right:0;top:23px}
</span>div<span style="color: #666666; font-style: italic;">#content p{line-height:1.4}
</span>div<span style="color: #666666; font-style: italic;">#navigation{background:#B9CAFF}
</span>div<span style="color: #666666; font-style: italic;">#extra{background:#FF8539}
</span>div<span style="color: #666666; font-style: italic;">#footer{background: #333;color: #FFF}
</span>div<span style="color: #666666; font-style: italic;">#footer p{margin:0;padding:5px 10px}
</span>div<span style="color: #666666; font-style: italic;">#footer a{display:inline;padding:0;color: #C6D5FD}
</span>
div<span style="color: #666666; font-style: italic;">#wrapper{float:left;width:70%}
</span>div<span style="color: #666666; font-style: italic;">#navigation{float:right;width:29.9%}
</span>div<span style="color: #666666; font-style: italic;">#extra{clear:both;width:100%}
</span><span style="color: #339933;">&lt;/</span>style<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Copy all between &#8220;style&#8221; and the end of this tag and paste it in the <strong>[Admincenter==>Presentation==>Theme Editor==>] style.css</strong> =>after this click:update files.</p>
<h3><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.==>Sourcecode ==> HTML</h3>
<p>We need the HTML to the CSS above. To get the overview I&#8217;m using &#8220;html comments&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>body<span style="color: #339933;">&gt;</span>
       <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;container&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;header&quot;</span><span style="color: #339933;">&gt;&lt;</span>h1<span style="color: #339933;">&gt;</span>Header<span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;http://www.texto.de/&quot;</span><span style="color: #339933;">&gt;</span>download this layout<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id header<span style="color: #339933;">--&gt;</span>
&nbsp;
      <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;wrapper&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;content&quot;</span><span style="color: #339933;">&gt;</span>
               <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> Content here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> column long long column very long <span style="color: #339933;">...</span>l very<span style="color: #339933;">.</span>
                   <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
              <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>very make make fill silly long long <span style="color: #339933;">..</span>
                  <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
                 and so on<span style="color: #339933;">....</span>
             <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> <span style="color: #990000;">end</span> of id content<span style="color: #339933;">--&gt;</span>
        <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id wrapper<span style="color: #339933;">--&gt;</span>
&nbsp;
       <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;navigation&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#41;</span> Navigation here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> l
            <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
       <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id navigation<span style="color: #339933;">--&gt;</span>
&nbsp;
    <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;extra&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> More stuff here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> very text make long column 
               <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
         <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id extra<span style="color: #339933;">--&gt;</span>
&nbsp;
     <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;footer&quot;</span><span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;</span>The footer<span style="color: #339933;">.</span> You can go to the <span style="color: #339933;">...</span>
              <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
       <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id footer<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id container<span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;/</span>body<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Now you and I know that  &#8220;div id container&#8221;  is the box around.  This &#8220;id container&#8221; starts after body tag and ends before it. </p>
<h3>How To &#8211; Join CSS and  HTML  in PHP Files </h3>
<p>If you know a bit about html you know that &#8220;body tag&#8221; starts after the end of the html tag. 99,9999% this you will find in  header.php and  in footer.php. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Div id header and div id footer the same. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] header.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;body&gt;
&lt;div id=&quot;container&quot;&gt;
  &lt;div id=&quot;header&quot;&gt;
                     &lt;!--the blog title--&gt;
               &lt;h1&gt;
		&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_settings<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
&nbsp;
                  &lt;!--blog description--&gt;
                  <span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'description'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
               &lt;/h1&gt;
       &lt;/div&gt;&lt;!--end of id header--&gt;
&lt;!--header.php end--&gt;</pre></div></div>

<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] footer.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--footer.php--&gt;
&lt;div id=&quot;footer&quot;&gt;
	&lt;p&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> is proudly powered by 
		&lt;a href=&quot;http://wordpress.org/&quot;&gt;WordPress&lt;/a&gt;
		&lt;br /&gt;&lt;a href=&quot;feed:<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Entries (RSS)&lt;/a&gt;
		and &lt;a href=&quot;feed:<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'comments_rss2_url'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Comments (RSS)&lt;/a&gt;.
		&lt;!-- <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_num_queries<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> queries. <span style="color: #000000; font-weight: bold;">&lt;?php</span> timer_stop<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> seconds. --&gt;
	        &lt;!--necessary--&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
          &lt;/p&gt;
      &lt;/div&gt;&lt;!--end of id footer--&gt;
&lt;/div&gt;&lt;!--end of id container--&gt;&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>My wordpress theme blank is full of html comments to explain all the wordpress template tags and to explain header.php ends, start of single.php and so on.  You&#8217;ll see in the code above that the html tags are between this comments. And this is necessary!</p>
<p>View your site and you see the first result. Ok it doesn&#8217;t look very well, but you get the overview. </p>
<p><strong>The next  div id wrapper and div id content.</strong></p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] index.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;!--index.php--&gt;
&lt;div id=&quot;wrapper&quot;&gt;
          &lt;div id=&quot;content&quot;&gt;
        &lt;!--the loop--&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
and so on ........
&nbsp;
&nbsp;
                    Not Found
		Sorry, but you are looking for something that isn't here.
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;/searchform.php&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;!--do not delete--&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
               &lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--index.php end--&gt;
&lt;!--include sidebar--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>View your site. Trial and error are good taskmaster. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>The next  &#8220;div id navigation&#8221;.</strong> The box at the right side. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] sidebar.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--sidebar.php--&gt;
&lt;div id=&quot;navigation&quot;&gt;
		&lt;!--searchfield--&gt;
....
.....
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/div&gt;&lt;!--end of id navigation--&gt;		
&nbsp;
&lt;!--sidebar.php end--&gt;</pre></div></div>

<p><strong>Don&#8217;t view your site now.</strong>It looks very strange. Header, the footer is at the left, content is grey and you got a headache. </p>
<p>Why? Have a look at the CSS. Div id extra clear both (wrapper, content and navigation) and we have no div id extra, because there is no &#8220;extra.php&#8221; or another template in this theme to create an &#8220;extra stuff&#8221;. </p>
<h3>You have to create a new template and tell wordpress to use this.</h3>
<p>And that&#8217;s why I&#8217;m using <a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a> as an example. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>1. Open your editor. Save the empty file as extra.php. Upload it in your theme folder.<br />
wp-content/themes/yourtheme/.<br />
2. <strong>[Administration Panels==>Presentation==>Theme Editor==>] extra.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>extra<span style="color: #339933;">.</span>php<span style="color: #339933;">--&gt;</span>
 <span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;extra&quot;</span><span style="color: #339933;">&gt;</span>
          <span style="color: #339933;">&lt;</span>p<span style="color: #339933;">&gt;&lt;</span>strong<span style="color: #339933;">&gt;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#41;</span> More stuff here<span style="color: #339933;">.&lt;/</span>strong<span style="color: #339933;">&gt;</span> very text make long column 
               <span style="color: #339933;">&lt;/</span>p<span style="color: #339933;">&gt;</span>
         <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span><span style="color: #990000;">end</span> of id extra<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;!--</span><span style="color: #990000;">end</span> of extra<span style="color: #339933;">.</span>php<span style="color: #339933;">--&gt;</span></pre></div></div>

<p>The html above tell us, we need this extra.php between sidebar.php and footer.php. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>] index.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--index.php end--&gt;
&lt;!--include sidebar--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>With this</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>you can tell wordpress every new template you need. /extra.php or /whateveryouneed.php or /sample.php and so on. </p>
<p>View your site and I&#8217;m sure it looks much better. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>The template hierachie of wordpress</h3>
<p>WordPress theme blank have page.php, single.php, search.php two archives.php. You can delete all this files and you are ready with your new design. To understand, please read <a href="http://codex.wordpress.org/Template_Hierarchy" title="Externer Link:Template Hierarchie">Codex</a> and have a look at my new <a href="http://www.texto.de/update-cheat-cheet-wp-template-hierarchie-909/" title="New Sheet with all the new templates ">sheet about the template hierarchie</a>. I can&#8217;t explain it better. (Not in english <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p>If you click on an article, static page or an archive/category you will see a very creative website. Because div id wrapper and div id content and the new template extra.php are missing. </p>
<p><strong>[Administration Panels==>Presentation==>Theme Editor==>]archive.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;div id=&quot;wrapper&quot;&gt;
          &lt;div id=&quot;content&quot;&gt;
	&lt;!--the loop--&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
......
....
&lt;!--do not delete--&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	       &lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--archive.php end--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p><strong>[Administration Panels==>Presentation==>Theme Editor==>]single.php</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--single.php--&gt;
	&lt;div id=&quot;wrapper&quot;&gt;
            &lt;div id=&quot;content&quot;&gt;
&lt;!--loop--&gt;			
  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span>
<span style="color: #339933;">......</span>
<span style="color: #339933;">......</span>
Sorry<span style="color: #339933;">,</span> no posts matched your criteria<span style="color: #339933;">.</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span><span style="color: #b1b100;">do</span> not delete<span style="color: #339933;">--&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;/div&gt;&lt;!-- end of id content--&gt;
        &lt;/div&gt;&lt;!--end of id wrapper--&gt;
&lt;!--single.php end--&gt;
&nbsp;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--include extra.php--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/extra.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--include footer--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>I&#8217;m shure you understand==> search.php, the second archives.php, page.php. </p>
<h3>Ok and the stuff in single.php and the other files?</h3>
<p>This is &#8220;one post&#8221;.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> &lt;!--the loop--&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;!--the loop--&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
			&lt;!--post title as a link--&gt;
				&lt;h2 id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
		     &lt;!--post time--&gt;	
                     <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
                      &lt;!--post author--&gt;
                      <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
				&lt;!--post text with the read more link--&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				&lt;!--show categories, edit link ,comments--&gt;
&nbsp;
				Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
	        &lt;!--end of one post--&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Safe your files and figure it out. Remember:Trial and error are good taskmaster.  <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="sign"> &#8230;  Have fun, and don&#8217;t be afraid to contact me if you have questions.<br />
<br /> and .. if you would like to relaxe after all this &#8220;css, html, php &#8221; &#8211; solve <a href="http://www.sudoku-topical.com/" title="Sudoku  online - wash your brain ">Sudoku</a> online <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </div>
<h3> und noch was &#8230;</h3>
<p>Vom 14.03.07  bis zum 25.August 2011 wurde dieser Artikel     161 879 mal gelesen, dann habe ich den sichtbaren PostReadCounter aus Performancegründen abgeschaltet. <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/how-to-design-your-own-wordpress-theme-265/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/how-to-design-your-own-wordpress-theme-265/feed/</wfw:commentRss>
		<slash:comments>112</slash:comments>
		</item>
		<item>
		<title>in jeder Kategorienansicht einen statischen Text &#8211; sticky post für die Archive</title>
		<link>http://www.texto.de/in-jeder-kategorienansicht-einen-statischen-text-sticky-post-fuer-die-archive-239/</link>
		<comments>http://www.texto.de/in-jeder-kategorienansicht-einen-statischen-text-sticky-post-fuer-die-archive-239/#comments</comments>
		<pubDate>Sun, 27 Aug 2006 17:42:37 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Quick Tipps]]></category>
		<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/in-jeder-kategorienansicht-einen-statischen-text-sticky-post-fuer-die-archive/</guid>
		<description><![CDATA[In jeder Kategorienansicht einen statischen Text - sticky post für die Kategorie. Du magst einen Text für die jeweilige Kategorie, aber die Kategorien Beschreibung nutzt Du bereits für die meta_description. Au&#223;erdem ist immer das zuletzt geschriebene Post ganz oben. Hier eine Lösung von vermutlich mehreren.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">S</span>tatischen Text für die jeweilige Kategorie &#8211; sticky post für die Kategorie. Nach so etwas fragte mich <a href="http://www.texto.de/texto/in-der-kategorieansicht-den-ersten-beitrag-hervorheben/#comment-1588" title="Anfrage vom ad_prof  im Kommentar">ad_prof </a>. Grund: Er mag in jeder Kategorie einen l&auml;ngeren Beschreibungstext für die Benutzer anbieten. Nutzt aber die Kategorienbeschreibung bereits für die meta_description im Header und sucht natürlich nach einer Lösung, die nicht st&auml;ndiges Eingreifen in die Templates von WordPress erfordert.  Ruft man in seinem SEO-Blog eine Kategorie auf, ist der zuletzt geschriebene Beitrag ganz oben &#8211; so wie es eben Standard ist<span id="more-239"></span>.</p>
<h3>Meine Lösung hat 3 Schritte:</h3>
<ol>
<li>1. Die vorhanden archive.php sichern.
</li>
<li>2. Die archive.php öffnen und dann untenstehenden Code einfügen.<br />
Wie immer:ich wei&#223; nicht, ob copy and paste funktioniert!
</li>
<li>3. Admincenter==>Beitrag schreiben==>richtige Kategorie anhaken==>Zeitstempel &auml;ndern!<br />
Von mir aus auf den 1.August 1877 &#8211; speichern. Fertig!.
</li>
</ol>
<p><strong>Zeitstempel auf ein sehr frühes Datum &auml;ndern ist absolut wichtig, sonst kann dies nicht funktionieren!</strong></p>
<p>Die archive.php ist gesichert, mit einem Editor geöffnet und nun gehts los:</p>
<p>Beispiel anhand der archive.php aus dem default Theme.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div id=&quot;content&quot; class=&quot;narrowcolumn&quot;&gt;
&nbsp;
	&lt;!--stickypost beginn--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;showposts=1&amp;order=ASC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
    &lt;div class=&quot;stickypost&quot;&gt;
           &lt;h2 id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
     <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
     &lt;/div&gt;&lt;!--stickypost end--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
&nbsp;
	&lt;!--stickypost end--&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$posts</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Hack. Set $post so that the_date() works. ?&gt;</span></pre></div></div>

<p>Was bedeutet dies alles:</p>
<p>Vor dem Loop nutze ich die Möglichkeit des query_strings. Ich befehle WordPress mit</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$query_string</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;showposts=1&amp;order=ASC&quot;</span></pre></div></div>

<p>Hole aus der Kategorie ein einziges Post und zwar in aufsteigender Reihenfolge. </p>
<p>Darum ist auch das Zeitstempel &auml;ndern beim Beitrag schreiben so wichtig. WP holt das &auml;lteste Post aus dieser Kategorie hervor. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </p>
<p>Dann bestimme ich noch, dass dieses Post ein <strong>sogenanntes Duplicate Post </strong>ist, weil niemand mag, dass dieser Beitrag in der normalen Kategorie noch einmal angezeigt wird. </p>
<p>Weil dies niemand mag, gehts noch ein bisschen weiter in der archive.php. Irgendwann taucht dort auf:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Dort brauchen wir jetzt unser Duplicate Post, damit es ja nicht angezeigt wird, das geht so:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$do_not_duplicate</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">continue</span><span style="color: #339933;">;</span>
&nbsp;
  update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<h3> Aber die Katgorienüberschrift..</h3>
<p>Beim default Theme w&auml;re jetzt die <strong>Kategorienüberschrift unterhalb dieses sticky Posts</strong>.</p>
<p>Dies erachte ich als weniger sinnvoll, daher habe ich sie einfach nach oben geholt und dort wo sie sonst steht gelöscht. </p>
<p>Hier die gesamte archiv.php des default Themes nach diesen &#196;nderungen, die ich gekennzeichnet habe, damit sie leichter gefunden werden:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>stickypost beginn<span style="color: #339933;">--&gt;</span>
<span style="color: #004000;">und</span> dann wenn <span style="color: #990000;">die</span> <span style="color: #339933;">&amp;</span><span style="color: #666666; font-style: italic;">#196;nderung aus ist
</span>
<span style="color: #339933;">&lt;!--</span>stickypost end<span style="color: #339933;">--&gt;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> get_header<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div id=&quot;content&quot; class=&quot;narrowcolumn&quot;&gt;
&nbsp;
	&lt;!--stickypost beginn--&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$my_query</span> <span style="color: #339933;">=</span> <span style="color: #000000; font-weight: bold;">new</span> WP_Query<span style="color: #009900;">&#40;</span><span style="color: #000088;">$query_string</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;&amp;showposts=1&amp;order=ASC&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">have_posts</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000088;">$my_query</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">the_post</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$do_not_duplicate</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;h2&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> _e<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Category'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>: <span style="color: #000000; font-weight: bold;">&lt;?php</span> single_cat_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
&nbsp;
    &lt;div class=&quot;stickypost&quot;&gt;
           &lt;h2 id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
     <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
     &lt;/div&gt;&lt;!--stickypost end--&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
&nbsp;
	&lt;!--stickypost end--&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$post</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$posts</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">0</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// Hack. Set $post so that the_date() works. ?&gt;</span>
<span style="color: #339933;">&lt;!--</span>stickypost beginn da war mal <span style="color: #990000;">die</span> Katueberschrift<span style="color: #339933;">--&gt;</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span>stickypost end<span style="color: #339933;">--&gt;</span>
&nbsp;
 	  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is a daily archive */</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_day<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h2 class=&quot;pagetitle&quot;&gt;Archive for <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
&nbsp;
	 <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is a monthly archive */</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_month<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h2 class=&quot;pagetitle&quot;&gt;Archive for <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F, Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is a yearly archive */</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_year<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h2 class=&quot;pagetitle&quot;&gt;Archive for <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Y'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/h2&gt;
&nbsp;
	  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is a search */</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_search<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h2 class=&quot;pagetitle&quot;&gt;Search Results&lt;/h2&gt;
&nbsp;
	  <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is an author archive */</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h2 class=&quot;pagetitle&quot;&gt;Author Archive&lt;/h2&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is a paged archive */</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span><span style="color: #990000;">isset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">&amp;&amp;</span> <span style="color: #339933;">!</span><span style="color: #990000;">empty</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_GET</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'paged'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;h2 class=&quot;pagetitle&quot;&gt;Blog Archives&lt;/h2&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
		&lt;div class=&quot;navigation&quot;&gt;
			&lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo; Previous Entries'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
			&lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Next Entries &amp;raquo;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
		&lt;/div&gt;
&nbsp;
         &lt;!--stickypost beginn--&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
                 <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">ID</span> <span style="color: #339933;">==</span> <span style="color: #000088;">$do_not_duplicate</span> <span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">continue</span><span style="color: #339933;">;</span>
                 update_post_caches<span style="color: #009900;">&#40;</span><span style="color: #000088;">$posts</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
         &lt;!--stickypost end--&gt;
&nbsp;
		&lt;div class=&quot;post&quot;&gt;
				&lt;h3 id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h3&gt;
				&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'l, F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/small&gt;
&nbsp;
				&lt;div class=&quot;entry&quot;&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				&lt;/div&gt;
&nbsp;
				&lt;p class=&quot;postmetadata&quot;&gt;Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt; 
&nbsp;
			&lt;/div&gt;
&nbsp;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		&lt;div class=&quot;navigation&quot;&gt;
			&lt;div class=&quot;alignleft&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> next_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;laquo; Previous Entries'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
			&lt;div class=&quot;alignright&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> previous_posts_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Next Entries &amp;raquo;'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&gt;
		&lt;/div&gt;
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">else</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
		&lt;h2 class=&quot;center&quot;&gt;Not Found&lt;/h2&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span> <span style="color: #009900;">&#40;</span>TEMPLATEPATH <span style="color: #339933;">.</span> <span style="color: #0000ff;">'/searchform.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_sidebar<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_footer<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Ich habe es getestet und es funktionierte.</p>
<p>Den Zeitstempeln jeweils zu &auml;ndern, dacht ich mir ist die geringste Arbeit, wenn man sich dafür &#8216;ewigste&#8217; Eingriffe in die Templates erspart, weil man wei&#223; ja nie wieviele Kategorien man erstellt.  </p>
<div class="sign">&#8230; sowas zu machen, dann auf den Refresh Button des Browsers zu klicken &#8211; funktionierts oder nicht?!? &#8211; das hat was <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/in-jeder-kategorienansicht-einen-statischen-text-sticky-post-fuer-die-archive-239/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/in-jeder-kategorienansicht-einen-statischen-text-sticky-post-fuer-die-archive-239/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>aktiven Kategorien eine bestimmte Klasse</title>
		<link>http://www.texto.de/aktiven-kategorien-eine-bestimmte-klasse-46/</link>
		<comments>http://www.texto.de/aktiven-kategorien-eine-bestimmte-klasse-46/#comments</comments>
		<pubDate>Wed, 31 Aug 2005 17:07:54 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=46</guid>
		<description><![CDATA[Aktive Kategorien in einem Menü anzeigen. WP bietet dafür ein Plugin.]]></description>
			<content:encoded><![CDATA[<p>Per Email wurde ich gefragt:</p>
<blockquote><p>Wie schaffst Du es , dass die aktiven Kategorien einer bestimmten Klasse zugeordnet werden.</p>
</blockquote>
<p>Nun ich bin manchmal <span id="more-46"></span>faul und nutze daher  ein Plugin catHighlight von  Venushka Pereraund.<br />In der style.css definierte ich die <abbr title="Cascading Style Sheet">CSS</abbr> class cathighlight.</p>
<p>Fertig!</p>
<div class="sign">..meine Plugin Liste aktualisieren gehe</div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/aktiven-kategorien-eine-bestimmte-klasse-46/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/aktiven-kategorien-eine-bestimmte-klasse-46/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sidebar l&#228;nger als Content</title>
		<link>http://www.texto.de/sidebar-laenger-als-content-45/</link>
		<comments>http://www.texto.de/sidebar-laenger-als-content-45/#comments</comments>
		<pubDate>Wed, 31 Aug 2005 16:32:48 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=45</guid>
		<description><![CDATA[Was tun, wenn die Sidebar auf einmal l&#228;nger als der Content ist. CSS Tipps und Tricks.]]></description>
			<content:encoded><![CDATA[<p><span style="float:left;padding:10px;"><a href="/wp-images/text/background.gif" title="Gro&#223;darstellung des Problems"><img src="/wp-images/text/thumb-background.gif" alt="Sidebar l&auml;nger als Content. " height="300px" width="224px" /></a></span><br />Einige von Euch kennen das Problem: </p>
<p>Endlich das optimale Design für die eigene Homepage, ( das Blog) , aber wenn der Text nicht so lang ist, dann wandert <strong>die Sidebar über den Content</strong> und sieht nicht so gut  aus. <br class="clear"/></p>
<p>Das Bild zeigt die derzeitige Website von <a href="http://www.j-town-freakz.de/blogs/stranger/" title="Externer Link:j-town-freakz.de/blogs/stranger">stranger</a> und da ich Stranger versprach zu erkl&auml;ren wie dies &auml;nderbar ist, <span id="more-45"></span>nehme ich diese Website als Beispiel.  </p>
<p>In der style.css des Blogs fand ich die Struktur der Website. <br class="clear" /></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">body<span style="color: #009900;">&#123;</span>
   background<span style="color: #339933;">-</span>image<span style="color: #339933;">:</span> url<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>blackbird<span style="color: #339933;">/</span>blackbird2<span style="color: #339933;">.</span>gif<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   font<span style="color: #339933;">-</span>family<span style="color: #339933;">:</span> garamond<span style="color: #339933;">,</span> serif<span style="color: #339933;">;</span>
   font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span> 11<span style="color: #339933;">.</span>5pt<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#head{
</span>   background<span style="color: #339933;">-</span>image<span style="color: #339933;">:</span> url<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>blackbird<span style="color: #339933;">/</span>blackbird1<span style="color: #339933;">.</span>gif<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
   position<span style="color: #339933;">:</span> absolute<span style="color: #339933;">;</span>
   left<span style="color: #339933;">:</span> 0px<span style="color: #339933;">;</span>
   top<span style="color: #339933;">:</span> 0px<span style="color: #339933;">;</span>
   width<span style="color: #339933;">:</span> 800px<span style="color: #339933;">;</span>
   height<span style="color: #339933;">:</span> 350px<span style="color: #339933;">;</span>
   background<span style="color: #339933;">-</span>position<span style="color: #339933;">:</span> top left<span style="color: #339933;">;</span>
   border<span style="color: #339933;">-</span>right<span style="color: #339933;">:</span> 2px groove <span style="color: #666666; font-style: italic;">#999999;
</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#main{
</span>   background<span style="color: #339933;">-</span>color<span style="color: #339933;">:</span> <span style="color: #666666; font-style: italic;">#ffffff;
</span>   position<span style="color: #339933;">:</span> absolute<span style="color: #339933;">;</span>
   left<span style="color: #339933;">:</span> 0px<span style="color: #339933;">;</span>
   top<span style="color: #339933;">:</span> 350px<span style="color: #339933;">;</span>
   width<span style="color: #339933;">:</span> 800px<span style="color: #339933;">;</span>
   border<span style="color: #339933;">-</span>right<span style="color: #339933;">:</span> 2px groove <span style="color: #666666; font-style: italic;">#999999;
</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Da sowohl der #header wie #main auf 800px fixiert ist funktioniert folgende Background Lösung:</strong></p>
<h4>Das Hintergrundbild bei #body &auml;ndern</h4>
<p>Der <strong>Website Background</strong> zeigt sich am ganzen Bildschirm so:<br />
Wei&#223; &#8211;  der schmale dunkle Rand &#8211;  die kleinen K&auml;stchen.</p>
<p>Die wei&#223;e Fl&auml;che ist bis zum Rand ganz genau 800px, die kleinen K&auml;stchen können in ihrer Breite varieren.</p>
<p>Das derzeitige Bild, das bei #body  (blackbird2.gif) eingebunden wurde zeigt derzeit nur die kleinen K&auml;stchen.</p>
<p><strong>Methode 1:</strong></p>
<p>Dieses Bild  (blackbird2.gif)mü&#223;te so ge&auml;ndert werden:<br />
1024x (Höhe der kleinen K&auml;stchen)</p>
<p>Von Links nach Rechts:788px wei&#223; dann 2px in der Farbe des jetzigen rechten Randes, die restliche Fl&auml;che aufgefüllt mit den kleinen K&auml;stchen.</p>
<p><strong>Methode 2:</strong></p>
<p>Oder einen <strong>Screenshot</strong> der jetzigen Website machen und aus dieser einen Streifen herausschneiden &#8211; dies funktioniert nur, wenn man sehr genau arbeitet, aber es funktioniert.</p>
<p>Wenn dieser lange Streifen dann wieder unter blackbird2.gif abgespeichert wird, muss die CSS Angabe bei #body nur mehr so ge&auml;ndert werden:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">body<span style="color: #009900;">&#123;</span>
   background<span style="color: #339933;">-</span>image<span style="color: #339933;">:</span> url<span style="color: #009900;">&#40;</span><span style="color: #339933;">/</span>blackbird<span style="color: #339933;">/</span>blackbird2<span style="color: #339933;">.</span>gif<span style="color: #009900;">&#41;</span>repeat<span style="color: #339933;">-</span>y<span style="color: #339933;">;</span>
   font<span style="color: #339933;">-</span>family<span style="color: #339933;">:</span> garamond<span style="color: #339933;">,</span> serif<span style="color: #339933;">;</span>
   font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span> 11<span style="color: #339933;">.</span>5pt<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Dieses repeat-y gibt an, dass das Bild nur Vertikal wiederholt werden darf.<br />
Fertig!</p>
<p>Bei der Schriftgrö&#223;e fand ich die Angabe:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">..</span>code<span style="color: #339933;">..</span>font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span> 11<span style="color: #339933;">.</span>5pt<span style="color: #339933;">;..</span> <span style="color: #339933;">/</span>code<span style="color: #339933;">..</span></pre></div></div>

<ol>
<li>Eine fixierte Schriftgrö&#223;e sperrt viele Leser aus &#8211; alle, die Brillen tragen als Beispiel.</li>
<li> pt ist eine Grö&#223;enangabe aus der Druckerei, aber nicht für Websites geeignet. <br />Prozentangaben  oder die Angabe:1em, 0.9em ist sinnvoll, hilfreich und einfach richtiger.</li>
</ol>
<div class="sign">&#8230; viel Spa&#223; beim Website Background Tüfteln <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/sidebar-laenger-als-content-45/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/sidebar-laenger-als-content-45/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Theme gestalten</title>
		<link>http://www.texto.de/wordpress-theme-gestalten-19/</link>
		<comments>http://www.texto.de/wordpress-theme-gestalten-19/#comments</comments>
		<pubDate>Wed, 24 Aug 2005 18:43:05 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WordPress Themes]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=19</guid>
		<description><![CDATA[Aufbau eines WordPress Themes. Ein WordPress Theme besteht aus vielen Templates und diese haben ihre Hierarchie.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">b</span>jörn</a> [blog.branwars.de] hatte eine  <a href="http://www.texto.de/texto/tag-1dein-wordpress-theme/#comment-8" title="björns Frage in einem Kommentar">Frage:</a> </p>
<blockquote><p>aber das mit den WordPress templates und sonstigen Sachen</p>
</blockquote>
<p>Selber ein WordPress Theme zu gestalten bedeutet etwas von <abbr title="Hxper Text Markup Language ">(X)HTML</abbr> und <abbr title="Cascading Style Sheets ">CSS </abbr>zu verstehen und dann vielleicht, wenn man mag, sich in die fertigen  PHP Template Tags einzulesen und copy&#038;paste zu beherrschen <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> .<br />
Ich beginne mit dem Aufbau eines  WP-Themes.</p>
<p><span id="more-19"></span></p>
<ol>
<li>Ein WordPress Theme besteht aus einer style.css und mehreren <strong>PHP Dateien, die templates </strong>genannt werden. Die Bilder für das Design sind meist im Ordner *images*. <br />Dieser Ordner, die templates und die style.css sind in einem Ordner, der den Namen des Themes hat.</li>
<li>In diesen <strong>templates sind die XHTML Angaben</strong>, die mit der style.css gestaltet werden können.</li>
<li>WordPress ist so programmiert, dass die <strong>templates einer Hierarchie</strong> unterliegen &#8211; das kompakteste WP Theme besteht aus einer index.php und einer style.css.</li>
</ol>
<h4>Wieso hat ein WordPress Theme viele  templates, wenn eines reicht?</h4>
<p>Wegen der übersicht! <br />
Jede HTML Datei besteht aus einem head und body und da PHP mehr Möglichkeiten bietet ist es wesentlich übersichtlicher für einzelne Abschnitte auch eigene templates zu machen. Sowohl für die CSS Gestaltung wie auch dann für die template tags also den PHP Teil.</p>
<h5>Template Hierarchie</h5>
<p>Du hast eine Kategorie mit der ID (Identifikationsnummer) 26 und magst genau diese eine Kategorie anders darstellen als alle anderen Kategorien, so erstelle die &#8220;category-26.php&#8221; und WP kapiert, dass es für die Kategorie nur dieses template nutzen darf. </p>
<p>Es gibt für die Suche im default theme zwei templates: <strong>search.php</strong> und <strong>searchform.php</strong>. In der search.php steht drin wie es Aussehen soll, wenn das Ergebnis einer Suche sichtbar wird und die search.php beinhaltet nur die HTML Angaben für das Suchfeld.</p>
<p>Theoretisch benötigst Du beide templates nicht, denn die HTML Angaben für das Suchfeld kannst Du ja auch direkt in die index.php hinein schreiben. </p>
<p>Die <strong>archive.php</strong> ruft WP auf, wenn man auf eine Kategorie klickt, aber gibt es diese nicht, nimmt WP einfach die index.php dafür her.</p>
<p>In der <strong>header.php</strong> steht meist all das drin, was man sonst auch in den Header einer HTML Datei hineinschreibt.  Im default theme findet man dort auch alle Angaben, die die Hintergrundbilder und das Header Bild betreffen.</p>
<p>Die Kommentare mit all den Angaben &#8211; Pings ja -Trackback nein -Kommentare geschlossen oder offen etc. sind in der <strong>comments.php</strong>, mag man aber Pop Ups dann ist dies die <strong>comments-popup.php</strong>.</p>
<p><strong>Footer.php</strong> dort finden meist die html tags ihren &#8220;Abschluss&#8221;.</p>
<p>Also die <strong>Namen der WordPress templates eines Themes geben Auskunft über den Inhalt</strong>, sidebar.php als klassisches Beispiel. </p>
<h6><a name="static" title="staticPage" class="invisible"></a>statische Seiten</h6>
<p>Für diese nutzt das default theme die <strong>page.php</strong>. Du kannst aber auch eigene page.php templates machen. sitemap.php, gaestebuch.php, impressum.php als Beispiele.<br />
Du <a href="http://www.texto.de/texto/wordpress-theme-gestalten/#static" title="static Page,statische Seite erstellen" class="invisible">.</a>musst diesen nur einen &#8220;Namen&#8221; geben:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">/*
Template Name: Sitemap
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Diese sitemap.php im Ordner des Themes laden.<br />
<ins>Admincenter==>Schreiben==>Seite schreiben==>Seiteneinstellungen==>Template der Seite: </ins> und dort dann ausw&auml;hlen.</p>
<div class="sign"><small>.. bitte nachfragen, weil wer wei&#223;, ob ich einfach erkl&auml;rte&#8230;</small></div>
<hr /><small>Copyright &copy; 2011<br /> This feed is for personal, non-commercial use only. <br /> The use of this feed on other websites breaches copyright. If this content is not in your news reader, it makes the page you are viewing an infringement of the copyright. Original article:  <a href="http://www.texto.de/wordpress-theme-gestalten-19/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/wordpress-theme-gestalten-19/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

