<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Expand/Hide accordion feature explained</title>
	<atom:link href="http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/feed/" rel="self" type="application/rss+xml" />
	<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/</link>
	<description>Website of Tobias Bäthge.</description>
	<lastBuildDate>Tue, 07 Sep 2010 12:36:31 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: Tobias</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-3235</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Sun, 22 Aug 2010 15:25:50 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-3235</guid>
		<description>Hi Deanna,

thanks for your comment.

When I tried yesterday, the expand/hide feature worked (except for the showing of the actual text &quot;expand&quot;/&quot;hide&quot;). Today it no longer works, so I assume that you have added some other JavaScript meanwhile?

One first fix would be the positioning of the labels. For that, please add the following to the CSS code:
&lt;pre lang=&quot;css&quot;&gt;
#content .post .post-entry {
  position: relative;
}
&lt;/pre&gt;

Regards,
Tobias</description>
		<content:encoded><![CDATA[<p>Hi Deanna,</p>
<p>thanks for your comment.</p>
<p>When I tried yesterday, the expand/hide feature worked (except for the showing of the actual text &#8220;expand&#8221;/&#8221;hide&#8221;). Today it no longer works, so I assume that you have added some other JavaScript meanwhile?</p>
<p>One first fix would be the positioning of the labels. For that, please add the following to the CSS code:</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#content</span> <span style="color: #6666ff;">.post</span> <span style="color: #6666ff;">.post-entry</span> <span style="color: #00AA00;">&#123;</span>
  <span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Regards,<br />
Tobias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deanna</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-3228</link>
		<dc:creator>Deanna</dc:creator>
		<pubDate>Fri, 20 Aug 2010 23:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-3228</guid>
		<description>Hello Tobias,

I am trying to use this tutorial for the accordion expand/hide feature on this page of my site: http://deannasquest.com/resources/

I have added the first two lines of script into both the end of the post as well as in the page.php file. 

I created the page.js file using the script listed.

And I added the CSS script to my style.css file. 

I am not getting the expand/hide buttons or the expanding function. I am new to JavaScript and fairly new to CSS, PHP, and WordPress, so it is extremely likely that I am doing something very wrong. If you could take a peek at it, to see if you can figure out what I&#039;m doing wrong. 

BTW, I am using WordPress 3.0.1 and the latest versions of both Firefox and Safari on OS X.

Thank you so much for your help.

Deanna</description>
		<content:encoded><![CDATA[<p>Hello Tobias,</p>
<p>I am trying to use this tutorial for the accordion expand/hide feature on this page of my site: <a href="http://deannasquest.com/resources/" rel="external">http://deannasquest.com/resources/</a></p>
<p>I have added the first two lines of script into both the end of the post as well as in the page.php file. </p>
<p>I created the page.js file using the script listed.</p>
<p>And I added the CSS script to my style.css file. </p>
<p>I am not getting the expand/hide buttons or the expanding function. I am new to JavaScript and fairly new to CSS, PHP, and WordPress, so it is extremely likely that I am doing something very wrong. If you could take a peek at it, to see if you can figure out what I&#8217;m doing wrong. </p>
<p>BTW, I am using WordPress 3.0.1 and the latest versions of both Firefox and Safari on OS X.</p>
<p>Thank you so much for your help.</p>
<p>Deanna</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yoavadler</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-3113</link>
		<dc:creator>yoavadler</dc:creator>
		<pubDate>Tue, 03 Aug 2010 06:43:53 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-3113</guid>
		<description>Cool. Thanks.</description>
		<content:encoded><![CDATA[<p>Cool. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose Miguel</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-3065</link>
		<dc:creator>Jose Miguel</dc:creator>
		<pubDate>Mon, 14 Jun 2010 05:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-3065</guid>
		<description>Thanks a lot for this tutorial!</description>
		<content:encoded><![CDATA[<p>Thanks a lot for this tutorial!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-849</link>
		<dc:creator>Zac</dc:creator>
		<pubDate>Thu, 24 Sep 2009 16:40:43 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-849</guid>
		<description>Grandios,

du bist der Beste :-)

Sag mal, programmierst du auch gegen Auftrag? Du scheinst es ja richtig gut drauf zu haben.</description>
		<content:encoded><![CDATA[<p>Grandios,</p>
<p>du bist der Beste :-)</p>
<p>Sag mal, programmierst du auch gegen Auftrag? Du scheinst es ja richtig gut drauf zu haben.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-847</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Thu, 24 Sep 2009 16:16:58 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-847</guid>
		<description>Hi,

ja, das geht. Ich konnte das leider nicht mit in den Artikel schreiben, weil es teilweise stark von der Seite/dem Theme abhängt. Bei dir könntest du folgenden CSS-Code (statt des jetzigen) probieren:
&lt;code&gt;/*=== Aufklappen unter Sprachenliste ===*/
h3 {padding-top:10px; cursor:pointer; position:relative;}
h3 span {display:none; position:absolute; left: 375px; font-size: 12px; color: gray;}
h3.slidehidden .expand {display:inline;}
h3.slidehidden .hide {display:none;}
h3.slidevisible .expand {display:none;}
h3.slidevisible .hide {display:inline;}&lt;/code&gt;

Und natürlich kannst du Expire und Hide umbenennen. Die ensprechende Stelle findest du in der JavaScript-Datei page.js. Dort dürfen jedoch nicht die Klassennamen umbenannt werden.

Gruß
Tobias</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>ja, das geht. Ich konnte das leider nicht mit in den Artikel schreiben, weil es teilweise stark von der Seite/dem Theme abhängt. Bei dir könntest du folgenden CSS-Code (statt des jetzigen) probieren:<br />
<code>/*=== Aufklappen unter Sprachenliste ===*/<br />
h3 {padding-top:10px; cursor:pointer; position:relative;}<br />
h3 span {display:none; position:absolute; left: 375px; font-size: 12px; color: gray;}<br />
h3.slidehidden .expand {display:inline;}<br />
h3.slidehidden .hide {display:none;}<br />
h3.slidevisible .expand {display:none;}<br />
h3.slidevisible .hide {display:inline;}</code></p>
<p>Und natürlich kannst du Expire und Hide umbenennen. Die ensprechende Stelle findest du in der JavaScript-Datei page.js. Dort dürfen jedoch nicht die Klassennamen umbenannt werden.</p>
<p>Gruß<br />
Tobias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-846</link>
		<dc:creator>Zac</dc:creator>
		<pubDate>Thu, 24 Sep 2009 15:46:11 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-846</guid>
		<description>Also, es klappt soweit jetzt alles, nur ich würde es gern so haben, dass alle Expire bzw. Hide direkt untereinander stehen. Kann man das auch irgendwie hinbekommen?

Und noch eine zweite Frage: Kann ich das Expire und Hide einfach in Aufklappen und Verstecken umbenennen oder sind das Variablen, die nicht verändert werden dürfen?</description>
		<content:encoded><![CDATA[<p>Also, es klappt soweit jetzt alles, nur ich würde es gern so haben, dass alle Expire bzw. Hide direkt untereinander stehen. Kann man das auch irgendwie hinbekommen?</p>
<p>Und noch eine zweite Frage: Kann ich das Expire und Hide einfach in Aufklappen und Verstecken umbenennen oder sind das Variablen, die nicht verändert werden dürfen?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-843</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Thu, 24 Sep 2009 13:21:02 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-843</guid>
		<description>Hi,

prima, dass es jetzt klappt. Der Rest sind nur noch kleine CSS-Geschichten. Um &quot;Expand&quot; und &quot;Hide&quot; nach innen zu holen, muss einfach beim CSS der Klasse &quot;.entry&quot; noch ein &quot;position:relative;&quot; hinzugefügt werden.

Der blaue Rahmen in meinem Beispiel ist eigentlich nur zur optischen Abtrennung gedacht gewesen :-) Aber wenn du den noch möchtest, musst du einfach den jetzigen HTML-Code noch in ein neues &lt;code&gt;div&lt;/code&gt; packen, welches per CSS den Rahmen bekommt.

Gruß
Tobias</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>prima, dass es jetzt klappt. Der Rest sind nur noch kleine CSS-Geschichten. Um &#8220;Expand&#8221; und &#8220;Hide&#8221; nach innen zu holen, muss einfach beim CSS der Klasse &#8220;.entry&#8221; noch ein &#8220;position:relative;&#8221; hinzugefügt werden.</p>
<p>Der blaue Rahmen in meinem Beispiel ist eigentlich nur zur optischen Abtrennung gedacht gewesen :-) Aber wenn du den noch möchtest, musst du einfach den jetzigen HTML-Code noch in ein neues <code>div</code> packen, welches per CSS den Rahmen bekommt.</p>
<p>Gruß<br />
Tobias</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-841</link>
		<dc:creator>Zac</dc:creator>
		<pubDate>Thu, 24 Sep 2009 12:49:12 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-841</guid>
		<description>Ich habe mal eine neue Seite dafür angelegt, es funktioniert jetzt. Nur steht Expand und Hide ganz rechts außen und ich habe nicht den Rahmen, wie in deinem Beispiel. Wüsste aber nicht, woran es liegen kann.

Danke für deine Hilfe</description>
		<content:encoded><![CDATA[<p>Ich habe mal eine neue Seite dafür angelegt, es funktioniert jetzt. Nur steht Expand und Hide ganz rechts außen und ich habe nicht den Rahmen, wie in deinem Beispiel. Wüsste aber nicht, woran es liegen kann.</p>
<p>Danke für deine Hilfe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tobias</title>
		<link>http://tobias.baethge.com/2009/07/expandhide-accordion-feature-explained/comment-page-1/#comment-840</link>
		<dc:creator>Tobias</dc:creator>
		<pubDate>Thu, 24 Sep 2009 11:30:38 +0000</pubDate>
		<guid isPermaLink="false">http://tobias.baethge.com/?p=400#comment-840</guid>
		<description>Hi Zac,

bei dir sieht es im Quelltext so aus, als ob das &lt;code&gt;h9&lt;/code&gt; noch innerhalb eines &lt;code&gt;p&lt;/code&gt; steht. Vermutlich liegt das daran, dass bei dir das &lt;code&gt;h9&lt;/code&gt; durch eine Leerzeile vom &lt;code&gt;div&lt;/code&gt; getrennt ist. WordPress macht daraus dann ein &lt;code&gt;p&lt;/code&gt;.
Außerdem muss das CSS natürlich übernommen werden.

Könntest du das bitte nochmal prüfen?

Gruß
Tobias</description>
		<content:encoded><![CDATA[<p>Hi Zac,</p>
<p>bei dir sieht es im Quelltext so aus, als ob das <code>h9</code> noch innerhalb eines <code>p</code> steht. Vermutlich liegt das daran, dass bei dir das <code>h9</code> durch eine Leerzeile vom <code>div</code> getrennt ist. WordPress macht daraus dann ein <code>p</code>.<br />
Außerdem muss das CSS natürlich übernommen werden.</p>
<p>Könntest du das bitte nochmal prüfen?</p>
<p>Gruß<br />
Tobias</p>
]]></content:encoded>
	</item>
</channel>
</rss>
