<?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; WebDesign</title>
	<atom:link href="http://www.texto.de/tag/webdesign/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>CSS braucht jeder</title>
		<link>http://www.texto.de/css-braucht-jeder-867/</link>
		<comments>http://www.texto.de/css-braucht-jeder-867/#comments</comments>
		<pubDate>Sat, 19 Sep 2009 15:41:14 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=867</guid>
		<description><![CDATA[WordPress und CSS. Wer ein WP Theme anpassen mag, braucht CSS Kenntnisse, ich habe ein CSS Buch geschrieben. Basis Know-how CSS.]]></description>
			<content:encoded><![CDATA[<dl class="left" style="width:260px;">
<dt> Mein Buch zum Thema CSS&nbsp;</dt>
<dd><a href="http://www.databecker.de/basisknowhow_css.html?kid=53" title="Mein Buch zum Thema CSS"><img src="http://www.texto.de/wp-images/0909/css-buch-basis-know-how.jpg" alt=" Basis Know-How zum Thema CSS " width="193" height="250" /></a></dd>
</dl>
<p>ich behaupt einfach mal, dass wirklich jeder, der sich mit WordPress ein wenig beschäftigt <abbr title="Cascading Style Sheet"><span class="abbr" title="Cascading Style Sheet">CSS</span></abbr> braucht.  Und aus diesem Grund mache ich hier völlig unverschämt Werbung für mein eigenes Buch. <strong>Basis Know-how CSS </strong>. </p>
<p>Geschrieben hat Hannes Schluchtmann und ich und wir versuchten soviele <span id="more-867"></span>praktische Tipps wie irgend möglich unterzubringen und das nötige *Must-have* Wissen so einfach und kurz unterzubringen, dass es nicht langweilt und Du dennoch genug lernst.</p>
<p>Wenn Du auch nur ein wenig CSS Basiswissen hast, dass Du ausbauen möchtest, dann ist dieses CSS Buch für Dich. </p>
<p>Mehr INFO zu meinem Buch gibts bei <a href="http://www.databecker.de/basisknowhow_css.html?kid=53" title="Mein Buch zum Thema CSS">Data </a>direkt oder auf der <a href="http://www.webdesign-in.de/mts/css-fuer-die-praxis-aus-der-praxis-mein-buch/" title="Mein Buch zum Thema CSS">WebDesign-in.de</a>, die ich anläßlich der Erscheinung des Buches neu machte. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Übers Weitersagen freu ich mich, über Kritik und Ergänzungen zum Buch nicht minder und wenn Du davon profitierst, wäre es nett, wenn Du es mit schreibst. </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/css-braucht-jeder-867/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/css-braucht-jeder-867/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>pre und overflow auto</title>
		<link>http://www.texto.de/pre-und-overflow-auto-104/</link>
		<comments>http://www.texto.de/pre-und-overflow-auto-104/#comments</comments>
		<pubDate>Sun, 20 Apr 2008 08:30:41 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/pre-und-overflow-auto/</guid>
		<description><![CDATA[Pre und Overflow Auto, CSS Tipps und Tricks und der IE.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">I</span>ch nutze hier ziemlich oft den pre Tag, da ich Code anzeigen mag. Um die jeweiligen Code Zeilen so anzeigen zu können, wie sie auch benutzt werden sollen, gebe ich den pre Tag ein overflow auto. Dies sieht in meiner style.css dann so  aus:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">pre<span style="color: #009900;">&#123;</span>
font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span>0<span style="color: #339933;">.</span>9em<span style="color: #339933;">;</span>	
width<span style="color: #339933;">:</span>420px<span style="color: #339933;">;</span> 
overflow<span style="color: #339933;">:</span>auto<span style="color: #339933;">;</span> 
line<span style="color: #339933;">-</span>height<span style="color: #339933;">:</span>2<span style="color: #339933;">.</span>8em<span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

</pre>
<p>Funktioniert prima. Vor allem die Angabe line-height macht das Lesen vom Code entschieden einfacher als wenn man keine line-height Angabe macht.</p>
<p>Problematisch wird dies im Internet Explorer, da der bei einziligem Code, den pre Tag extrem niedrig anzeigt aber sofort einen vertikalen Scrollbalken liefert, wie hier am Bild zu <span id="more-104"></span>sehen ist. Das zweite Bild zeigt dieselbe pre Zeile im Firefox, der eindeutig mehr unterem Rand liefert, der das Lesen erleichtert und natürlich keinen vertikalen Scrollbalken. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<dl style="width:450px;" class="center">
<dt>Der IE erschwert lesen.</dt>
<dd><img src="/wp-images/ie_overflow_auto.gif" alt="IE staucht die Zeilen, bei overflow auto und einzeiligem Text" height="128px" width="431px" /></dd>
<dt>Firefox liefert mehr unteren Rand..</dt>
<dd><img src="/wp-images/firefox_overflow_auto.gif" alt="IE staucht die Zeilen, bei overflow auto und einzeiligem Text" height="128px" width="431px" /></dd>
</dl>
<p>Lösbar ist dies nur, indem man dem IE genug padding-bottom  gibt, damit auch dieser Browser lesbaren Text mit pre und overflow auto liefert. Er bringt zwar dann immer noch den meist völlig unnötigen vertikalen  Scrollbalken , aber leichter lesbar ist es allemal.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">pre<span style="color: #009900;">&#123;</span>font<span style="color: #339933;">-</span>size<span style="color: #339933;">:</span>0<span style="color: #339933;">.</span>9em<span style="color: #339933;">;</span>padding<span style="color: #339933;">-</span>bottom<span style="color: #339933;">:</span>20px<span style="color: #339933;">;</span>width<span style="color: #339933;">:</span>420px<span style="color: #339933;">;</span> overflow<span style="color: #339933;">:</span>auto<span style="color: #339933;">;</span> line<span style="color: #339933;">-</span>height<span style="color: #339933;">:</span>2<span style="color: #339933;">.</span>8em<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<h3>Artikelhistorie</h3>
<p>Erstveröffentlichung:Oktober 12, 2005 @ 21:13</p>
<div class="sign">.... ein Leben ohne IE.. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />  w&auml;re langweilig.</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/pre-und-overflow-auto-104/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/pre-und-overflow-auto-104/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Links mag ich ein Bild zum Beitrag und ein paar Daten, Rechts davon sollte dann der ganze Text stehen</title>
		<link>http://www.texto.de/content-zwei-spalten-anzeigen-529/</link>
		<comments>http://www.texto.de/content-zwei-spalten-anzeigen-529/#comments</comments>
		<pubDate>Sat, 15 Dec 2007 17:16:09 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[WebDesign]]></category>
		<category><![CDATA[wordpress-cms]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/links-mag-ich-ein-bild-zum-beitrag-und-ein-paar-daten-rechts-davon-sollte-dann-der-ganze-text-stehen/</guid>
		<description><![CDATA[Wer WordPress als CMS nutzt, mag hie und da einfach eine andere Darstellung der Artikel haben. So war auch eine Anfrage. Links immer ein Bild und dann Rechts davon den Text und eine ganze Linie dazwischen. Dies alles auf einer statischen Seite.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">C</span>ulina aus dem  WordPress Forum hatte eine Frage: <a href="http://forum.wordpress-deutschland.org/design/28195-links-rechts-spalte-gleiches-design-mit-posts-inhalt.html" title="Frage aus dem Forum">Links und Rechts eine Spalte</a>, und dies sollte immer gleich aussehen. Links sollt was bestimmtes angezeigt werden und Rechts dann der Text des Artikels. </p>
<p>Realisiert haben mag sie dies alles in einer statischen Seite von WordPress.  </p>
<p>Dazu benötigt man &#8220;benutzerdefinierte Felder&#8221;. Wissen wie man Text eines Artikels auf einer statischen Seite darstellt, einen eigenen Loop und au&#223;erdem CSS Kenntnisse.  Ich bringe ein Beispiel wie es funktionieren kann.  Es gibt deren sicher mehrere Möglichkeiten.</p>
<p>Am Ende des Artikels findest Du weitere Links, die weiterhelfen und erklären. </p>
<h3>benutzerdefinierte Felder lä&#223;t man so anzeigen</h3>
<p>Wenn Dein benutzerdefiniertes Feld *hausaufgaben* <span id="more-529"></span>hei&#223;t.</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: #000088;">$key</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hausaufgaben&quot;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> get_post_meta<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;">$key</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</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>Beiträge /Artikel werden auf einer statischen Seite so angezeigt</h3>
<p>Der eigene Loop sieht so aus.</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> rewind_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span>
&nbsp;
	<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: #0000ff;">'order=asc&amp;showposts=500'</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;
das ganze html und alles was man anzeigen lassen mag
&nbsp;
&nbsp;
&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></pre></div></div>

<p>Ich wei&#223; nicht wieviele Artikel angezeigt werden sollen, doch die Anzahl ist ja änderbar,ebenso kann man die Ausgabe auf Artikel einer oder mehrerer Kategorien beschränken und oder gar keine spezielle Ordnung angeben.</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> rewind_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<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: #0000ff;">'cat=3,5,7&amp;showposts=10'</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;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
das ganze html und alles was man anzeigen lassen mag
&nbsp;
&nbsp;
&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></pre></div></div>

<p>Hier werden nur die Artikel aus den Kategorien mit der ID 3 /5 oder 7 geholt und nur 10 an der Zahl. Der zuletzt geschrieben Artikel erscheint als 1.</p>
<h3>Damit die beiden Spalten gestaltet werden braucht man ein wenig html und css. </h3>
<p>Das template für die statische Seite könnte dann so aussehen.</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: Produktinfo
*/</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&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;
&nbsp;
&lt;div class=&quot;border&quot;&gt;
&nbsp;
&nbsp;
   <span style="color: #000000; font-weight: bold;">&lt;?php</span> rewind_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
&nbsp;
	<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: #0000ff;">'order=asc&amp;showposts=500'</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;">global</span> <span style="color: #000088;">$more</span><span style="color: #339933;">;</span>
         <span style="color: #000088;">$more</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
             &lt;div class=&quot;post&quot; 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;
&nbsp;
&nbsp;
&nbsp;
			&lt;div class=&quot;entry&quot;&gt; 
                                &lt;h2&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;/h2&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;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- by <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> --&gt;&lt;/small&gt;
&nbsp;
&nbsp;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</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>
				&lt;/div&gt;
&nbsp;
&lt;div class=&quot;meta-key&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #000088;">$key</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;hausaufgaben&quot;</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">echo</span> get_post_meta<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;">$key</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/div&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>
&lt;/div&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>
<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>Vor dem Loop ergänzte ich um die class border. </p>
<p>Dieser gibt man mit einem Hintergrundbild, das man vertical wiederholen lä&#223;t den sichtbaren Rand, der durchgängig sein sollte. Wieviel das Hintergrundbild horizontal in die Mitte gerückt werden muss, muss man selber herausfinden. Bei mir sind es 45%.</p>
<p>Die class entry  lä&#223;t man nach rechts flie&#223;en (float) und die class meta-key nach links flie&#223;en. Der class post schafft man an dieser Flie&#223;erei ein Ende zu setzen. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #339933;">.</span>border<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>images<span style="color: #339933;">/</span>border<span style="color: #339933;">.</span>gif<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> background<span style="color: #339933;">-</span>position<span style="color: #339933;">:</span><span style="color: #cc66cc;">45</span><span style="color: #339933;">%</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span>background<span style="color: #339933;">-</span>repeat<span style="color: #339933;">:</span>repeat<span style="color: #339933;">-</span>y<span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">.</span>post<span style="color: #009900;">&#123;</span>clear<span style="color: #339933;">:</span>both<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">.</span>entry<span style="color: #009900;">&#123;</span>float<span style="color: #339933;">:</span>right<span style="color: #339933;">;</span> text<span style="color: #339933;">-</span>align<span style="color: #339933;">:</span>left<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #339933;">.</span>meta<span style="color: #339933;">-</span><span style="color: #990000;">key</span><span style="color: #009900;">&#123;</span>float<span style="color: #339933;">:</span>left<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>Welche Angaben man noch mag oder braucht &#8211; bitte selber ergänzen.</p>
<div class="sign">Viel Spa&#223; und viel Erfolg.  War dies hilfreich für Dich so freue ich mich über Social Bookmarks. </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/content-zwei-spalten-anzeigen-529/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/content-zwei-spalten-anzeigen-529/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>verschiedene Titel &#8211; title &#8211; im Header</title>
		<link>http://www.texto.de/verschiedene-titel-title-im-header-240/</link>
		<comments>http://www.texto.de/verschiedene-titel-title-im-header-240/#comments</comments>
		<pubDate>Thu, 22 Mar 2007 19:40:36 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WebDesign]]></category>
		<category><![CDATA[WordPress Quick Tipps]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/verschiedene-titel-title-im-header/</guid>
		<description><![CDATA[Der title im Header gibt den Titel / Namen  der jeweiligen Seite einer Website an. In WordPress kann man dies leicht automatieren und individuell gestalten.]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">T</span>itel -title-  in WordPress gestalten, war eine der Fragen hier in diesem Thread in <a href="http://www.abakus-internet-marketing.de/foren/viewtopic/t-31088.html" title="Externer Link:Abakus Suchmaschinenoptimier Forum">Abakus</a>. Denn unterschiedliche Titel sind derzeit sehr wichtig für die Suchmaschinen. </p>
<p><strong>Edit am  22.03.07</strong></p>
<p><strong>Sergej </strong>erstellte ein <a href="http://notepad.emaillink.de/2007/03/21/seo-plugin-fuer-wordpress/" title="Seo Plugin für WordPress">Seo Plugin für WordPress</a>, das sowohl den title tag wie die meta description indiviualisiert und automatisiert. </p>
<p><span class="firstletter">B</span>equem im Admincenter alle Einstellungen machen. Vorher jedoch alle title Angaben und meta description oder meta keywords aus der header.php Deines Themes löschen. Sonst erscheint alles doppelt.</p>
<p>Wer jedoch eine Lösung auch für die Bl&auml;tterfunktion oder für spezielle Tagging Plugins haben mag, muss diese immer noch selber einfügen. Doch Sergejs Plugin ist sicher eine tolle Erleichterung für viele, die sich nicht über die php template tags von WP trauen. Ich habe es getestet, es ist in Deutsch und bedarf au&#223;er genauem Lesen keinerlei Erkl&auml;rungen.</p>
<p><span class="caplize">E</span>in <strong>gro&#223;es Danke </strong>an <a href="http://notepad.emaillink.de/" title="Sergej ">Sergej</a>, der meine Anregungen in <a href="http://www.texto.de/texto/verschiedene-titel-title-im-header/#comment-5237" title="Meine Wünsche an das Plugin">diesem Kommentar</a> aufgriff und innerhalb kürzester Zeit verwirklichte. </p>
<p>Wer jedoch die title Angaben selber machen  oder auch die Bl&auml;tterfunktion berücksichtigen mag, den empfehle ich das Lesen der folgenden Zeilen. Wie immer sind Code Beispiele dabei.<span id="more-240"></span>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
&nbsp;
&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</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><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span>is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">||</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> <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><span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_title<span style="color: #009900;">&#40;</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>&lt;/title&gt;</pre></div></div>

<p>Dies bedeutet ausgesprochen:</p>
<p>Wenn es die Hauptseite ist, dann zeige den Namen des Blogs, ist es eine Kategorie, eine statische Seite, eine Single Seite oder die Seite mit den Suchergebnissen, dann zeige den jeweiligen Titel an. </p>
<p>Jetzt tauchte die Frage auf, was man machen muss, damit man:</p>
<blockquote><p>im titel der category noch was anders drinstehen haben möchte und im titlevon single zBsp. auch? </p>
</blockquote>
<p>Ich bin für durchschaubare einfache Lösungen, daher würde ich dies so machen:<br />Wie immer, bitte aufpassen, ob copy&#038;paste funktioniert!</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>is_home<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;title&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;/title&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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_category<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;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_title<span style="color: #009900;">&#40;</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> 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> - und noch was dazu     &lt;/title&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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_single <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;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_title<span style="color: #009900;">&#40;</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> 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;/title&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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</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: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_title<span style="color: #009900;">&#40;</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>- &amp;auml;rgernis &lt;/title&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;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page <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;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_title<span style="color: #009900;">&#40;</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>-statische Seite   &lt;/title&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>

<p>Dies hei&#223;t:</p>
<ul>
<li>Wenn es die Startseite ist, zeige den Namen.
</li>
<li>Wenn es eine Kategorie ist, zeige den Namen der Kategorie &#8211; den Namen des Blogs &#8211; und noch was dazu.
</li>
<li>Wenn es eine Single Seite ist, zeige den Titel des Artikels  &#8211; den Blognamen.
</li>
<li>Wenn es die Suchergebnisseite ist, zeige den Titel -&#196;rgernis.
</li>
<li>Wenn es eine statische Seite ist, zeige den Titel -statische Seite.
</li>
</ul>
<p>Dies soll nur die Möglichkeiten aufzeigen. </p>
<p>Wie man bei einer Single Seite auch die dazugehörige Kategorie anzeigen kann &#8211; ?? Sorry, da muss ich passen, da es ja möglich ist einen Artikel in mehrern Kategorien anzuzeigen und ich es nicht schaffte dies au&#223;erhalb des sogenannten Loops zu machen. </p>
<div class="sign">Sollte dies wer können, gebe ich gerne &#8216;Credit&#8217; dafür. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </div>
<p><strong>edit am 4.09.gegen Abend</strong></p>
<p>In diesem <a href="http://www.texto.de/texto/verschiedene-titel-title-im-header/#comment-1643" title="titles beim Umbrechen">Kommentar </a>spendierte <a href="http://www.zes-systems.de/" title="Externer Link:Zes Systeme">Haerzi</a> noch folgende Lösung:</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>is_home<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;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_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>  <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: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$paged</span> <span style="color: #339933;">!=</span> <span style="color: #cc66cc;">1</span>  <span style="color: #339933;">&amp;&amp;</span> <span style="color: #000088;">$paged</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #b1b100;">echo</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot; Seite <span style="color: #006699; font-weight: bold;">$paged</span>&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;
&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></pre></div></div>

<p>Ich biete hier einen Seitenumbruch nach so und sovielen Beitr&auml;gen an, und dank obiger Erweiterung haben jetzt auch die Seite 2, 3, oder 56000 unterschiedliche titles. </p>
<div class="sign">  Danke <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />   </div>
<h3>Artikelversionen:</h3>
<p>Erstveröffentlichung: 29.08.06</p>
<p>Edit am 4.09.06  gegen Abend &#8211; verschiedene title bei *Bl&auml;tterfunktion*</p>
<p>Edit am 22.03.07 Sergej Müller SEO-Plugin für WordPress erg&auml;nzt</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/verschiedene-titel-title-im-header-240/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/verschiedene-titel-title-im-header-240/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
		<item>
		<title>Schritt für Schritt zum eigenen WordPress Theme</title>
		<link>http://www.texto.de/schritt-fuer-schritt-wordpress-theme-391/</link>
		<comments>http://www.texto.de/schritt-fuer-schritt-wordpress-theme-391/#comments</comments>
		<pubDate>Thu, 15 Feb 2007 15:18:28 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://www.texto.de/texto/schritt-fuer-schritt-zum-eigenen-wordpress-theme/</guid>
		<description><![CDATA[CSS und HTML kannst Du ein bisschen. PHP fast nicht oder gar nicht. Wie machst  Du Dir Dein Lieblingsdesign zum WordPress Theme. ]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">D</span>u hast bereits eine eigene Homepage, oder Du hast ein Design gefunden, das Dir sehr gef&auml;llt. Du möchtest von Null weg Dein eigenes WordPress Theme machen.  Hier folgt eine Schritt für Schritt Anleitung. </p>
<h3>This article in english: How To Design Your Own WordPress Theme.</h3>
<p>Wie immer:Viele Wege führen nach Rom, dies hier ist nur einer. Dieser Artikel ist wegen all der Code Beispiele lang. Du kannst jeden Schritt gleich mitmachen. Ein Texteditor w&auml;re gut &#8211; WordPad reicht völlig. </p>
<p>Sollte ich am Schluss keinen Kommentar von Dir lesen, oder niemals Dein fertiges Werk bestaunen können, dann f&auml;llt Dir der Himmel auf den Kopf. Da bin ich absolut <span id="more-391"></span>sicher! </p>
<ul>
<li>Du brauchst WordPress . <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </li>
<li>Am besten das leereblank WordPress Theme von mir.</li>
<li>Ein bisschen Zeit und Kaffee (solltest Du meinen, Du wirst krank dabei geht auch Tee <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
<li>Wenn Du ein bisschen von HTML und CSS verstehst w&auml;re es von Vorteil, doch Du kannst auch einfach alles machen und dabei ein wenig was lernen.</li>
<li>Einen Editor, wie erw&auml;hnt WordPad reicht auch. Dreamweaver nicht, weil der die Template Tags von WP ver&auml;ndert!</li>
<li>Magst Du das gleich online machen, dann muss das Theme die chmod Rechte:beschreibbar haben. </li>
</ul>
<p>Jetzt brauchen wir eine Struktur eines Layouts <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>Zwei fluide Spalten, ein Header und ein Footer. </p>
<p><strong>Alle Dateien immer sichern!</strong></p>
<h3><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.==>Quellcode ==> 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: #339933;">;</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: #339933;">;</span><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: #339933;">;</span><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>Kopiere alles  ab html bis zur letzten geschwungenen Klammer von div#extra in die <strong>[Admincenter==>Theme==>Theme Editor==>] style.css</strong> =>danach klicke auf speichern..</p>
<h3><a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a>.==>Quellcode ==> HTML</h3>
<p>Jetzt brauchen wir das HTML zu genau diesen CSS Angaben. Ich nutze immer jede Menge an HTML Kommentaren, damit ich den überblick nicht verliere, und damit auch sp&auml;ter eventuell andere sich auskennen. </p>
<p>Der Text in den Codebeispielen ist Englisch wie im Original, weil er an und für sich egal ist. Aber damit Du wei&#223; was ich wann wo herauskopierte.</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;</span>download this layout
            <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>ende von  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> ende von id content<span style="color: #339933;">--&gt;</span>
        <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>ende von  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>ende von 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>ende von 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>ende von id footer<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>ende von 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>Erkennbar ist jetzt, dass  &#8220;div id container&#8221;  der Layer, die Box drumherum ist. Denn &#8220;id container&#8221; f&auml;ngt gleich nach dem body Tag an und endet vor dem ganz unten. </p>
<h3>Dieses HTML richtig in die verschiedenen .php Templates von WordPress bringen. </h3>
<p>Wenn Du auch nur ganz wenig von HTML wei&#223;t, dann wei&#223;t Du, dass der body Tag gleich dem /head Tag beginnt und zu 99,9999% findest Du dies in der  header.php. Der body Tag endet vor /html und dies ist sicher in der footer.php. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  Div id header und div id footer absolut das gleiche.</p>
<p><strong>[Admincenter==>Theme==>Theme Editor==>] header.php</strong></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;</span>
                     <span style="color: #339933;">&lt;!--</span>blog titel<span style="color: #339933;">--&gt;</span>
               <span style="color: #339933;">&lt;</span>h1<span style="color: #339933;">&gt;</span>
		<span style="color: #339933;">&lt;</span>a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;&lt; ?php echo get_settings('home'); ? &gt;/&quot;</span><span style="color: #339933;">&gt;&lt;</span> ?php 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: #339933;">&gt;&lt;/</span>a<span style="color: #339933;">&gt;</span>
&nbsp;
                  <span style="color: #339933;">&lt;!--</span>blog beschreibung<span style="color: #339933;">--&gt;</span>
                  <span style="color: #339933;">&lt;</span> ?php 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: #339933;">&gt;</span>
               <span style="color: #339933;">&lt;/</span>h1<span style="color: #339933;">&gt;</span>
       <span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span>ende von  id header<span style="color: #339933;">--&gt;</span>
<span style="color: #339933;">&lt;!--</span><span style="color: #990000;">header</span><span style="color: #339933;">.</span>php end<span style="color: #339933;">--&gt;</span></pre></div></div>

<p><strong>[Admincenter==>Theme==>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> l&amp;auml;ft stressfrei mit 
		&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;RSS Feed&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;RSS Feed für Kommentare&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;!--wichtig--&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;!--ende von id footer--&gt;
&lt;/div&gt;&lt;!--ende von id container--&gt;&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

<p>Das leere WP Theme hat jede Menge an HTML Kommentaren. Du findest dort wo eine single.php anf&auml;ngt oder aufhört, wo die page.php beginnt und sie endet und es ist wichtig, dass das HTML zwischen diesen Kommentaren steht.</p>
<p>Wenn Du Dir jetzt das Blog ansiehst, sieht es nicht gerade hübsch aus. Aber für den überblick reichts. </p>
<p><strong>Jetzt  div id wrapper und div id content.</strong></p>
<p><strong>[Admincenter==>Theme==> 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;
                    Leider
		<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;!--nicht loeschen --&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;!-- ende von  id content--&gt;
        &lt;/div&gt;&lt;!--ende von 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>Schau Dir jetzt Deine Seite an&#8230; aus dem Chaos entsteht Neues &#8230; <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Nun   &#8220;div id navigation&#8221;.</strong> Die rechte Spalte . </p>
<p><strong>[Admincenter==>Theme==> 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;!--suche--&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;!--ende von id navigation--&gt;		
&nbsp;
&lt;!--sidebar.php end--&gt;</pre></div></div>

<p><strong>Schau es Dir nicht an!</strong>   Der Header und der Footer sind sicher links, content ist Grau und Dir wird schwindelig <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> .<br />
Nun das HTML oben und die CSS Angaben erz&auml;hlen uns von div id extra. Und dieses sollte das Floaten auflösen. Da es aber jetzt noch kein div id extra wo gibt, flie&#223;t alles irgendwie durcheinander. </p>
<h3>Ein neues WP Template erstellen und WP befehlen dieses zu nutzen</h3>
<p>Aus diesem Grund suchte ich genau dieses <a href="http://blog.html.it/layoutgala/LayoutGala30.html" title="Layout Gala Design 30">Layout Gala Design n.30</a> als Beispiel aud . <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>1. Öffne Deinen Editor speichere eine leere Seite als  extra.php. Und lade diese in den Theme Ordner.<br />
wp-content/themes/yourtheme/.<br />
2. <strong>[Admincenter==>Theme==> 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>Ganz oben zeigt  das HTML diese  extra.php sollte zwischen  sidebar.php und  footer.php sein. </p>
<p><strong>[Admincenter==>Theme==> 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;!-- ende von  id content--&gt;
        &lt;/div&gt;&lt;!--ende von  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>Diese Angabe:</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>befiehlt WP das neue Template zu nutzen, es wird includiert, eingebunden. /extra.php oder  /wasauchimmerdumagst.php oder oder oder&#8230;&#8230;.. </p>
<p>Jetzt sieht die Seite sicher wesentlich besser aus, Browsercache leeren mit strg+F5,  <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h3>Die Template Hierarchie von WP</h3>
<p>Mit der index.php und einer style.css alleine funktioniert WP auch. Hast Du aber eine page.php für die statischen Seiten kannst Du dort leichter eigene Angaben für diese Seiten machen. Die category.php zeigt die Kategorien, die archive.php die Monats und Jahresarchive etc. Category-3.php nutzt WP automatisch nur für die Kategorie mit der ID 3.  </p>
<p>D.h. wenn Du jetzt auf eine statische Seite klickst wird Chaos herrschen, ebenso bei all den anderen Klicks. </p>
<p><strong>[Admincenter==>Theme==> 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;!--nicht loeschen --&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;!-- ende von  id content--&gt;
        &lt;/div&gt;&lt;!--ende von  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>[Admincenter==>Theme==> 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>
Leider<span style="color: #339933;">,.....</span>
&nbsp;
<span style="color: #339933;">&lt;!--</span>nicht loeschen<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;!-- ende von  id content--&gt;
        &lt;/div&gt;&lt;!--ende von  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>Versuche es jetzt selber bei den anderen Templates.</p>
<h3>Single.php und ab wann beginnt ein Artikel und wann endet er?</h3>
<p>Das da erzeugt einen Artikel.</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;!--beitrags titel als 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 für <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 zeit --&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 autor--&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 mit dem lies weiter link--&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'weiterlesen &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				&lt;!--zeigt die kategorien, edit link, kommentare--&gt;
&nbsp;
				Geschrieben 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;">'Kein Kommentar &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Kommentar &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Kommentare &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;!--ende eines posts--&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>Speichere die Dateien und spiel Dich einfach ein bisschen damit. Versuch und Irrtum sind gute Lehrmeister und es kann nichts schiefgehen, weil Du ja Sicherungen hast!  <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="sign"> &#8230;  Bei Fragen, fragen, war es hilfreich erz&auml;hl es weiter und denke an den Himme .. <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/schritt-fuer-schritt-wordpress-theme-391/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/schritt-fuer-schritt-wordpress-theme-391/feed/</wfw:commentRss>
		<slash:comments>49</slash:comments>
		</item>
		<item>
		<title>WP 2.0 killt Breaks oder setzt sie wo es mag- WP 2.1 auch &#8230;</title>
		<link>http://www.texto.de/wp-20-killt-breaks-oder-setzt-sie-wo-es-mag-139/</link>
		<comments>http://www.texto.de/wp-20-killt-breaks-oder-setzt-sie-wo-es-mag-139/#comments</comments>
		<pubDate>Wed, 24 Jan 2007 14:14:33 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[WebDesign]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=139</guid>
		<description><![CDATA[WP 2.0 killt Abst&#228;nde, wenn man br setzen mag und gibt br hinzu wo es keiner braucht. ]]></description>
			<content:encoded><![CDATA[<p><span class="caplize">I</span>ch habe auf meinem Testblog WP 2.0. Stellte dort eine Tabelle in einen Artikel und hatte auf einmal mitten drunter lauter br / im Quellecode. Au&#223;erdem wurde im WordPress.de Forum immer wieder gefragt, wie man es schafft, dass WP2.0 mehrere br untereinander auch anzeigt, wenn man so &#8220;Abstand&#8221; erzeugen mag.</p>
<p>In der wp-includes/functions-formatting.php wurde ich fündig. Wenn Du auch diese Probleme hast, dann kannst Du meine Lösung gerne ausprobieren. </p>
<p><strong>edit am 24.1.07Ã‚Â² </strong>auch WP 2.1 hat dieses Problem, die Lösung dafür steht am Ende dieses Artikels<span id="more-139"></span>. </p>
<h3>Lösung für WordPress Version kleines als WP 2.1 also  WP 2.00-2.07 </h3>
<p>1. wp-includes/functions-formatting.php sichern, dann  mit einem Editor Deiner Wahl öffnen.<br />
2. br s werden gekillt. Ich kann damit keinen Abstand machen.<br />
3. Zeile 57 ungef&auml;hr.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wpautop<span style="color: #009900;">&#40;</span><span style="color: #000088;">$pee</span><span style="color: #339933;">,</span> <span style="color: #000088;">$br</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000088;">$pee</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pee</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// just to make things a little easier, pad the end</span>
<span style="color: #666666; font-style: italic;">//    $pee = preg_replace('|&lt;br /&gt;\s*&lt;br /&gt;|', &quot;\n\n\n&quot;, $pee);</span></pre></div></div>

<p>Diese beiden Querstriche dorthin machen wo Du sie siehst. Man nennt dies auskommentieren. Auf deutsch unbrauchbar machen. </p>
<p>4. Bei verschiedenen HTML Tags wird ein br gesetzt, obwohl es nicht hingehört.<br />
5. Suche alle Zeilen ab Zeile 67 , die ungef&auml;hr so aussehen:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #000088;">$pee</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'!&lt;p&gt;\s*(&lt;/?(?:table|thead|tfoot|</span></pre></div></div>

<p>Sie haben auf alle F&auml;lle jede Menge HTML  Tags und der erste davon ist immer &#8220;table&#8221;.</p>
<p>Sieh nach, ob der html tag, wo die br ungewollt auftauchen, dort dabei steht.</p>
<p>Wenn nicht erg&auml;nze ihn einfach.</p>
<h3>
Lösung für WP 2.1 </h3>
<p>Sicher die Datei:<strong>wp-includes/formatting.php.</strong><br />
Öffne sie dann und &auml;ndere folgendes in der Zeile 55.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wpautop<span style="color: #009900;">&#40;</span><span style="color: #000088;">$pee</span><span style="color: #339933;">,</span> <span style="color: #000088;">$br</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pee</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pee</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// just to make things a little easier, pad the end</span>
	<span style="color: #000088;">$pee</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|&lt;br /&gt;\s*&lt;br /&gt;|'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pee</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// Space things out a little</span>
	<span style="color: #000088;">$allblocks</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(?:table|thead|tfoot|caption|colgroup|tbody|tr|td|th|d......................</span></pre></div></div>

<p>bei &#8216;allblocks&#8217; stehen jede Menge an html tags drin, fehlt dort einer, dann kommen die breaks. Daher habe ich in dem Fall einfach col erg&auml;nzt. Hineingeschrieben und den senkrechten Trennstrich gemacht. Gespeichert, hochgeladen und fertig.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">function</span> wpautop<span style="color: #009900;">&#40;</span><span style="color: #000088;">$pee</span><span style="color: #339933;">,</span> <span style="color: #000088;">$br</span> <span style="color: #339933;">=</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$pee</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$pee</span> <span style="color: #339933;">.</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// just to make things a little easier, pad the end</span>
	<span style="color: #000088;">$pee</span> <span style="color: #339933;">=</span> <span style="color: #990000;">preg_replace</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'|&lt;br /&gt;\s*&lt;br /&gt;|'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$pee</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #666666; font-style: italic;">// Space things out a little</span>
	<span style="color: #000088;">$allblocks</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'(?:table|thead|tfoot|caption|colgroup|col|tbody|tr|td|th|d......................</span></pre></div></div>

<p>Abspeichern, hochladen und zumindest bei mir waren dann diese Probleme behoben. WENN das Automatische Reparieren von HTML Tags abgestellt ist und man NICHT den Editor verwendet.</p>
<div class="sign">&#8230;findende Grü&#223;e ..;)</div>
<p>Ã‚Â²<br />
dieser Artikel wurde am 15.01.06 das erste Mal veröffentlicht. </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/wp-20-killt-breaks-oder-setzt-sie-wo-es-mag-139/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/wp-20-killt-breaks-oder-setzt-sie-wo-es-mag-139/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>horizontale Liste gestalten</title>
		<link>http://www.texto.de/horizontale-liste-gestalten-151/</link>
		<comments>http://www.texto.de/horizontale-liste-gestalten-151/#comments</comments>
		<pubDate>Tue, 07 Feb 2006 18:36:22 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=151</guid>
		<description><![CDATA[Wie stellt man eine Liste, geordnet oder ungeordnet, horiziontal dar und nicht immer nur vertikal.]]></description>
			<content:encoded><![CDATA[<p>In einem Kommentar bei den wp list pages Spielereien fragt <a href="http://www.texto.de/texto/wp_list_pages-spielereien/#comment-291" title="Horizontale Liste">Laurent</a> wie man so eine Liste horizontal darstellen kann.</p>
<p>Ganz einfach ist dies nicht zu beantworten, weil es auf den Grundaufbau des jeweiligen Cascading Style Sheet ankommt, aber meist führt folgender Weg zum <span id="more-151"></span>Ziel:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">[Schritt 1]&lt;/div&gt;&lt;!--das ist das div des headers, das geschlossen werden muss.--&gt;
[Schritt 2]&lt;div id=&quot;menu&quot;&gt;
[Schritt 3]&lt;ul&gt;
 [Schritt 4]  <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #339933;">..............</span>
<span style="color: #009900;">&#91;</span>Schritt <span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
<span style="color: #009900;">&#91;</span>Schritt <span style="color: #cc66cc;">6</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">&lt;/</span>div<span style="color: #339933;">&gt;&lt;!--</span> id menu end<span style="color: #339933;">--&gt;</span></pre></div></div>

<p>Erkl&auml;rung:</p>
<ol>
<li>Schritt 1:<br />Die Liste sollte unterhalb des Headers erscheinen, daher erweist es sich oft als gut, den Header vorher zuzumachen.</li>
<li>Schritt 2:<br />Ich nehme eine id, weil eine class oft nicht die &#8220;Macht&#8221; hat. Der Name &#8220;menu&#8221; ist willkürlich ausgesucht, kann auch anders genannt werden.</li>
<li>Schritt 3:<br /> Für eine horizontale Liste ist es einfacher keine verschachtelte Liste zu nehmen. Der template tag wp_list_pages erzeugt die &#8220;li&#8221; selber, also müssen nur die fehlenden ul nachgereicht werden.</li>
<li>Schritt 4:<br /> Der template tag, welcher auch immer für Dein Anliegen passt.</li>
<li>Schritt 5 und 6:<br />
Alles was man &#8220;aufgemacht&#8221; hat muss man wieder &#8220;zumachen&#8221;.</li>
</ol>
<p>In die style.css Deines Themes kommt dann folgendes:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">1</span><span style="color: #009900;">&#93;</span> <span style="color: #666666; font-style: italic;">#menu  ul {position:relative; top:10px!important;top:15px; padding:0; margin:0% 3% 0% 0%; }
</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">2</span><span style="color: #009900;">&#93;</span> <span style="color: #666666; font-style: italic;">#menu ul li {display:inline; margin:0 1px; }
</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">3</span><span style="color: #009900;">&#93;</span> <span style="color: #666666; font-style: italic;">#menu  li {padding:2px 10px;}
</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">4</span><span style="color: #009900;">&#93;</span> <span style="color: #666666; font-style: italic;">#menu  li:hover {padding:2px 10px;}
</span><span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">5</span><span style="color: #009900;">&#93;</span> <span style="color: #666666; font-style: italic;">#menu  a:hover {background-color:transparent;}</span></pre></div></div>

<ul>
<li>[1] die beiden Angaben bei top:&#8230;. sind einmal für den Internet Explorer und einmal für Firefox, Mozilla, Opera. Der Internet Explorer zeigt Abst&auml;nde anders als die anderen Browser an. Versteht dieses !important aber überhaupt nicht. So kann man dies nutzen zwei Angaben für ein und dieselbe Sache zu machen.  Ob die 10px reichen oder zuviel sind, kann man allgemein nicht sagen.</li>
<li>[2] wichtig ist dieses display inline , denn dieses inline macht aus der an und für sich vertikalen Liste eine horizontale. Die margin Angaben sind wiederum nicht allgemein bestimmbar.</li>
<li>[3] Padding ist der Innenabstand, man sollte padding Werte bei einer horizontalen Liste angeben, damit der Abstand auch links und rechts gut aussieht und benutzbar bleibt. Zu eng erschwert das Draufklicken, wenn man zB. ein ungeübter Maus und Internetnutzer ist.</li>
<li>[4] Gibt man dem li einen hover Effekt- der ist sichtbar, wenn man mit der Maus drüber f&auml;hrt, erleichtert dies ebenfalls das Draufklicken und man hat au&#223;erdem mehr Gestaltungsmöglichkeiten.</li>
<li>Es geht um Links, die sollte man &#8211; wenn es irgendwie geht, so wie die anderen Links auf der Website gestalten. Da man aber manchmal ein Hintergrundbild verwendet oder die Farbe beim Drüberfahren mit der Maus nicht passt oder die horizontale Liste am Ende des Headerbildes erscheinen soll, kann man die Links in dieser horizontalen Liste anpassen.</li>
</ul>
<p>Ich wei&#223;, sehr allgemein diese Tipps, aber ohne mehr über die Website zu wissen, wo diese horizontale Liste hin soll, kann ich nur spekulieren und sehr allgemein erkl&auml;ren.</p>
<p>Bei Fragen, einfach die Kommentarfunktion nutzen und meist haben viele andere auch Fragen und sind sehr froh, wenn sich jemand zu fragen getraut . <img src='http://www.texto.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<div class="sign">&#8230;gut erholt aus dem Urlaub zurück <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  </div>
<p><strong>edit:09.02.06</strong><br />
Ich antworte hier, weil in den Kommentaren zuwenig html erlaubt ist -aus Sicherheitsgründen.;)</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
 <span style="color: #666666; font-style: italic;">#menu  ul {position:relative; top:10px!important;top:15px; padding:0; margin:0% 3% 0% 0%; }
</span><span style="color: #666666; font-style: italic;">#menu ul li.page_item {display:inline; margin:0 1px; }
</span> <span style="color: #666666; font-style: italic;">#menu  li {padding:2px 10px;}
</span> <span style="color: #666666; font-style: italic;">#menu  li:hover {padding:2px 10px;}
</span> <span style="color: #666666; font-style: italic;">#menu  a:hover {background-color:transparent;}
</span><span style="color: #666666; font-style: italic;">#menu li {	list-style-type: none;
</span>	list<span style="color: #339933;">-</span>style<span style="color: #339933;">-</span>image<span style="color: #339933;">:</span>none<span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span></pre></div></div>

<p>mit dem list style type none verbietest Du die Bullets mit list style image etwaige Bildchen, die Du vielleicht woanders in einer Liste hast anstatt der Bullets.</p>
<p><strong>Die Zwischenstriche:</strong><br />
1. Möglichkeit -in allen Browsern sichtbar:<br />
Du verwendest nicht den template tag wp_list_pages, sondern verlinkst selber jede Seite.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>div id<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;menu&quot;</span><span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;&lt;</span>li<span style="color: #339933;">&gt;</span> a href<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;deinedomain.de/.....&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;.....&quot;</span><span style="color: #339933;">&gt;</span>Blubsch<span style="color: #339933;">&lt;/</span>a<span style="color: #339933;">&gt;&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;&lt;/</span>div<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Nachteil: ist aufw&auml;ndig.</p>
<p>2.Möglichkeit: der Internet Explorer zeigt dies nicht an, Browser schon.;)</p>
<p>Du schreibst in die style.css folgendes dazu:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">#menu ul li:before{
</span>	 content<span style="color: #339933;">:</span><span style="color: #0000ff;">&quot;\|&quot;</span><span style="color: #339933;">;</span>
	 text<span style="color: #339933;">-</span>align<span style="color: #339933;">:</span>center<span style="color: #339933;">;</span>
&nbsp;
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>lg</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/horizontale-liste-gestalten-151/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/horizontale-liste-gestalten-151/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Briefgeheimnis auch für Blinde Menschen</title>
		<link>http://www.texto.de/briefgeheimnis-auch-fuer-blinde-menschen-150/</link>
		<comments>http://www.texto.de/briefgeheimnis-auch-fuer-blinde-menschen-150/#comments</comments>
		<pubDate>Wed, 01 Feb 2006 12:30:38 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Lesen]]></category>
		<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=150</guid>
		<description><![CDATA[Du hast einen Freund oder eine Freundin, die blind ist. Möchtest vielleicht mal einen Brief schreiben, der nicht vorgelesen werden muss. Es geht- sogar ohne dass Du die Braille Schrift kannst.]]></description>
			<content:encoded><![CDATA[<p>Sehen ist für viele von uns selbstverst&auml;ndlich. Briefgeheimnis auch.  Für blinde Menschen beides nicht.  Emails können vorgelesen werden. Dazu gibt es sogenannte <span lang="en"  xml:lang="en">Screen Reader</span>. Aber vielleicht magst Du mal eine Urlaubskarte senden. Vielleicht magst Du mal einen Liebesbrief senden. So richtig altmodisch per Briefpost. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  All diese Dinge mussten bis jetzt einem blinden Menschen vorgelesen werden und ehrlich &#8211; wer mag schon, dass die Mutter, der Bruder, die Schwester oder die Tante einen Liebesbrief liest&#8230;</p>
<p>Ein Braille Schrift Service hift bei diesem Problem. In einen Kommentar auf einer meiner anderen Websites fand ich den Hinweis dazu.<br /><a href="http://www.braillepost.be" title="Externer Link:Braille Post">Braille Post Service</a> sagt von sich <span id="more-150"></span>selber:</p>
<blockquote><p>Wir empfangen Ihre Nachricht, drucken diese in Punktschrift aus, packen das Ganze in einen Umschlag, den wir mit der Adresse des Empf&auml;ngers versehen, und ab geht die Post als Blindensendung. </p>
</blockquote>
<p>Diesen Service gibt es in mehreren Sprachen. Deutsch, französisch und niederl&auml;ndisch, soweit ich herausfand. Eine Sache für die ich gerne Werbung mache und einlade es mir gleichzutun. </p>
<div class="sign"> lesen für alle </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/briefgeheimnis-auch-fuer-blinde-menschen-150/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/briefgeheimnis-auch-fuer-blinde-menschen-150/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Verschachtelte Listen und die Sidebar in WP</title>
		<link>http://www.texto.de/verschachtelte-listen-und-die-sidebar-in-wp-126/</link>
		<comments>http://www.texto.de/verschachtelte-listen-und-die-sidebar-in-wp-126/#comments</comments>
		<pubDate>Mon, 19 Dec 2005 13:39:36 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[WordPress Theme]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=126</guid>
		<description><![CDATA[Die Sidebar in WordPress liefert eine doppelt verschachtelte Liste, die viele Design Möglichkeiten bietet. Kaum &#228;ndert man dort jedoch etwas, führt es zum HTML Chaos.  Verschachtelte Listen und die Sidebar.php]]></description>
			<content:encoded><![CDATA[<p>Die  <strong>Sidebar von WordPress </strong> ist der Quell der Fragen. Jeder mag logischerweise diese ganz eigen gestalten und die Template Tags bieten dafür wirklich unendliche Möglichkeiten. Wer jedoch auch noch auf vaildes (X)HTML Wert legt oder wer vielleicht die Anzeige der &#8220;Letzten Kommentare&#8221;, der &#8220;Letzten Beitr&auml;ge&#8221;, der Linkliste etc. in der Sidebar von WordPress anders gestalten mag, verzweifelt sehr oft an der verschachtelten Liste des Default Themes von Kubrick, die in fast allen Themes übernommen wird. </p>
<p> Vor allem, weil manche Teile in einer verschachtelten ungeordneten Liste sind manche<span id="more-126"></span> nicht.</p>
<p>Ich beschreibe hier nur, <ins>wie man sich diese verschachtelte ungeordnete Liste der Sidebar so aufbereiten kann, dass man 1. den überblick beh&auml;lt und 2. wirklich viele Gestaltungsmöglichkeiten hat</ins>. Wie man diese Listen dann gestalten kann ist eine andere Sache. </p>
<p>So sieht eine korrekt verschachtelte <strong>ungeordnete Liste</strong> aus:<br />
</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span> 
       <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
             <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
                     <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
                     <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></pre></div></div>

<p>Nach einem ul MUSS ein li kommen und in dieses li darf man wieder HTML Tags einbauen, oder man kann auch gleich lostippen.  Jedem ul und li kann man eine id oder eine class zuweisen, dies macht die Gestaltungsmöglichkeiten fast unendlich.</p>
<p> h2 wird meist für die Titeln, überschriften verwendet:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span> 
       <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;&lt;</span>h2<span style="color: #339933;">&gt;</span>Blogroll<span style="color: #339933;">&lt;/</span>h2<span style="color: #339933;">&gt;</span>
             <span style="color: #339933;">&lt;</span>ul<span style="color: #339933;">&gt;</span>
                     <span style="color: #339933;">&lt;</span>li<span style="color: #339933;">&gt;</span>
                     <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
            <span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span>
      <span style="color: #339933;">&lt;/</span>li<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;/</span>ul<span style="color: #339933;">&gt;</span></pre></div></div>

<p>In der Sidebar des Default Themes Kubrick wird ganz oben, gleich nach dem ersten div der erste ul Tag (das erste Element) geöffnet und unten geschlossen. Und genau dies führt zum Chaos, denn manchmal mag man etwas nur anzeigen lassen, wenn auf eine Kategorie geklickt wurde und schon stimmt das Design nicht mehr und der Code wird invalid, weil etwas fehlt.  </p>
<p>Hier der <strong>Original Ausschnitt aus dem Theme Kubrick</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	&lt;div id=&quot;sidebar&quot;&gt;
		&lt;ul&gt;
&nbsp;
			&lt;li&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>
			&lt;/li&gt;
&nbsp;
			&lt;!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
			&lt;li&gt;&lt;h2&gt;Author&lt;/h2&gt;
			&lt;p&gt;A little something about you, the author. Nothing lengthy, just an overview.&lt;/p&gt;
			&lt;/li&gt;
			--&gt;</pre></div></div>

<p>Es ist erkennbar, dass die Suchfunktion nur in einer einfachen ungeordneten Liste steht, die am Ende der Suchfunktion NICHT geschlossen wurde.<br />
Wenn man jetzt diese Liste gleich schlie&#223;t und immer nur dann öffnet, wenn man sie wieder braucht erleichtert dies die Arbeit und den überblick.</p>
<p>1..Abschnitt einfache ungeordnete Liste:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">	&lt;div id=&quot;sidebar&quot;&gt;
		&lt;ul&gt;
&nbsp;
			&lt;li&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>
			&lt;/li&gt;
              &lt;/ul&gt;
			&lt;!-- Author information is disabled per default. Uncomment and fill in your details if you want to use it.
			&lt;ul&gt;&lt;li&gt;&lt;h2&gt;Author&lt;/h2&gt;
			&lt;p&gt;A little something about you, the author. Nothing lengthy, just an overview.&lt;/p&gt;
			&lt;/li&gt;&lt;/ul&gt;
			--&gt;</pre></div></div>

<p>Wenn Du beide Codeteile vergleichst, erkennst Du wo ich überall die Liste geschlossen habe und wo ich sie wieder öffnete.</p>
<blockquote><p>
So gehe ich jetzt Abschnitt für Abschnitt diese Sidebar durch, der Code spricht für sich, das Vergleichen kann ich Dir nicht abnehmen, da Deine Sidebar sicher anders aussieht. Doch das System ist erkennbar. Viel Spa&#223;.</p>
</blockquote>
<p>2..   Abschnitt einfache ungeordnete Liste:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
&nbsp;
                 &lt;li&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is a 404 page */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_404<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>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is a category archive */</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span>is_category<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;p&gt;You are currently browsing the archives for the <span style="color: #000000; font-weight: bold;">&lt;?php</span> single_cat_title<span style="color: #009900;">&#40;</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> category.&lt;/p&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_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;p&gt;You are currently browsing the &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;">'siteurl'</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> <span style="color: #b1b100;">echo</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; weblog archives
			for the day <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: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>.&lt;/p&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;p&gt;You are currently browsing the &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;">'siteurl'</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> <span style="color: #b1b100;">echo</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; weblog archives
			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;/p&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;p&gt;You are currently browsing the &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;">'siteurl'</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> <span style="color: #b1b100;">echo</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; weblog archives
			for the year <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;/p&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_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;p&gt;You have searched the &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;">'siteurl'</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> <span style="color: #b1b100;">echo</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; weblog archives
			for &lt;strong&gt;'<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> wp_specialchars<span style="color: #009900;">&#40;</span><span style="color: #000088;">$s</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>'&lt;/strong&gt;. If you are unable to find anything in these search results, you can try one of these links.&lt;/p&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><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;p&gt;You are currently browsing the &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;">'siteurl'</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> <span style="color: #b1b100;">echo</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; weblog archives.&lt;/p&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;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>3..   Abschnitt einfache ungeordnete Liste:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
       	<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&lt;h2&gt;Pages&lt;/h2&gt;'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/ul&gt;</pre></div></div>

<p>4..  Abschnitt verschachtelte ungeordnete Liste:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
	&lt;li&gt;&lt;h2&gt;Archives&lt;/h2&gt;
				&lt;ul&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=monthly'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				&lt;/ul&gt;
			&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>5..     Abschnitt einfache ungeordnete Liste in einer if Abfrage:</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;">/* wenn das die Hauptseite ist */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<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;ul&gt;
&nbsp;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=year'</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: #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>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'type=monthly'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;/ul&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></pre></div></div>

<p>6..           Abschnitt verschachtelte ungeordnete Liste:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
			&lt;li&gt;&lt;h2&gt;Categories&lt;/h2&gt;
				&lt;ul&gt;
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_cats<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sort_column=name&amp;optioncount=1&amp;hierarchical=0'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
				&lt;/ul&gt;
			&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>

<p>7..      Abschnitt verschachtelte ungeordnete Liste in einer if Abfrage:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">/* If this is the frontpage */</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<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>				
				<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_links_list<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;li&gt;&lt;h2&gt;Meta&lt;/h2&gt;
				&lt;ul&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_register<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;li&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_loginout<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;/li&gt;
					&lt;li&gt;Valid &lt;abbr title=&quot;eXtensible HyperText Markup Language&quot;&gt;XHTML&lt;/abbr&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://gmpg.org/xfn/&quot;&gt;&lt;abbr title=&quot;XHTML Friends Network&quot;&gt;XFN&lt;/abbr&gt;&lt;/a&gt;&lt;/li&gt;
					&lt;li&gt;&lt;a href=&quot;http://wordpress.org/&quot; title=&quot;Powered by WordPress, state-of-the-art semantic personal publishing platform.&quot;&gt;WordPress&lt;/a&gt;&lt;/li&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_meta<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;/ul&gt;
				&lt;/li&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;/ul&gt;&lt;/div&gt;&lt;!--sidebar end--&gt;</pre></div></div>

<div class="sign">Listen orden und schlichten obwohl der Fachausdruck ungeordnete Liste hei&#223;t. <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/verschachtelte-listen-und-die-sidebar-in-wp-126/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/verschachtelte-listen-und-die-sidebar-in-wp-126/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Links mit title Angabe</title>
		<link>http://www.texto.de/links-mit-title-angabe-92/</link>
		<comments>http://www.texto.de/links-mit-title-angabe-92/#comments</comments>
		<pubDate>Thu, 06 Oct 2005 15:05:11 +0000</pubDate>
		<dc:creator>texto</dc:creator>
				<category><![CDATA[Tipps und Tricks]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[sidebar]]></category>
		<category><![CDATA[WebDesign]]></category>

		<guid isPermaLink="false">http://www.texto.de/?p=92</guid>
		<description><![CDATA[Sehr viele Links in WordPress sind in den PHP Dateien ohne den (X)HTML title Tag angegeben. Title Tag ist benutzerfreundlich also usability.]]></description>
			<content:encoded><![CDATA[<p>Sehr viele Links in WordPress sind in den PHP Dateien ohne den (X)HTML title Attribut angegeben.<br /> Mich persönlich stört dies, wenn ich über einen Link mit der Maus fahre und nicht wei&#223; wohin mich der führt. Völlig unabh&auml;ngig davon, dass es nicht korrekt ist und schon gar nicht <a href="http://www.webdesign-in.de/mts/barrierefreies-webdesign/" title="Externer Link:webdesign barrierefrei">barrierefrei</a>. So begann ich in den diversen PHP Dateien von WordPress zu suchen und wurde erstmal in der <strong>template &#8211; functions &#8211; links.php</strong> im Ordner <strong>wp &#8211; includes</strong> fündig.<br />
Eine wichtige und sehr sinnvolle Regel lautet:</p>
<blockquote><p>Ver&auml;nderst Du Funktionsdateien, dann dokumentiere dies. <br />Beim n&auml;chsten Update überschreibst Du Deine Ver&auml;nderungen und suchst dann wieder wie, was und wo es geht.</p>
</blockquote>
<p>Diese Regel hat mir schon viel Zeit erspart und so nutze ich diesen Artikel, <strong>um die Ver&auml;nderungen</strong> für mich <strong> zu dokumentieren</strong> und Dir als Tipps und Tricks zur Verfügung zu stellen. </p>
<p>Ich habe einen Editor, der mir eine Zeilennummerierung <span id="more-92"></span> anzeigt, die Zahl in der Klammer ist immer die Zeilenangabe.</p>
<p><strong> template &#8211; functions &#8211; links.php</strong><br />
</p>
<dl style="width:350px;">
<dt><ins>1. Navigation auf der Startseite oben.</ins><br />Als &#8220;title&#8221; wollte ich: 1 Seite zurück und 1 Seite nach vor.<small>Wie am Bild zu sehen ist.</small> </dt>
<dd>
<img src="/wp-images/zurueck_nachvor.jpg" alt="Title Attribut bei der Seitennavigation." height="84px" width="330px" /></dd>
</dl>
<p>Dafür fügte ich bei : <strong> function next _ posts _ link</strong> &#8211; vor &#8220;preg _ replace&#8221; &#8211;  folgendes ein:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>Zeile<span style="color: #339933;">:</span> <span style="color: #cc66cc;">445</span><span style="color: #009900;">&#41;</span>
 <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&quot; title=&quot;1 Seite zurück &quot;&gt;'</span><span style="color: #339933;">.</span> preg usw<span style="color: #339933;">.</span></pre></div></div>

<p>und bei : <strong>function previous _ posts _ link</strong> &#8211; ebenfalls vor &#8220;preg _ replace&#8221;:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>Zeile<span style="color: #339933;">:</span><span style="color: #cc66cc;">465</span><span style="color: #009900;">&#41;</span>
        <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&quot; title=&quot;1 Seite nach vor&quot;&gt;'</span><span style="color: #339933;">.</span> preg usw<span style="color: #339933;">.</span></pre></div></div>

<p></p>
<dl style="width:350px;">
<dt><ins>2. Navigation bei der Gesamtartikelansicht &#8211; also single.php  &#8211; oben.</ins><br />Als &#8220;title&#8221; wollte ich: zum Artikel: und die Anzeige des Titels.<small>Wie am Bild zu sehen ist.</small> </dt>
<dd>
<img src="/wp-images/zurueck_nachvor_single.jpg" alt="Title Attribut bei der Seitennavigation." height="84px" width="330px" /></dd>
</dl>
<p>Dafür &auml;nderte ich die: <strong>function previous _ post _ link</strong>:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"> <span style="color: #009900;">&#40;</span>Zeile<span style="color: #339933;">:</span><span style="color: #cc66cc;">275</span><span style="color: #009900;">&#41;</span>
 <span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<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: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; title=&quot;zum Artikel: '</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">;</span></pre></div></div>

<p>und die: <strong>function next _ post _ link</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>Zeile<span style="color: #339933;">:</span><span style="color: #cc66cc;">295</span><span style="color: #009900;">&#41;</span>
<span style="color: #000088;">$string</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'&lt;a href=&quot;'</span><span style="color: #339933;">.</span>get_permalink<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: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; title=&quot;zum Artikel:'</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;'</span><span style="color: #339933;">;</span></pre></div></div>

<p></p>
<p><ins>3. Der &#8220;Edit&#8221; Link, den man als Admin sieht, der hatte auch keinen title Attribut:</ins><br />
<strong>function edit _ comment _ link</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>Zeile<span style="color: #339933;">:</span><span style="color: #cc66cc;">195</span><span style="color: #009900;">&#41;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$before</span> &lt;a title='Edit' href='http://www.texto.de/'&gt;<span style="color: #006699; font-weight: bold;">$link</span>&lt;/a&gt; <span style="color: #006699; font-weight: bold;">$after</span>&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>und <strong>function edit _ post _ link</strong>.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>Zeile<span style="color: #339933;">:</span><span style="color: #cc66cc;">182</span><span style="color: #009900;">&#41;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;<span style="color: #006699; font-weight: bold;">$before</span> &lt;a title=<span style="color: #000099; font-weight: bold;">\&quot;</span>Edit<span style="color: #000099; font-weight: bold;">\&quot;</span> href=<span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #006699; font-weight: bold;">$location</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&gt;<span style="color: #006699; font-weight: bold;">$link</span>&lt;/a&gt; <span style="color: #006699; font-weight: bold;">$after</span>&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p></p>
<p><ins>4. Weiters &auml;nderte ich noch folgende Funktion:</ins></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #009900;">&#40;</span>Zeile<span style="color: #339933;">:</span><span style="color: #cc66cc;">11</span><span style="color: #009900;">&#41;</span>
<span style="color: #000000; font-weight: bold;">function</span> permalink_anchor<span style="color: #009900;">&#40;</span><span style="color: #000088;">$mode</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'id'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">global</span> <span style="color: #000088;">$id</span><span style="color: #339933;">,</span> <span style="color: #000088;">$post</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">switch</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">strtolower</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$mode</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'title'</span><span style="color: #339933;">:</span>
            <span style="color: #000088;">$title</span> <span style="color: #339933;">=</span> sanitize_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_title</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: #000088;">$id</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a title=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; id=&quot;'</span><span style="color: #339933;">.</span><span style="color: #000088;">$title</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
        <span style="color: #b1b100;">case</span> <span style="color: #0000ff;">'id'</span><span style="color: #339933;">:</span>
        <span style="color: #b1b100;">default</span><span style="color: #339933;">:</span>
            <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">'&lt;a title=&quot;post-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot; id=&quot;post-'</span><span style="color: #339933;">.</span><span style="color: #000088;">$id</span><span style="color: #339933;">.</span><span style="color: #0000ff;">'&quot;&gt;&lt;/a&gt;'</span><span style="color: #339933;">;</span>
            <span style="color: #b1b100;">break</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>Au&#223;erdem bin ich alle Templates des Themes durchgegangen und fügte alle fehlenden &#8220;title&#8221; Tags hinzu <small>, die ich fand</small>. <img src='http://www.texto.de/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<div class="sign">&#8230; Navigation dient der Orientierung..</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/links-mit-title-angabe-92/" >texto.de</a> (Digital Fingerprint:  textoakamts[texto.de])</small><hr />]]></content:encoded>
			<wfw:commentRss>http://www.texto.de/links-mit-title-angabe-92/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

