<?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>Hiranthi&#039;s weblog &#187; css - Hiranthi&#039;s weblog - Weblog van een ondernemende vrouw</title> <atom:link href="http://hiranthi.nl/tag/css/feed/" rel="self" type="application/rss+xml" /><link>http://hiranthi.nl</link> <description>Weblog van een ondernemende vrouw</description> <lastBuildDate>Wed, 02 May 2012 09:00:06 +0000</lastBuildDate> <language>nl</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.2</generator> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>Dropdown navigatie 2.0 in WordPress</title><link>http://hiranthi.nl/tutorials/dropdown-navigatie-2-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dropdown-navigatie-2-wordpress</link> <comments>http://hiranthi.nl/tutorials/dropdown-navigatie-2-wordpress/#comments</comments> <pubDate>Mon, 14 Feb 2011 13:00:48 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[big menu]]></category> <category><![CDATA[css]]></category> <category><![CDATA[dropdown]]></category> <category><![CDATA[navigatie]]></category> <category><![CDATA[walker]]></category> <category><![CDATA[wp_nav_menu]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1984</guid> <description><![CDATA[Sander vroeg me in mijn post of er ook ergens een tutorial was voor zo&#8217;n soort menu in WordPress. Ik weet dat Remkus ermee bezig is, maar heb er nog geen tutorial over gezien. Omdat ik zelf al een post had geschreven over de navigatie en HTML/CSS leek het me wel handig om ook een [...]]]></description> <content:encoded><![CDATA[<p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/1522.html#comment-404" class="broken_link">Sander</a> vroeg me in mijn <a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/">Dropdown navigatie 2.0</a> post of er ook ergens een tutorial was voor zo&#8217;n soort menu in WordPress. Ik weet dat Remkus ermee bezig is, maar heb er nog geen tutorial over gezien.<span
id="more-1984"></span><br
/> Omdat ik zelf al een post had geschreven over de navigatie en HTML/CSS leek het me wel handig om ook een vervolg erop te schrijven: hoe dit toe te voegen aan WordPress <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><h2>Type menu</h2><p>Het soort menu dat we gaan gebruiken is de <code>[wp]wp_nav_menu[/wp]</code>, met andere woorden: het type menu dat je makkelijk kunt aanmaken/aanpassen via Weergave -&amp;gt; Menu&#8217;s (mits je theme dit ondersteund).</p><h2>Menu aanmaken</h2><p>Als je er zeker van bent dat je theme deze menu&#8217;s ondersteund kun je een nieuw menu aanmaken. Als je al een menu hebt kun je die ook gebruiken natuurlijk.</p><p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/files/2011/02/menu-toevoegen1.png" class="lightbox" ><img
class="aligncenter size-large wp-image-2059" src="/files/2011/02/menu-toevoegen1-618x200.png" alt="" width="618" height="200" /></a></p><p>Als je het menu hebt aangemaakt moet deze gekoppeld worden aan een thema locatie. Ik gebruik de theme Twenty Ten op mijn dev-installatie, deze heeft maar 1 thema-locatie.</p><p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/files/2011/02/thema-locatie1.png" class="lightbox" ><img
class="aligncenter size-large wp-image-2061" src="/files/2011/02/thema-locatie1-618x200.png" alt="" width="618" height="200" /></a></p><h3>Menu items aanmaken</h3><p>Als het menu is opgeslagen en gekoppeld aan een thema locatie kunnen we beginnen met items toevoegen aan het menu. Ik heb in dit geval de pagina&#8217;s About, Shop, Cart, Checkout en Your Account toegevoegd.</p><h3>Schermopties aanpassen</h3><p>Wat je zo op het eerste gezicht niet ziet is dat de menu mogelijkheden in WordPress nog leuker zijn dan ze zo al lijken <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> Als je bovenin op schermopties klikt krijg je onderstaande onderdelen te zien. Vink CSS classes en Beschrijving aan.</p><p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/files/2011/02/schermopties1.png" class="lightbox" ><img
class="aligncenter size-large wp-image-2060" src="/files/2011/02/schermopties1-618x200.png" alt="" width="618" height="200" /></a></p><p>Na het aanvinken van deze twee eigenschappen krijg je twee extra invulvelden bij de menu-items (klik op een item om deze uit te klappen):</p><p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/files/2011/02/menu-item.png" class="lightbox" ><img
class="aligncenter size-large wp-image-2058" src="/files/2011/02/menu-item1-618x200.png" alt="" width="618" height="200" /></a></p><p>Je kunt nu dus een CSS class en beschrijving voor dat specifieke menu-item opgeven. Hier onder kun je zien wat ik heb ingevuld voor het menu-item Cart:</p><p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/files/2011/02/cart.png" class="lightbox" ><img
class="aligncenter size-large wp-image-2057" src="/files/2011/02/cart1-618x200.png" alt="" width="618" height="200" /></a></p><p>Vul de velden in voor alle menu-items (waar nodig/gewenst).</p><h2>Weergave menu</h2><p>Op dit moment hebben we een standaard uitklapmenu, mits de CSS in je theme dit ondersteund. Er is nog niks bijzonders aan en de extra informatie is nog niet te zien.</p><p>Om die info weer te geven maken we gebruik van de <code>$walker</code> die <code>[wp]wp_nav_menu[/wp]</code> heeft.</p><p>Open je <code>header.php</code> en zoek de code waarmee het menu wordt toegevoegd. In TwentyTen is dat de volgende regel:</p><pre lang="php">&lt;?php wp_nav_menu( array( &#039;container_class&#039; =&gt; &#039;menu-header&#039;, &#039;theme_location&#039; =&gt; &#039;primary&#039; ) ); ?&gt;</pre><p>Vervang dat met de volgende regel:</p><pre><pre lang="php">&lt;?php
    $walker = new My_Walker_Nav_Menu;
    wp_nav_menu( array( &#039;container_class&#039; =&gt; &#039;menu-header&#039;, &#039;theme_location&#039; =&gt; &#039;primary&#039;, &#039;walker&#039; =&gt; $walker ) );
?&gt;</pre></pre><p><em>Als je geen custom theme gebruikt/aan het maken bent kun je het beste gebruik maken van een <a
rel="nofollow" target="_blank" href="http://wpdimensie.nl/tips-en-trucs/twenty-ten-aanpassen-op-de-juiste-manier.htm">child theme</a>, maar daar ga ik nu verder niet op in.</em></p><h3>De walker aanmaken</h3><p>Om de walker te kunnen gebruiken voor het customizen van de menu-weergave moeten we deze ook aanmaken natuurlijk. Voeg de volgende code toe aan de <code>functions.php</code> van je theme (heb je die niet, maak het bestand dan aan):</p><pre><pre lang="php">&lt;?php
class My_Walker_Nav_Menu extends Walker_Nav_Menu
{
    function end_el(&amp;#038;$output, $item, $depth)
    {
    $output .= &quot;&lt;/li&gt;

\n&quot;;
    } // end end_el

    function start_lvl(&amp;#038;$output, $depth)
    {
        $indent = str_repeat(&quot;t&quot;, $depth);

        $level = $depth+1;
        $output .= &quot;n$indent
&lt;ul class=&quot;children level-$level&quot;&gt;n&quot;; // add level-X as a class for complex CSS possibilities
    } // end start_lvl

    function end_lvl(&amp;#038;$output, $depth)
    {
        $indent = str_repeat(&quot;t&quot;, $depth);
        $output .= &quot;$indent&lt;/ul&gt;

\n&quot;;
    } // end end_lvl

    function start_el(&amp;#038;$output, $item, $depth, $args)
    {
        global $wp_query;

        $indent = ( $depth ) ? str_repeat( &quot;t&quot;, $depth ) : &#039;&#039;;

        $class_names = $value = &#039;&#039;;

        $classes = empty( $item-&gt;classes ) ? array() : (array) $item-&gt;classes;
        $classes[] = &#039;menu-item-&#039; . $item-&gt;ID;

        $class_names = join( &#039; &#039;, apply_filters( &#039;nav_menu_css_class&#039;, array_filter( $classes ), $item ) );
        $class_names = &#039; class=&quot;&#039; . esc_attr( $class_names ) . &#039;&quot;&#039;;

        $id = apply_filters( &#039;nav_menu_item_id&#039;, &#039;menu-item-&#039;. $item-&gt;ID, $item, $args );
        $id = strlen( $id ) ? &#039; id=&quot;&#039; . esc_attr( $id ) . &#039;&quot;&#039; : &#039;&#039;;

        $output .= $indent . &#039;
&lt;li&#039; . $id . $value . $class_names .&#039;&gt;&#039;;

        $attributes  = ! empty( $item-&gt;attr_title ) ? &#039; title=&quot;&#039;  . esc_attr( $item-&gt;attr_title ) .&#039;&quot;&#039; : &#039;&#039;;
        $attributes .= ! empty( $item-&gt;target )     ? &#039; target=&quot;&#039; . esc_attr( $item-&gt;target     ) .&#039;&quot;&#039; : &#039;&#039;;
        $attributes .= ! empty( $item-&gt;xfn )        ? &#039; rel=&quot;&#039;    . esc_attr( $item-&gt;xfn        ) .&#039;&quot;&#039; : &#039;&#039;;
        $attributes .= ! empty( $item-&gt;url )        ? &#039; href=&quot;&#039;   . esc_attr( $item-&gt;url        ) .&#039;&quot;&#039; : &#039;&#039;;

        $item_output = $args-&gt;before;
        $item_output .= &#039;&lt;a&#039;. $attributes .&#039;&gt;&#039;;
        $item_output .= $args-&gt;link_before . apply_filters( &#039;the_title&#039;, $item-&gt;title, $item-&gt;ID ) . $args-&gt;link_after;
        $item_output .= &#039;&lt;/a&gt;&#039;;

        // only display the description if we&#039;re not in the toplevel
        if ( $depth != 0 )
        {
          $item_output .= &#039;
&lt;div class=&quot;desc&quot;&gt;&#039; . $item-&gt;description . &#039;&lt;/div&gt;

&#039;;
        }

        $item_output .= $args-&gt;after;

        $output .= apply_filters( &#039;walker_nav_menu_start_el&#039;, $item_output, $item, $depth, $args );
    } // end start_el
} // end class My_Walker_Nav_Menu
?&gt;</pre></pre><p>Er is niet zo heel veel anders, ten opzichte van de default walker. Ik heb twee dingen toegevoegd:</p><pre><pre lang="php">&lt;?php
        $output .= &quot;n$indent
&lt;ul class=&quot;children level-$level&quot;&gt;n&quot;; // add level-X as a class for complex CSS possibilities
?&gt;</pre></pre><p><em>level-X class toegevoegd, waarbij X het niveau is van het submenu, dit geeft je meer mogelijkheden met CSS.</em></p><pre><pre lang="php">&lt;?php
        // only display the description if we&#039;re not in the toplevel
        if ( $depth != 0 )
        {
          $item_output .= &#039;
&lt;div class=&quot;desc&quot;&gt;&#039; . $item-&gt;description . &#039;&lt;/div&gt;

&#039;;
        }
?&gt;</pre></pre><p><em>De beschrijving van het item alleen weergeven als we niet in het hoogste niveau van het menu zitten.</em></p><h2>Stijling</h2><p>Als je nu de site ververst zul je zien dat het menu er nog niet helemaal geweldig uitziet, dit gaan we aanpassen met CSS. Onderstaande CSS heb ik gekopieerd uit mijn <a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/">Dropdown navigatie 2.0</a> tutorial.</p><pre><pre lang="css">
/* dropdown 2.0 */
ul#menu-2-0-navigatie li:hover { background:url(&#039;arrow-top.png&#039;) 10px 30px no-repeat; }
ul#menu-2-0-navigatie li a { color:#bbb; font-weight:bold; }
/* subitems - default */
ul#menu-2-0-navigatie li ul { display:none; position:absolute; top:35px; left:0; width:190px; background-color:#fff; border:1px solid #bbb; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; padding:5px; -moz-box-shadow: 0 0 .5em #bbb; -webkit-box-shadow: 0 0 .5em #bbb; box-shadow: 0 0 .5em #bbb; /* &gt;= IE8 */ }
ul#menu-2-0-navigatie li:hover ul { display:block; }
ul#menu-2-0-navigatie li ul li { padding:5px; display: block; line-height:normal; height:auto; border-bottom: 1px dotted #bbb; }
ul#menu-2-0-navigatie li ul li:last-child { border: 0; }
ul#menu-2-0-navigatie li ul li a,
ul#menu-2-0-navigatie li ul li:hover a { display:block; background: none; color: #000; }
ul#menu-2-0-navigatie li ul li a { padding: 5px 0;  }
ul#menu-2-0-navigatie li ul li a:hover { text-decoration:underline; }
ul#menu-2-0-navigatie li ul li .desc { font-style: italic; font-family: serif; }
ul#menu-2-0-navigatie li ul li ul { border:0; position:inherit; top:0; box-shadow:0 0 0; -moz-box-shadow:0 0 0; -webkit-box-shadow:0 0 0; border-radius:0; -moz-border-radius:0; -webkit-border-radius:0; }
</pre></pre><p><em>Bovenstaande CSS is voor het menu in TwentyTen, gebruik jij een ander theme? Pas dan de CSS aan aan de ID/classname van je menu. Gebruik voor zulke specifieke CSS (voor een specifiek item) liever niet de standaard <code>.menu</code> class die WP meegeeft.</em></p><p>Met bovenstaande CSS krijg je het volgende resultaat in TwentyTen, nog steeds een redelijk &#8216;basic&#8217; uitklapmenu:</p><p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/files/2011/02/menu-desc1.png" class="lightbox" ><img
src="/files/2011/02/menu-desc1-618x200.png" alt="" width="618" height="200" class="aligncenter size-large wp-image-2069" /></a></p><h3>Customizen</h3><p>Nu is het tijd om de item-specifieke CSS toe te gaan voegen. In mijn geval gaat het om de items met de volgende classes: <code>.cart</code>, <code>.checkout</code> en <code>orders</code>.</p><pre><pre lang="css">
body ul#menu-2-0-navigatie .cart,
body ul#menu-2-0-navigatie .checkout,
body ul#menu-2-0-navigatie .orders {
  padding-left: 40px;
  min-width: 140px;
  min-height: 32px;
}
ul#menu-2-0-navigatie .cart,
ul#menu-2-0-navigatie .cart:hover { background: url(&#039;images/shopping_cart.png&#039;) 0 7px no-repeat; }
ul#menu-2-0-navigatie .checkout,
ul#menu-2-0-navigatie .checkout:hover { background: url(&#039;images/next.png&#039;) 0 7px no-repeat; }
ul#menu-2-0-navigatie .orders,
ul#menu-2-0-navigatie .orders:hover { background: url(&#039;images/user.png&#039;) 0 7px no-repeat; }

body ul#menu-2-0-navigatie .cart a,
body ul#menu-2-0-navigatie .checkout a,
body ul#menu-2-0-navigatie .orders a {
  width: 145px;
}
</pre></pre><p><a
rel="nofollow" target="_blank" href="http://hiranthi.nl/files/2011/02/menu-styled1.png" class="lightbox" ><img
src="/files/2011/02/menu-styled1-618x200.png" alt="" width="618" height="200" class="aligncenter size-large wp-image-2070" /></a></p><p><em>De icons die ik gebruikt heb komen uit het <a
rel="nofollow" target="_blank" href="http://dryicons.com/free-icons/preview/iconika-red-icons/">Iconika Red</a> pakket van DryIcons.com</em></p><h2>Veel meer mogelijk</h2><p>Er zijn nog veel meer dingen mogelijk met de <code>[wp]wp_nav_menu[/wp]</code> en ook de stijling. Vandaar dat ik besloten heb om hier een serie aan toe te wijden.</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/css-dropdown-navigatie/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/css-dropdown-alleenhtml-285x200.gif" alt="CSS dropdown navigatie" title="CSS dropdown navigatie" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/css-dropdown-navigatie/" rel="bookmark">CSS dropdown navigatie</a></h3><p>Dropdown navigatie is heel erg hip en niet te vergeten: heel erg handig. Je hoeft niet alle pagina's in beeld te hebben, maar wel alle ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/menu-management-wordpress-3/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Menu Management in WordPress 3.0" title="Menu Management in WordPress 3.0" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/menu-management-wordpress-3/" rel="bookmark">Menu Management in WordPress 3.0</a></h3><p>Ik had het al ergens (kan uiteraard de bron niet meer vinden) gelezen: WordPress 3.0 krijgt een Menu Management. Nu had ik daar al een ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/plugin-more-fields/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2009/12/more-fields-551x200.jpg" alt="Plugin: More Fields" title="Plugin: More Fields" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/plugin-more-fields/" rel="bookmark">Plugin: More Fields</a></h3><p>Met de More Fields plugin (plugin website) kun je gemakkelijk blokken aanmaken in je Post/Page editor die gebruik maken van de custom fields in WordPress. ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2-wordpress%2F&amp;t=Dropdown+navigatie+2.0+in+WordPress" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Dropdown+navigatie+2.0+in+WordPress%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1984%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2-wordpress%2F&amp;title=Dropdown+navigatie+2.0+in+WordPress&amp;notes=Sander+vroeg+me+in+mijn++post+of+er+ook+ergens+een+tutorial+was+voor+zo%27n+soort+menu+in+WordPress.+Ik+weet+dat+Remkus+ermee+bezig+is%2C+maar+heb+er+nog+geen+tutorial+over+gezien.%0D%0A+Omdat+ik+zelf+al+een+post+had+geschreven+over+de+navigatie+en+HTML%2FCSS+" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2-wordpress%2F&amp;title=Dropdown+navigatie+2.0+in+WordPress&amp;bodytext=Sander+vroeg+me+in+mijn++post+of+er+ook+ergens+een+tutorial+was+voor+zo%27n+soort+menu+in+WordPress.+Ik+weet+dat+Remkus+ermee+bezig+is%2C+maar+heb+er+nog+geen+tutorial+over+gezien.%0D%0A+Omdat+ik+zelf+al+een+post+had+geschreven+over+de+navigatie+en+HTML%2FCSS+" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2-wordpress%2F&amp;title=Dropdown+navigatie+2.0+in+WordPress" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2-wordpress/" onclick="addBookmark(event);" title="Dropdown navigatie 2.0 in WordPress" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Dropdown navigatie 2.0 in WordPress&amp;body=Sander vroeg me in mijn  post of er ook ergens een tutorial was voor zo'n soort menu in WordPress. Ik weet dat Remkus ermee bezig is, maar heb er nog geen tutorial over gezien.
Omdat ik zelf al een post had geschreven over de navigatie en HTML/CSS  - http://hiranthi.nl/tutorials/dropdown-navigatie-2-wordpress/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/dropdown-navigatie-2-wordpress/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Dropdown navigatie 2.0</title><link>http://hiranthi.nl/tutorials/dropdown-navigatie-2/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dropdown-navigatie-2</link> <comments>http://hiranthi.nl/tutorials/dropdown-navigatie-2/#comments</comments> <pubDate>Tue, 12 Oct 2010 14:00:48 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[css]]></category> <category><![CDATA[CSS3]]></category> <category><![CDATA[dropdown]]></category> <category><![CDATA[html]]></category> <category><![CDATA[menu]]></category> <category><![CDATA[navigatie]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1522</guid> <description><![CDATA[Een tijd geleden heb ik een tutorial geschreven over het maken van een CSS dropdown navigatie. In deze tutorial behandel ik hetzelfde principe, alleen anders uitgewerkt: Dropdown 2.0 Wat ik met Dropdown 2.0 bedoel? Je kent vast die mooie dropdown navigaties wel (zoals op bijvoorbeeld de website van SalesWorks), dat soort dropdowns bedoel ik dus [...]]]></description> <content:encoded><![CDATA[<p>Een tijd geleden heb ik een tutorial geschreven over het maken van een CSS dropdown navigatie. In deze tutorial behandel ik hetzelfde principe, alleen anders uitgewerkt: Dropdown 2.0<br
/> Wat ik met Dropdown 2.0 bedoel? Je kent vast die mooie dropdown navigaties wel (zoals op bijvoorbeeld de website van <a
rel="nofollow" target="_blank" href="http://www.sales-works.nl">SalesWorks</a>), dat soort dropdowns bedoel ik dus <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span
id="more-1522"></span></p><h2>HTML voor de navigatie</h2><p>De HTML voor de navigatie bestaat uit <code>ul&#039;s</code>. Ik laat drie verschillende mogelijkheden zien, dus in de hoofd <code>ul</code> heb ik drie <code>li&#039;s</code>:</p><pre><pre lang="html">
&lt;ul id=&quot;mainnav&quot;&gt;
&lt;li class=&quot;side&quot;&gt;&lt;a href=&quot;#&quot;&gt;Drie sub-blokken naast elkaar&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;h2&gt;Lorem ipsum&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Lorem ipsum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Lorem ipsum&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Lorem ipsum&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h2&gt;Dolor sit amet&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;h2&gt;Dolor sit amet&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Gewone dropdown&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;img&quot;&gt;&lt;a href=&quot;#&quot;&gt;Afbeelding naast item&lt;/a&gt;
&lt;ul&gt;
&lt;li class=&quot;afb1&quot;&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet &lt;span class=&quot;description&quot;&gt;consectetur adipiscing elit&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;afb2&quot;&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet &lt;span class=&quot;description&quot;&gt;consectetur adipiscing elit&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li class=&quot;afb3&quot;&gt;&lt;a href=&quot;#&quot;&gt;Dolor sit amet &lt;span class=&quot;description&quot;&gt;consectetur adipiscing elit&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
</pre></pre><h2>Stijling</h2><p>Ik heb de stijling simpel gehouden. De hoofd-navigatie heeft een lichtgrijze achtergrond en de letters zijn midden-grijs. De stijling van de sub-items kun je uiteraard ook naar hartelust veranderen.</p><pre><pre lang="css">
/* dropdown 2.0 */
ul#mainnav { width:100%; float:left; background-color:#eee; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; }
ul#mainnav li { display:block; float:left; position:relative; height:40px; padding:0 10px; line-height:40px; }
ul#mainnav li:hover { background:url(&#039;arrow-top.png&#039;) 10px 30px no-repeat; }
ul#mainnav li a { color:#bbb; font-weight:bold; }
/* subitems - default */
ul#mainnav li ul { display:none; position:absolute; top:35px; left:0; width:175px; background-color:#fff; border:1px solid #bbb; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; padding:5px; -moz-box-shadow: 0 0 .5em #bbb; -webkit-box-shadow: 0 0 .5em #bbb; box-shadow: 0 0 .5em #bbb; /* &gt;= IE8 */ }
ul#mainnav li:hover ul { display:block; }
ul#mainnav li ul li { width:100%; padding:5px; line-height:normal; height:auto; }
ul#mainnav li ul li a { display:block; }
ul#mainnav li ul li a:hover { text-decoration:underline; }
ul#mainnav li ul li ul { border:0; position:inherit; top:0; box-shadow:0 0 0; -moz-box-shadow:0 0 0; -webkit-box-shadow:0 0 0; border-radius:0; -moz-border-radius:0; -webkit-border-radius:0; }

/* subitems - side */
ul#mainnav li.side ul { width:450px; float:left; }
ul#mainnav li.side ul li { width:130px; padding:10px; }
ul#mainnav li.side ul li h2 { border:1px solid #09f; background-color: #9cf; border-radius:5px; -moz-border-radius:5px; -webkit-border-radius:5px; padding:5px; color:#fff }
ul#mainnav li.side ul li ul { border:0; width:auto; padding:5px 0 0; }
ul#mainnav li.side ul li ul li { padding:5px; list-style:disc; list-style-type:disc; list-style-position:inside; width:100%; background:none; }
ul#mainnav li.side ul li ul li a { color:#bbb; }
ul#mainnav li.side ul li ul li a:hover { color:#09f }

/* subitems - img */
ul#mainnav li.img {}
ul#mainnav li.img ul { width:200px; }
ul#mainnav li.img ul li { background:url(&#039;arrows_white-border.png&#039;) no-repeat; height:40px; width:149px; padding:7px 5px 3px 50px; }
ul#mainnav li.img ul li.afb1 { background-position:0 0; }
ul#mainnav li.img ul li.afb2 { background-position:0 -92px; }
ul#mainnav li.img ul li.afb3 { background-position:0 -184px; }
ul#mainnav li.img ul li a {  }
ul#mainnav li.img ul li a:hover { color:#999; text-decoration:none; }
ul#mainnav li.img ul li span.description { width:100%; display:block; font-weight:normal; font-size:90%; }
</pre></pre><h2>Online demo</h2><p>De online demo van deze tutorial <a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/tuts/dropdown2.0/" class="broken_link">vind je hier</a>.</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/10/quickview-618x200.gif" alt="Quick preview van je producten" title="Quick preview van je producten" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark">Quick preview van je producten</a></h3><p>Je wil je bezoekers zo min mogelijk laten wachten op je website, voor webshops geldt dit uiteraard ook. Om je bezoekers de mogelijkheid te geven ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" rel="bookmark"><img
src="stoel.jpg" alt="Productoverzicht weergave als IKEA" title="Productoverzicht weergave als IKEA" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" rel="bookmark">Productoverzicht weergave als IKEA</a></h3><p>De IKEA website heeft een vernieuwde weergave van de productoverzicht pagina's. Op het eerste gezicht lijkt er niks verandert, maar als je met je muis ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/css-dropdown-navigatie/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/css-dropdown-alleenhtml-285x200.gif" alt="CSS dropdown navigatie" title="CSS dropdown navigatie" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/css-dropdown-navigatie/" rel="bookmark">CSS dropdown navigatie</a></h3><p>Dropdown navigatie is heel erg hip en niet te vergeten: heel erg handig. Je hoeft niet alle pagina's in beeld te hebben, maar wel alle ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2%2F&amp;t=Dropdown+navigatie+2.0" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Dropdown+navigatie+2.0%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1522%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2%2F&amp;title=Dropdown+navigatie+2.0&amp;notes=Een+tijd+geleden+heb+ik+een+tutorial+geschreven+over+het+maken+van+een+CSS+dropdown+navigatie.+In+deze+tutorial+behandel+ik+hetzelfde+principe%2C+alleen+anders+uitgewerkt%3A+Dropdown+2.0%0A+Wat+ik+met+Dropdown+2.0+bedoel%3F+Je+kent+vast+die+mooie+dropdown+na" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2%2F&amp;title=Dropdown+navigatie+2.0&amp;bodytext=Een+tijd+geleden+heb+ik+een+tutorial+geschreven+over+het+maken+van+een+CSS+dropdown+navigatie.+In+deze+tutorial+behandel+ik+hetzelfde+principe%2C+alleen+anders+uitgewerkt%3A+Dropdown+2.0%0A+Wat+ik+met+Dropdown+2.0+bedoel%3F+Je+kent+vast+die+mooie+dropdown+na" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fdropdown-navigatie-2%2F&amp;title=Dropdown+navigatie+2.0" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/" onclick="addBookmark(event);" title="Dropdown navigatie 2.0" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Dropdown navigatie 2.0&amp;body=Een tijd geleden heb ik een tutorial geschreven over het maken van een CSS dropdown navigatie. In deze tutorial behandel ik hetzelfde principe, alleen anders uitgewerkt: Dropdown 2.0
Wat ik met Dropdown 2.0 bedoel? Je kent vast die mooie dropdown na - http://hiranthi.nl/tutorials/dropdown-navigatie-2/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/dropdown-navigatie-2/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Quick preview van je producten</title><link>http://hiranthi.nl/tutorials/quick-preview-producten/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quick-preview-producten</link> <comments>http://hiranthi.nl/tutorials/quick-preview-producten/#comments</comments> <pubDate>Tue, 05 Oct 2010 12:00:37 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[css]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[html]]></category> <category><![CDATA[webshop]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1861</guid> <description><![CDATA[Je wil je bezoekers zo min mogelijk laten wachten op je website, voor webshops geldt dit uiteraard ook. Om je bezoekers de mogelijkheid te geven om snel informatie over een product te bekijken zonder naar een nieuwe pagina te moeten gaan kun je gebruik maken van zogeheten Quick Previews. In mijn tutorial over de maak [...]]]></description> <content:encoded><![CDATA[<p>Je wil je bezoekers zo min mogelijk laten wachten op je website, voor webshops geldt dit uiteraard ook. Om je bezoekers de mogelijkheid te geven om snel informatie over een product te bekijken zonder naar een nieuwe pagina te moeten gaan kun je gebruik maken van zogeheten Quick Previews. In mijn tutorial over de <a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/">IKEA producten weergave</a> maak je al gebruik van een gedeeltelijke quick preview, in deze tutorial laat ik je zien hoe je meer informatie kunt laten zien in een Lightbox-variant.<span
id="more-1861"></span></p><p>Als eerste moet je bedenken hoe je de bezoeker wilt laten zien dat ze een Quick Preview van het product kunnen openen. Ik gebruik er een afbeelding voor met de tekst &#8216;QUICKVIEW &gt;&#8217;.</p><p><a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/2010/10/quickview.gif" class="lightbox" ><img
class="aligncenter size-large wp-image-1885" src="http://famire.nl/wp-content/blogs.dir/6/files/2010/10/quickview-618x200.gif" alt="" width="618" height="200" /></a></p><h2>HTML</h2><p>Zoals je kunt zien in bovenstaande afbeelding gebruik ik de <a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/">IKEA producten weergave</a> weer, hier zal ik niet weer alle HTML voor laten zien.</p><pre><pre lang="html">
&lt;li class=&quot;product&quot;&gt;
&lt;div id=&quot;quickviewID1&quot; class=&quot;qv&quot;&gt;
&lt;div class=&quot;quickview&quot;&gt;
&lt;div class=&quot;alignleft&quot;&gt;
                  &lt;img src=&quot;stoel.jpg&quot; width=&quot;200&quot; alt=&quot;Stoel&quot; /&gt;
                  &lt;img src=&quot;stoel.jpg&quot; width=&quot;200&quot; alt=&quot;Stoel&quot; /&gt;
                    &lt;img src=&quot;stoel.jpg&quot; width=&quot;200&quot; alt=&quot;Stoel&quot; /&gt;
                &lt;/div&gt;
&lt;div class=&quot;alignright&quot;&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-desc&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rhoncus arcu eget velit varius vitae luctus felis consectetur. Nullam at sapien id felis bibendum consectetur. Donec sodales nibh dui. Maecenas pharetra varius mi, at porttitor nunc mattis ac. Donec sagittis adipiscing dolor vel vestibulum. Nam facilisis, tellus vitae cursus porta, elit lectus congue turpis, vel rutrum sem mauris sit amet orci. Fusce varius dictum fringilla. Sed et quam tellus. Aliquam erat volutpat. Nulla ac interdum lectus. Cras eu nisl ut augue laoreet posuere. Pellentesque mi ante, elementum quis ultrices nec, vestibulum nec magna. Nullam est metus, semper ac elementum quis, imperdiet ac tellus. Duis tincidunt mollis pulvinar. Donec felis risus, lacinia lobortis elementum vel, commodo ac lectus.
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;hr /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
                    &lt;a href=&quot;#quickviewID1&quot; title=&quot;Stoel&quot; rel=&quot;shadowbox;height=400;width=600&quot; class=&quot;quickview&quot;&gt;&lt;img src=&quot;quickview.png&quot; class=&quot;quickview&quot; width=&quot;100&quot; height=&quot;40&quot; alt=&quot;Quickview&quot; /&gt;&lt;/a&gt;
                    &lt;img src=&quot;stoel.jpg&quot; class=&quot;prod&quot; width=&quot;100&quot; alt=&quot;Stoel&quot; /&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
</pre></pre><p>De HTML hierboven is voor 1 product, de weergave in het overzicht <em>en</em> wat er in de Quick Preview weergegeven moet worden.</p><p>De HTML voor de Quick Preview geïsoleerd:</p><pre><pre lang="html">
&lt;div id=&quot;quickviewID1&quot; class=&quot;qv&quot;&gt;
&lt;div class=&quot;quickview&quot;&gt;
&lt;div class=&quot;alignleft&quot;&gt;
                  &lt;img src=&quot;stoel.jpg&quot; width=&quot;200&quot; alt=&quot;Stoel&quot; /&gt;
                  &lt;img src=&quot;stoel.jpg&quot; width=&quot;200&quot; alt=&quot;Stoel&quot; /&gt;
                    &lt;img src=&quot;stoel.jpg&quot; width=&quot;200&quot; alt=&quot;Stoel&quot; /&gt;
                &lt;/div&gt;
&lt;div class=&quot;alignright&quot;&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-desc&quot;&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin rhoncus arcu eget velit varius vitae luctus felis consectetur. Nullam at sapien id felis bibendum consectetur. Donec sodales nibh dui. Maecenas pharetra varius mi, at porttitor nunc mattis ac. Donec sagittis adipiscing dolor vel vestibulum. Nam facilisis, tellus vitae cursus porta, elit lectus congue turpis, vel rutrum sem mauris sit amet orci. Fusce varius dictum fringilla. Sed et quam tellus. Aliquam erat volutpat. Nulla ac interdum lectus. Cras eu nisl ut augue laoreet posuere. Pellentesque mi ante, elementum quis ultrices nec, vestibulum nec magna. Nullam est metus, semper ac elementum quis, imperdiet ac tellus. Duis tincidunt mollis pulvinar. Donec felis risus, lacinia lobortis elementum vel, commodo ac lectus.
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;hr /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre></pre><p>De <code>#quickviewID1</code> (id) moet voor elk product anders zijn, omdat je anders continue dezelfde Quick Preview opent (nou is dat in mijn voorbeeld niet zo erg, omdat hetzelfde product herhaald wordt, maar in een live website is dit niet wenselijk). Vergeet dus niet de ID van de <code>div</code> te veranderen, maar ook niet in de <code>href</code> van de link voor de Lightbox variant:</p><pre lang="html">&lt;a href=&quot;#quickviewID1&quot; title=&quot;Stoel&quot; rel=&quot;shadowbox;height=400;width=600&quot; class=&quot;quickview&quot;&gt;&lt;img src=&quot;quickview.png&quot; class=&quot;quickview&quot; width=&quot;100&quot; height=&quot;40&quot; alt=&quot;Quickview&quot; /&gt;&lt;/a&gt;</pre><h2>CSS</h2><p>Om de inhoud in Shadowbox te laten zien zoals je wil moet je CSS gebruiken, in mijn voorbeeld is dat de volgende CSS:</p><pre><pre lang="CSS">
/* quick view */
div.qv, div.quickview { display:none; }
#sb-body div.quickview { padding:20px; width:540px; display:block; }

#sb-body, #sb-loading { background-color:#fff; }
#sb-body .alignleft { width:200px; display:block; float:left; }
#sb-body .alignright { width:260px; display:block; float:right; }

#sb-body h2 { text-transform: uppercase; margin: 0 0 .5em; padding: .5em 0; font-size: 1.4em; }
#sb-body h3 { font-size: 1.2em; margin: 0 0 .5em; padding: .5em 0 0; }
#sb-body p { font-size:1.2em; line-height:1.5em; margin:0 0 1em; }
#sb-body p.prod-price { font-weight: bold; font-size: 1.6em; line-height: 1.8em; }
#sb-body a { text-decoration: none; color: darkturquoise; }
</pre></pre><h2>Online demo</h2><p>Ook van deze tutorial is weer een <a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/tuts/quickview/" class="broken_link">online demo</a> te bekijken <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" rel="bookmark"><img
src="stoel.jpg" alt="Productoverzicht weergave als IKEA" title="Productoverzicht weergave als IKEA" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" rel="bookmark">Productoverzicht weergave als IKEA</a></h3><p>De IKEA website heeft een vernieuwde weergave van de productoverzicht pagina's. Op het eerste gezicht lijkt er niks verandert, maar als je met je muis ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/ikea-grid-view-shopp/" rel="bookmark"><img
src="stoel.jpg" alt="IKEA grid-view in Shopp" title="IKEA grid-view in Shopp" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/ikea-grid-view-shopp/" rel="bookmark">IKEA grid-view in Shopp</a></h3><p>In heb ik je laten zien hoe je de IKEA grid-view kunt nabootsen. In deze post laat ik zien hoe je die code voor je ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Dropdown navigatie 2.0" title="Dropdown navigatie 2.0" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/" rel="bookmark">Dropdown navigatie 2.0</a></h3><p>Een tijd geleden heb ik een tutorial geschreven over het maken van een CSS dropdown navigatie. In deze tutorial behandel ik hetzelfde principe, alleen anders ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fquick-preview-producten%2F&amp;t=Quick+preview+van+je+producten" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Quick+preview+van+je+producten%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1861%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fquick-preview-producten%2F&amp;title=Quick+preview+van+je+producten&amp;notes=Je+wil+je+bezoekers+zo+min+mogelijk+laten+wachten+op+je+website%2C+voor+webshops+geldt+dit+uiteraard+ook.+Om+je+bezoekers+de+mogelijkheid+te+geven+om+snel+informatie+over+een+product+te+bekijken+zonder+naar+een+nieuwe+pagina+te+moeten+gaan+kun+je+gebru" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fquick-preview-producten%2F&amp;title=Quick+preview+van+je+producten&amp;bodytext=Je+wil+je+bezoekers+zo+min+mogelijk+laten+wachten+op+je+website%2C+voor+webshops+geldt+dit+uiteraard+ook.+Om+je+bezoekers+de+mogelijkheid+te+geven+om+snel+informatie+over+een+product+te+bekijken+zonder+naar+een+nieuwe+pagina+te+moeten+gaan+kun+je+gebru" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fquick-preview-producten%2F&amp;title=Quick+preview+van+je+producten" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" onclick="addBookmark(event);" title="Quick preview van je producten" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Quick preview van je producten&amp;body=Je wil je bezoekers zo min mogelijk laten wachten op je website, voor webshops geldt dit uiteraard ook. Om je bezoekers de mogelijkheid te geven om snel informatie over een product te bekijken zonder naar een nieuwe pagina te moeten gaan kun je gebru - http://hiranthi.nl/tutorials/quick-preview-producten/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/quick-preview-producten/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>IKEA grid-view in Shopp</title><link>http://hiranthi.nl/tutorials/ikea-grid-view-shopp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ikea-grid-view-shopp</link> <comments>http://hiranthi.nl/tutorials/ikea-grid-view-shopp/#comments</comments> <pubDate>Fri, 24 Sep 2010 12:00:14 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[css]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[html]]></category> <category><![CDATA[Shopp]]></category> <category><![CDATA[webshop]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1873</guid> <description><![CDATA[In heb ik je laten zien hoe je de IKEA grid-view kunt nabootsen. In deze post laat ik zien hoe je die code voor je Shopp webshop kunt gebruiken. Basis HTML &#60;ul id=&#34;products&#34;&#62; &#60;li class=&#34;product&#34;&#62; &#60;div class=&#34;info&#34;&#62; &#60;div class=&#34;prod-info&#34;&#62; &#60;img src=&#34;stoel.jpg&#34; width=&#34;100&#34; alt=&#34;Stoel&#34; /&#62; &#60;h2 class=&#34;prod-title&#34;&#62;Stoel&#60;/h2&#62; &#60;p class=&#34;prod-desc&#34;&#62;Een bruin leren stoel &#60;p class=&#34;prod-price&#34;&#62;&#38;euro; 250,- &#60;div [...]]]></description> <content:encoded><![CDATA[<p>In <a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/">mijn vorige post</a> heb ik je laten zien hoe je de IKEA grid-view kunt nabootsen. In deze post laat ik zien hoe je die code voor je Shopp webshop kunt gebruiken.<span
id="more-1873"></span></p><h2>Basis HTML</h2><pre><pre lang="html">
&lt;ul id=&quot;products&quot;&gt;
&lt;li class=&quot;product&quot;&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
        &lt;img src=&quot;stoel.jpg&quot; width=&quot;100&quot; alt=&quot;Stoel&quot; /&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr noshade=&quot;noshade&quot; /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
</pre></pre><p>In mijn vorige post hierover gebruikte ik hetzelfde product 5 keer, omdat we nu een dynamisch aantal producten hebben &#8211; en het willen integreren in Shopp &#8211; hebben we de HTML voor een product maar 1 keer nodig.</p><h2>Shopp integratie</h2><p><em>Deze tutorial is voor Shopp 1.1!</em></p><p>Als eerste is het belangrijk dat je Custom Templates hebt geactiveerd in je Shopp installatie (Shopp -&gt; Settings -&gt; Presentation). Pak daarna de category.php (in de shopp-map in de map van je theme).</p><h3>De code</h3><pre><pre lang="php">
&lt;?php if(shopp(&#039;category&#039;,&#039;hasproducts&#039;,&#039;load=prices,images&#039;)): ?&gt;
&lt;h1&gt;&lt;?php shopp(&#039;category&#039;,&#039;name&#039;); ?&gt;&lt;/h1&gt;
&lt;ul class=&quot;products&quot;&gt;
&lt;li class=&quot;row&quot;&gt;
&lt;ul&gt;
    &lt;?php while(shopp(&#039;category&#039;,&#039;products&#039;)): ?&gt;
    &lt;?php if(shopp(&#039;category&#039;,&#039;row&#039;)): ?&gt;&lt;/ul&gt;
&lt;/li&gt;
&lt;li class=&quot;row&quot;&gt;
&lt;ul&gt;&lt;?php endif; ?&gt;
&lt;li class=&quot;product&quot;&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
          &lt;?php shopp(&#039;product&#039;,&#039;coverimage&#039;,&#039;height=75&amp;#038;fit=height&#039;); ?&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;&lt;?php shopp(&#039;product&#039;,&#039;name&#039;); ?&gt;&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;&lt;?php shopp(&#039;product&#039;,&#039;summary&#039;); ?&gt;
&lt;p class=&quot;prod-price&quot;&gt;&lt;?php shopp(&#039;product&#039;,&#039;saleprice&#039;,&#039;starting=Vanaf&#039;); ?&gt;
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr noshade=&quot;noshade&quot; /&gt;
            &lt;?php if (shopp(&#039;product&#039;,&#039;has-savings&#039;)): ?&gt;
&lt;p class=&quot;savings&quot;&gt;&lt;?php _e(&#039;Bespaar&#039;,&#039;Shopp&#039;); ?&gt; &lt;?php shopp(&#039;product&#039;,&#039;savings&#039;,&#039;show=percent&#039;); ?&gt;

            &lt;?php endif; ?&gt;

            &lt;?php if(shopp(&#039;product&#039;,&#039;has-specs&#039;)): ?&gt;
&lt;h3&gt;Specificaties&lt;/h3&gt;
&lt;dl class=&quot;details&quot;&gt;
              &lt;?php while(shopp(&#039;product&#039;,&#039;specs&#039;)): ?&gt;
&lt;dt&gt;&lt;?php shopp(&#039;product&#039;,&#039;spec&#039;,&#039;name&#039;); ?&gt;:&lt;/dt&gt;
&lt;dd&gt;&lt;?php shopp(&#039;product&#039;,&#039;spec&#039;,&#039;content&#039;); ?&gt;&lt;/dd&gt;

              &lt;?php endwhile; ?&gt;
            &lt;/dl&gt;

            &lt;?php endif; ?&gt;

&lt;a href=&quot;&lt;?php shopp(&#039;product&#039;,&#039;url&#039;); ?&gt;&quot; class=&quot;prod-link&quot; title=&quot;&lt;?php shopp(&#039;product&#039;,&#039;name&#039;); ?&gt; bekijken&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;

    &lt;?php endwhile; ?&gt;
    &lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;alignright&quot;&gt;&lt;?php shopp(&#039;category&#039;,&#039;pagination&#039;); ?&gt;&lt;/div&gt;

&lt;?php else: ?&gt;
  &lt;?php if (!shopp(&#039;catalog&#039;,&#039;is-landing&#039;)): ?&gt;
&lt;h1&gt;&lt;?php shopp(&#039;category&#039;,&#039;name&#039;); ?&gt;&lt;/h1&gt;

&lt;?php _e(&#039;Er zijn geen producten gevonden.&#039;,&#039;Shopp&#039;); ?&gt;

  &lt;?php endif; ?&gt;
&lt;?php endif; ?&gt;
</pre></pre><p>Eigenlijk alle code is hetzelfde als in vorige versies, maar een klein stukje niet: <code>coverimage</code>. Dit is de nieuwe code voor de thumbnail van het product en die heeft ook nieuwe mogelijkheden.</p><pre><pre lang="php">
&lt;?php shopp(&#039;product&#039;,&#039;coverimage&#039;,&#039;height=75&amp;#038;fit=height&#039;); ?&gt;
</pre></pre><p>De opties die ik heb opgegeven in deze tag betekenen dat de afbeelding 75pixels hoog wordt en dat de hoogte moet passen (breedte is dus variabel).</p><h2>Stijling</h2><p>Voor de stijling kun je gebruik maken van de CSS die ik heb opgegeven in de <a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/">originele tutorial</a>. Daarnaast kun je gebruik maken van de stijling van Shopp (in shopp.css, ook in de shopp-map van je theme).</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" rel="bookmark"><img
src="stoel.jpg" alt="Productoverzicht weergave als IKEA" title="Productoverzicht weergave als IKEA" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" rel="bookmark">Productoverzicht weergave als IKEA</a></h3><p>De IKEA website heeft een vernieuwde weergave van de productoverzicht pagina's. Op het eerste gezicht lijkt er niks verandert, maar als je met je muis ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/10/quickview-618x200.gif" alt="Quick preview van je producten" title="Quick preview van je producten" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark">Quick preview van je producten</a></h3><p>Je wil je bezoekers zo min mogelijk laten wachten op je website, voor webshops geldt dit uiteraard ook. Om je bezoekers de mogelijkheid te geven ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/producten-op-je-catalog-php/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2009/11/producten-catalog-412x200.jpg" alt="Producten op je catalog.php" title="Producten op je catalog.php" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/producten-op-je-catalog-php/" rel="bookmark">Producten op je catalog.php</a></h3><p>Een vraag die ik steeds meer tegenkom op de Shopp forums is de volgende: "Hoe geef ik al mijn producten weer op de Shopp indexpagina?". ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fikea-grid-view-shopp%2F&amp;t=IKEA+grid-view+in+Shopp" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=IKEA+grid-view+in+Shopp%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1873%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fikea-grid-view-shopp%2F&amp;title=IKEA+grid-view+in+Shopp&amp;notes=In++heb+ik+je+laten+zien+hoe+je+de+IKEA+grid-view+kunt+nabootsen.+In+deze+post+laat+ik+zien+hoe+je+die+code+voor+je+Shopp+webshop+kunt+gebruiken.%0ABasis+HTML%0A%0A%09%0A%09%0A%09%09%0A%09%09%09%0A%09%09%09%09%0A%09%09%09%09Stoel%0A%09%09%09%09Een+bruin+leren+stoel%0A%09%09%09%09%26euro%3B+250%2C-%0A%09%09%09%09%0A%09%09%09%09%0A%09%09%09%09%09%0A%09%09%09%09%09Ex" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fikea-grid-view-shopp%2F&amp;title=IKEA+grid-view+in+Shopp&amp;bodytext=In++heb+ik+je+laten+zien+hoe+je+de+IKEA+grid-view+kunt+nabootsen.+In+deze+post+laat+ik+zien+hoe+je+die+code+voor+je+Shopp+webshop+kunt+gebruiken.%0ABasis+HTML%0A%0A%09%0A%09%0A%09%09%0A%09%09%09%0A%09%09%09%09%0A%09%09%09%09Stoel%0A%09%09%09%09Een+bruin+leren+stoel%0A%09%09%09%09%26euro%3B+250%2C-%0A%09%09%09%09%0A%09%09%09%09%0A%09%09%09%09%09%0A%09%09%09%09%09Ex" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fikea-grid-view-shopp%2F&amp;title=IKEA+grid-view+in+Shopp" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/ikea-grid-view-shopp/" onclick="addBookmark(event);" title="IKEA grid-view in Shopp" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=IKEA grid-view in Shopp&amp;body=In  heb ik je laten zien hoe je de IKEA grid-view kunt nabootsen. In deze post laat ik zien hoe je die code voor je Shopp webshop kunt gebruiken.
Basis HTML
Stoel
Een bruin leren stoel
&euro; 250,-
Ex - http://hiranthi.nl/tutorials/ikea-grid-view-shopp/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/ikea-grid-view-shopp/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Productoverzicht weergave als IKEA</title><link>http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=productoverzicht-weergave-ikea</link> <comments>http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/#comments</comments> <pubDate>Tue, 21 Sep 2010 12:00:13 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[css]]></category> <category><![CDATA[E-commerce]]></category> <category><![CDATA[html]]></category> <category><![CDATA[pop-out]]></category> <category><![CDATA[webshop]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1514</guid> <description><![CDATA[De IKEA website heeft een vernieuwde weergave van de productoverzicht pagina&#8217;s. Op het eerste gezicht lijkt er niks verandert, maar als je met je muis over een product gaat krijg je meer informatie over dat product te zien. In deze tutorial ga ik je laten zien hoe jij dat effect kunt nabootsen. Grid view Als [...]]]></description> <content:encoded><![CDATA[<p>De IKEA website heeft een vernieuwde weergave van de productoverzicht pagina&#8217;s. Op het eerste gezicht lijkt er niks verandert, maar als je met je muis over een product gaat krijg je meer informatie over dat product te zien. In deze tutorial ga ik je laten zien hoe jij dat effect kunt nabootsen.<span
id="more-1514"></span></p><h2>Grid view</h2><p>Als eerste hebben we een standaard grid view, gevuld met producten, nodig voor de product-overzicht pagina.</p><pre><pre lang="html">
&lt;ul id=&quot;products&quot;&gt;
&lt;li class=&quot;product&quot;&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
                &lt;img src=&quot;stoel.jpg&quot; width=&quot;100&quot; alt=&quot;Stoel&quot; /&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr noshade=&quot;noshade&quot; /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;product&quot;&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
                &lt;img src=&quot;stoel.jpg&quot; width=&quot;100&quot; alt=&quot;Stoel&quot; /&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr noshade=&quot;noshade&quot; /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;product&quot;&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
                &lt;img src=&quot;stoel.jpg&quot; width=&quot;100&quot; alt=&quot;Stoel&quot; /&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr noshade=&quot;noshade&quot; /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;product&quot;&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
                &lt;img src=&quot;stoel.jpg&quot; width=&quot;100&quot; alt=&quot;Stoel&quot; /&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr noshade=&quot;noshade&quot; /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;product last&quot;&gt;
&lt;div class=&quot;info&quot;&gt;
&lt;div class=&quot;prod-info&quot;&gt;
                &lt;img src=&quot;stoel.jpg&quot; width=&quot;100&quot; alt=&quot;Stoel&quot; /&gt;
&lt;h2 class=&quot;prod-title&quot;&gt;Stoel&lt;/h2&gt;
&lt;p class=&quot;prod-desc&quot;&gt;Een bruin leren stoel
&lt;p class=&quot;prod-price&quot;&gt;&amp;euro; 250,-
&lt;div class=&quot;prod-more-info&quot;&gt;
&lt;hr noshade=&quot;noshade&quot; /&gt;
&lt;h3&gt;Extra informatie&lt;/h3&gt;

Lorem ipsum dolor sit amet.

&lt;a href=&quot;#product&quot; class=&quot;prod-link&quot;&gt;Product bekijken &amp;raquo;&lt;/a&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
</pre></pre><p>Voor het gemak heb ik vijf keer hetzelfde product gebruikt (het wordt dus een grid-view met 5 producten op een rij).<br
/> Het laatste product heeft niet alleen de class <code>product</code> (de <code>li</code>), maar ook de class <code>last</code>.</p><h3>Opmaak</h3><p>Om het geheel te laten werken hebben we ook stijling nodig. Er komt dus geheel geen JavaScript aan te pas! <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><pre><pre lang="css">
ul#products
{
  margin:0 0 2em;
}

ul#products li.product
{
  width:19.8%;
  height:200px;
  display:inline;
  float:left;
  border-right:1px solid #eee;
  position:relative;
  background:#fff;
  margin:0 0 2em;
}

ul#products li.product:hover
{
  border-right-color:#fff;
  z-index:9;
}

ul#products li.product .info
{
  display:block;
  background:#fff;
}

ul#products li.product .prod-info
{
  padding:1.1em;
}

ul#products li.product .info:hover .prod-info
{
  -moz-box-shadow:0 0 .5em #888;
  -webkit-box-shadow:0 0 .5em #888;
  box-shadow:0 0 .5em #888;
  filter:progid:DXImageTransform.Microsoft.dropShadow(color=#969696, offx=1, offy=1, positive=true)
    progid:DXImageTransform.Microsoft.dropShadow(color=#C2C2C2, offx=1, offy=1, positive=true)
    progid:DXImageTransform.Microsoft.dropShadow(color=#EFEFEF, offx=1, offy=1, positive=true);/* &lt;= IE7 */
  -ms-filter:&quot;progid:DXImageTransform.Microsoft.dropShadow(color=#969696, offx=1, offy=1, positive=true)
    progid:DXImageTransform.Microsoft.dropShadow(color=#C2C2C2, offx=1, offy=1, positive=true)
    progid:DXImageTransform.Microsoft.dropShadow(color=#EFEFEF, offx=1, offy=1, positive=true)&quot;; /* &gt;= IE8 */
  padding:1em;
  border:1px solid #eee;
}

ul#products li.product img
{
  margin:0 auto 5px;
  display:block;
}

ul#products li.product h2
{
  text-transform:uppercase;
  margin:0 0 .5em;
  padding:.5em 0;
  font-size:1.4em;
}

ul#products li.product p
{
  font-size:1.2em;
  margin:0 0 .5em;
  line-height:1.4em;
}

ul#products li.product p.prod-price
{
  font-weight:bold;
  font-size:1.6em;
  line-height:1.8em;
}

ul#products li.last
{
  border:none;
}

ul#products li.product a.prod-link
{
  text-decoration:none;
  color:darkturquoise;
}

ul#products li.product .prod-more-info
{
  display:none;
}

ul#products li.product .info:hover .prod-more-info
{
  display:block;
  width:100%;
}
</pre></pre><p>De <code>z-index:9;</code> op <code>ul#products li.product:hover</code> zorgt ervoor dat de <code>li</code> boven andere elementen gezet wordt. Werkt deze niet bij jou? Dan kan het zijn dat het element (waar deze overheen moet gaan) een hogere <code>z-index</code> heeft. Je kunt de <code>z-index</code> zo hoog maken als je zelf wil (hou wel rekening met evt. Lightbox varianten, zij gebruiken ook een <code>z-index</code> om boven alle elementen te komen).</p><h4>CSS3</h4><p>Voor de schaduw maak ik gebruik van CSS3 in plaats van afbeeldingen:</p><pre><pre lang="css">
-moz-box-shadow:0 0 .5em #888;
-webkit-box-shadow:0 0 .5em #888;
box-shadow:0 0 .5em #888;</pre></pre><p>In Internet Explorer wordt CSS3 (nog) niet ondersteund. IE heeft wel filters die eenzelfde resultaat geven (maar deze komen niet door de W3C validatie heen):</p><pre><pre lang="css">
filter:progid:DXImageTransform.Microsoft.dropShadow(color=#969696, offx=1, offy=1, positive=true)
  progid:DXImageTransform.Microsoft.dropShadow(color=#C2C2C2, offx=1, offy=1, positive=true)
  progid:DXImageTransform.Microsoft.dropShadow(color=#EFEFEF, offx=1, offy=1, positive=true);/* &lt;= IE7 */
-ms-filter:&quot;progid:DXImageTransform.Microsoft.dropShadow(color=#969696, offx=1, offy=1, positive=true)
  progid:DXImageTransform.Microsoft.dropShadow(color=#C2C2C2, offx=1, offy=1, positive=true)
  progid:DXImageTransform.Microsoft.dropShadow(color=#EFEFEF, offx=1, offy=1, positive=true)&quot;; /* &gt;= IE8 */
</pre></pre><h2>Online demo</h2><p>Natuurlijk heb ik ook een demo online gezet: <a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/tuts/ikea-product-grid/" class="broken_link">IKEA product (grid view) nabootsing</a>.</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/ikea-grid-view-shopp/" rel="bookmark"><img
src="stoel.jpg" alt="IKEA grid-view in Shopp" title="IKEA grid-view in Shopp" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/ikea-grid-view-shopp/" rel="bookmark">IKEA grid-view in Shopp</a></h3><p>In heb ik je laten zien hoe je de IKEA grid-view kunt nabootsen. In deze post laat ik zien hoe je die code voor je ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/10/quickview-618x200.gif" alt="Quick preview van je producten" title="Quick preview van je producten" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark">Quick preview van je producten</a></h3><p>Je wil je bezoekers zo min mogelijk laten wachten op je website, voor webshops geldt dit uiteraard ook. Om je bezoekers de mogelijkheid te geven ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Dropdown navigatie 2.0" title="Dropdown navigatie 2.0" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/" rel="bookmark">Dropdown navigatie 2.0</a></h3><p>Een tijd geleden heb ik een tutorial geschreven over het maken van een CSS dropdown navigatie. In deze tutorial behandel ik hetzelfde principe, alleen anders ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fproductoverzicht-weergave-ikea%2F&amp;t=Productoverzicht+weergave+als+IKEA" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Productoverzicht+weergave+als+IKEA%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1514%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fproductoverzicht-weergave-ikea%2F&amp;title=Productoverzicht+weergave+als+IKEA&amp;notes=De+IKEA+website+heeft+een+vernieuwde+weergave+van+de+productoverzicht+pagina%27s.+Op+het+eerste+gezicht+lijkt+er+niks+verandert%2C+maar+als+je+met+je+muis+over+een+product+gaat+krijg+je+meer+informatie+over+dat+product+te+zien.+In+deze+tutorial+ga+ik+je+" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fproductoverzicht-weergave-ikea%2F&amp;title=Productoverzicht+weergave+als+IKEA&amp;bodytext=De+IKEA+website+heeft+een+vernieuwde+weergave+van+de+productoverzicht+pagina%27s.+Op+het+eerste+gezicht+lijkt+er+niks+verandert%2C+maar+als+je+met+je+muis+over+een+product+gaat+krijg+je+meer+informatie+over+dat+product+te+zien.+In+deze+tutorial+ga+ik+je+" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fproductoverzicht-weergave-ikea%2F&amp;title=Productoverzicht+weergave+als+IKEA" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" onclick="addBookmark(event);" title="Productoverzicht weergave als IKEA" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Productoverzicht weergave als IKEA&amp;body=De IKEA website heeft een vernieuwde weergave van de productoverzicht pagina's. Op het eerste gezicht lijkt er niks verandert, maar als je met je muis over een product gaat krijg je meer informatie over dat product te zien. In deze tutorial ga ik je  - http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/productoverzicht-weergave-ikea/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> <item><title>Header van hiranthi.nl</title><link>http://hiranthi.nl/tutorials/header-van-hiranthi-nl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=header-van-hiranthi-nl</link> <comments>http://hiranthi.nl/tutorials/header-van-hiranthi-nl/#comments</comments> <pubDate>Thu, 19 Aug 2010 12:00:20 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[css]]></category> <category><![CDATA[header]]></category> <category><![CDATA[html]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1845</guid> <description><![CDATA[Dinsdag vroeg @sanderdebruin_ of de header van mijn blog eigen code of een plugin is. Om voor jou die vraag ook even te beantwoorden: het is eigen code en in deze post lees je hoe jij het ook kan maken HTML &#38; PHP &#60;div id=&#34;image&#34;&#62; &#60;script type=&#34;text/javascript&#34;&#62; jQuery(function() { jQuery(&#34;#image .rposts&#34;).jCarouselLite({ btnNext: &#34;#buttons .alignright&#34;, btnPrev: [...]]]></description> <content:encoded><![CDATA[<p>Dinsdag vroeg @sanderdebruin_ of de header van mijn blog eigen code of een plugin is. Om voor jou die vraag ook even te beantwoorden: het is eigen code en in deze post lees je hoe jij het ook kan maken <img
src='http://hiranthi.nl/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <span
id="more-1845"></span></p><h2>HTML &amp; PHP</h2><pre><pre lang="php">
&lt;div id=&quot;image&quot;&gt;

            &lt;script type=&quot;text/javascript&quot;&gt;
      jQuery(function() {
        jQuery(&quot;#image .rposts&quot;).jCarouselLite({
          btnNext: &quot;#buttons .alignright&quot;,
          btnPrev: &quot;#buttons .alignleft&quot;,
          speed: 800,
          visible: 5
        });
      });
      &lt;/script&gt;
&lt;div id=&quot;buttons&quot;&gt;
&lt;div class=&quot;alignleft&quot;&gt;&lt;a href=&quot;#vorige&quot; onclick=&quot;return false;&quot;&gt;&lt;em&gt;&amp;laquo; vorige&lt;/em&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;alignright&quot;&gt;&lt;a href=&quot;#volgende&quot; onclick=&quot;return false;&quot;&gt;&lt;em&gt;volgende &amp;raquo;&lt;/em&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;rposts&quot;&gt;
&lt;ul class=&quot;recentposts&quot;&gt;&lt;?php
        $curpage = $post;
              $recentposts = get_posts(&#039;numberposts=10&amp;#038;orderby=date&amp;#038;order=DESC&#039;);
        foreach ($recentposts as $post): setup_postdata($post);

              if(function_exists(&#039;wct_display_thumb&#039;))
        {
          if(wct_display_thumb() != &#039;&#039;)
          {
            ?&gt;
&lt;li &lt;?php echo ( $curpage-&gt;ID == get_the_ID() &amp;#038;&amp; !is_home() ) ? &#039; class=&quot;current&quot;&#039; : &#039;&#039;; ?&gt;&gt;&lt;a href=&quot;&lt;?php the_permalink(); ?&gt;&quot; title=&quot;&lt;?php the_title(&#039;&#039;); ?&gt;&quot;&gt;
              &lt;?php echo wct_display_thumb(); ?&gt;
&lt;div class=&quot;item&quot;&gt;
                              &lt;span class=&quot;title&quot;&gt;&lt;strong&gt;&lt;?php the_title(&#039;&#039;); ?&gt;&lt;/strong&gt;&lt;/span&gt;
                                &lt;span&gt;&lt;strong&gt;Gepost op:&lt;/strong&gt; &lt;?php the_time(&#039;j M.&#039;);?&gt;&lt;/span&gt;
                                &lt;span class=&quot;comments&quot;&gt;&lt;?php $comments = get_comments(&#039;post_id=&#039;.get_the_ID()); $comments = count($comments); echo ( $comments == 1 ) ? $comments.&#039; reactie&#039; : $comments.&#039; reacties&#039;; ?&gt;&lt;/span&gt;
                            &lt;/div&gt;

                        &lt;/a&gt;&lt;/li&gt;

&lt;?php
          } // endif
        } // endif
      ?&gt;

            &lt;?php endforeach; rewind_posts(); $post = $curpage; ?&gt;&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</pre></pre><p>De code die je hierboven ziet is gekopieerd uit mijn theme en dus precies wat ik ook gebruik.</p><p>Voor de carousel gebruik ik <a
rel="nofollow" target="_blank" href="http://www.gmarwaha.com/jquery/jcarousellite/">jCarouselLite</a>, als je het carousel effect ook wilt gebruiken (en de jQuery niet aan wilt passen) zul je deze dus ook moeten downloaden.</p><h2>Uitleg code</h2><p>Zoals je ziet gebruik ik de <a
rel="nofollow" target="_blank" href="http://daveligthart.com/">WP-Choose-Thumb</a> plugin voor de post-thumbnails. De plugin pas ik elke update aan zodat de afbeelding niet meteen ge-echo&#8217;d wordt, dit om te kunnen checken of de post een thumbnail heeft of niet:</p><pre lang="php">&lt;?php if(wct_display_thumb() != &#039;&#039;) ?&gt;</pre><p>Deze code zorgt ervoor dat als de functie <code>wct_display_thumb</code> geen waarde heeft, de post ook niet wordt weergegeven. Maar, nogmaals, hiervoor heb ik de WP-Choose-Thumb plugin dus voor aangepast, standaard geeft de <code>wct_display_thumb</code> meteen de afbeelding terug.</p><pre><pre lang="php">
&lt;li &lt;?php echo ( $curpage-&gt;ID == get_the_ID() &amp;#038;&amp; !is_home() ) ? &#039; class=&quot;current&quot;&#039; : &#039;&#039;; ?&gt;</pre></pre><p>Bovenstaande code zorgt ervoor dat de li (waar de image en info v/d post in staat) de class <code>current</code> krijgt als je die post op dat moment aan het bekijken bent.</p><pre lang="php">&lt;span class=&quot;comments&quot;&gt;&lt;?php $comments = get_comments(&#039;post_id=&#039;.get_the_ID()); $comments = count($comments); echo ( $comments == 1 ) ? $comments.&#039; reactie&#039; : $comments.&#039; reacties&#039;; ?&gt;</pre><p>Dit stukje code zorgt ervoor dat het juiste woord bij het aantal reacties wordt weergegeven (dat er dus niet iets als &#8217;1 reacties&#8217; of &#8217;10 reactie&#8217; komt te staan).</p><h2>CSS</h2><p>Met alleen bovenstaande code ben je er natuurlijk nog niet, de weergave van de header lijkt namelijk totaal nog niet op dat wat ik op mijn blog heb.</p><pre><pre lang="css">
#header #image ul,
#header #image ul li { width:960px; height:200px; display:block; float:left; }
#header #image ul li { overflow:hidden; text-align:center; }
#header #image #buttons { z-index:9; }
#header #image #buttons .alignleft,
#header #image #buttons .alignright { position:absolute; top:85px; z-index:8!important; }
#header #image #buttons .alignleft { left:-23px; }
#header #image #buttons .alignright { right:-27px; }
#header #image #buttons .alignleft a,
#header #image #buttons .alignright a { width:46px; height:46px; display:block; float:left; }
#header #image #buttons .alignleft a { background:url(&#039;../img/arrows_white-border.png&#039;) 0 -46px no-repeat; }
#header #image #buttons .alignleft a:hover { background-position:0 -138px; }
#header #image #buttons .alignleft a:active { background-position:0 -230px; }
#header #image #buttons .alignright a { background:url(&#039;../img/arrows_white-border.png&#039;) 0 0 no-repeat; }
#header #image #buttons .alignright a:hover { background-position:0 -92px; }
#header #image #buttons .alignright a:active { background-position:0 -184px; }
#header #image #buttons a:hover { text-decoration:none; }
#header #image #buttons .alignleft a em,
#header #image #buttons .alignright a em { display:block; font-size:0; color:#fff; }

#header #image ul.recentposts { width:960px; height:200px; overflow:hidden; display:block; float:left; padding:20px 0 0!important; background:transparent; border:0; position:absolute; top:0; left:0; z-index:2!important; }
#header #image ul.recentposts li { width:192px; display:inline; display:block; float:left; text-align:center; font-size:.8em; }
#header #image ul.recentposts li a { position:relative; width:156px; height:156px; display:block; margin:0 18px; background-color:#fff; text-decoration:none; }
#header #image ul.recentposts li a img { border:4px solid #ddd; padding:1px; }
#header #image ul.recentposts li.current a img,
#header #image ul.recentposts li a:hover img { border-color:#f06; }
#header #image ul.recentposts li a .item { position:absolute; display:none; top:5px; left:5px; z-index:2; width:150px; height:150px; background-color:#333; color:#fff; opacity:.85; -moz-opacity:.85; filter:alpha(85); }
#header #image ul.recentposts li a .item span { padding:0 10px; margin:0 0 10px; font-size:.8em; display:block; width:130px; clear:both; }
#header #image ul.recentposts li a .item span.title { font-size:.9em; padding:10px; }
#header #image ul.recentposts li a .item span.comments { position:absolute; left:0; bottom:0; margin:0; width:130px; padding:5px 10px; display:block; background-color:#f06; color:#fff; font-size:.9em; font-weight:bold; border-top:1px solid #fff; }
#header #image ul.recentposts li a:hover .item { display:block; }
</pre></pre><p>Ik heb mijn <code>div id=image</code> in een <code>div id=header</code> staan. Je bent natuurlijk vrij om dit anders te doen, vergeet dan niet de CSS ook aan te passen.</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/product-carrousel-webshop/" rel="bookmark"><img
src="#url" alt="Product carrousel voor je webshop" title="Product carrousel voor je webshop" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/product-carrousel-webshop/" rel="bookmark">Product carrousel voor je webshop</a></h3><p>Deze tutorial is hetzelfde idee als de "" tutorial, alleen dan met jCaroussel Lite in plaats van s3Slider. Een voordeel van je product slider/carrousel in ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/overzicht-van-categorieen-op-catalog-php/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2009/11/overzicht-van-categorieen-op-catalog-php-300x160.jpg" alt="Overzicht van categorieën op catalog.php" title="Overzicht van categorieën op catalog.php" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/overzicht-van-categorieen-op-catalog-php/" rel="bookmark">Overzicht van categorieën op catalog.php</a></h3><p>Standaard krijg je op catalog.php (de template die de de 'Shop'-pagina gebruikt, ofwel: de template voor de indexpagina van je shop) het volgende te zien: ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/wordpress/updates-wpmu-plugin-global-header/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Updates voor de WPMU plugin Global Header" title="Updates voor de WPMU plugin Global Header" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/wordpress/updates-wpmu-plugin-global-header/" rel="bookmark">Updates voor de WPMU plugin Global Header</a></h3><p>Gisteren de plugin Global Header gereleased en ondertussen heeft 'ie al twee keer een update gehad :) In eerste instantie was het een echte 'global ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fheader-van-hiranthi-nl%2F&amp;t=Header+van+hiranthi.nl" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Header+van+hiranthi.nl%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1845%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fheader-van-hiranthi-nl%2F&amp;title=Header+van+hiranthi.nl&amp;notes=Dinsdag+vroeg+%40sanderdebruin_+of+de+header+van+mijn+blog+eigen+code+of+een+plugin+is.+Om+voor+jou+die+vraag+ook+even+te+beantwoorden%3A+het+is+eigen+code+en+in+deze+post+lees+je+hoe+jij+het+ook+kan+maken+%3A%29%0AHTML+%26amp%3B+PHP%0A%0A%0A%0A++++++++++++%0A%09%09%09jQuery%28func" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fheader-van-hiranthi-nl%2F&amp;title=Header+van+hiranthi.nl&amp;bodytext=Dinsdag+vroeg+%40sanderdebruin_+of+de+header+van+mijn+blog+eigen+code+of+een+plugin+is.+Om+voor+jou+die+vraag+ook+even+te+beantwoorden%3A+het+is+eigen+code+en+in+deze+post+lees+je+hoe+jij+het+ook+kan+maken+%3A%29%0AHTML+%26amp%3B+PHP%0A%0A%0A%0A++++++++++++%0A%09%09%09jQuery%28func" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fheader-van-hiranthi-nl%2F&amp;title=Header+van+hiranthi.nl" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/header-van-hiranthi-nl/" onclick="addBookmark(event);" title="Header van hiranthi.nl" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Header van hiranthi.nl&amp;body=Dinsdag vroeg @sanderdebruin_ of de header van mijn blog eigen code of een plugin is. Om voor jou die vraag ook even te beantwoorden: het is eigen code en in deze post lees je hoe jij het ook kan maken :)
HTML &amp; PHP
jQuery(func - http://hiranthi.nl/tutorials/header-van-hiranthi-nl/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/header-van-hiranthi-nl/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>Meerdere achtergronden</title><link>http://hiranthi.nl/tutorials/meerdere-achtergronden/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=meerdere-achtergronden</link> <comments>http://hiranthi.nl/tutorials/meerdere-achtergronden/#comments</comments> <pubDate>Tue, 17 Aug 2010 12:00:18 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[achtergrond]]></category> <category><![CDATA[achtergrondafbeelding]]></category> <category><![CDATA[background]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1825</guid> <description><![CDATA[Het is mogelijk om je website meerdere achtergronden te geven voor een leuk effect. Wat ik in deze post laat zien is behoorlijk makkelijk, maar complexere combinaties zijn zeker mogelijk! In de afbeelding hierboven lijkt het misschien 1 achtergrond, maar het zijn er echt twee. Dat kun je in het online voorbeeld zien, als je [...]]]></description> <content:encoded><![CDATA[<p>Het is mogelijk om je website meerdere achtergronden te geven voor een leuk effect. Wat ik in deze post laat zien is behoorlijk makkelijk, maar complexere combinaties zijn zeker mogelijk!<span
id="more-1825"></span></p><p><a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/2010/08/multiple-bgs.jpg" class="lightbox" ><img
class="aligncenter size-large wp-image-1839" src="http://famire.nl/wp-content/blogs.dir/6/files/2010/08/multiple-bgs-618x200.jpg" alt="" width="618" height="200" /></a></p><p>In de afbeelding hierboven lijkt het misschien 1 achtergrond, maar het zijn er echt twee. Dat kun je in het <a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/tuts/multiple-bgs/" class="broken_link">online voorbeeld</a> zien, als je de pagina scrollt zul je namelijk zien dat de afbeelding in de rondjes verandert.</p><h2>De CSS</h2><pre><pre lang="css">
html, body { margin:0; padding:0; height:auto; min-height:100%; _height:100%; color:#fff; font-family:Verdana, Arial, Helvetica, sans-serif; }
html { background: url(&#039;pattern.gif&#039;) 0 0; }
body { background: url(&#039;body-bg.png&#039;) 0 0 fixed; font-size:.8em; clear:both; }
</pre></pre><p>Zoals je in de CSS kunt zien geef je de <code>html</code> &amp; <code>body</code> een hoogte van 100%. Dit is belangrijk voor als de content niet genoeg is om het scherm te vullen. Anders krijg je onderin een stuk &#8216;leeg&#8217;.</p><p>Dan zie je hoe een achtergrond aan de <code>html</code> &amp; <code>body</code> wordt toegevoegd. Zorg er wel voor dat de achtergrond voor de <code>body</code> groot genoeg is voor grote beeldschermen (bij dit voorbeeld zul je de rondjes aan de rechterkant nog eens zien op een 24&#8243; beeldscherm bijvoorbeeld).<br
/> De <code>body</code> heeft een <code>bgproperty fixed</code>, hierdoor blijft de grijze achtergrond op z&#8217;n plaats en zie je de <code>html</code> achtergrond er doorheen bewegen.</p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/achtergrondafbeelding-100-groot/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2009/11/152865_3868-100x100-custom.jpg" alt="Achtergrondafbeelding 100% groot" title="Achtergrondafbeelding 100% groot" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/achtergrondafbeelding-100-groot/" rel="bookmark">Achtergrondafbeelding 100% groot</a></h3><p>Het kan zijn dat je een keer een website moet maken waarvan jij, of je opdrachtgever, de achtergrond graag 100% breed en 100% hoog wil ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/10/quickview-618x200.gif" alt="Quick preview van je producten" title="Quick preview van je producten" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/quick-preview-producten/" rel="bookmark">Quick preview van je producten</a></h3><p>Je wil je bezoekers zo min mogelijk laten wachten op je website, voor webshops geldt dit uiteraard ook. Om je bezoekers de mogelijkheid te geven ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/customize-wordpress-login-pagina/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/custom-login-450x200.jpg" alt="Customize de WordPress login pagina" title="Customize de WordPress login pagina" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/customize-wordpress-login-pagina/" rel="bookmark">Customize de WordPress login pagina</a></h3><p>Er zijn meerdere plugins beschikbaar om de login pagina van WordPress te customizen. Erg handig, maar minder grappig als je nog weleens van theme wil ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-achtergronden%2F&amp;t=Meerdere+achtergronden" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Meerdere+achtergronden%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1825%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-achtergronden%2F&amp;title=Meerdere+achtergronden&amp;notes=Het+is+mogelijk+om+je+website+meerdere+achtergronden+te+geven+voor+een+leuk+effect.+Wat+ik+in+deze+post+laat+zien+is+behoorlijk+makkelijk%2C+maar+complexere+combinaties+zijn+zeker+mogelijk%21%0A%0AIn+de+afbeelding+hierboven+lijkt+het+misschien+1+achtergrond%2C" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-achtergronden%2F&amp;title=Meerdere+achtergronden&amp;bodytext=Het+is+mogelijk+om+je+website+meerdere+achtergronden+te+geven+voor+een+leuk+effect.+Wat+ik+in+deze+post+laat+zien+is+behoorlijk+makkelijk%2C+maar+complexere+combinaties+zijn+zeker+mogelijk%21%0A%0AIn+de+afbeelding+hierboven+lijkt+het+misschien+1+achtergrond%2C" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fmeerdere-achtergronden%2F&amp;title=Meerdere+achtergronden" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/meerdere-achtergronden/" onclick="addBookmark(event);" title="Meerdere achtergronden" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Meerdere achtergronden&amp;body=Het is mogelijk om je website meerdere achtergronden te geven voor een leuk effect. Wat ik in deze post laat zien is behoorlijk makkelijk, maar complexere combinaties zijn zeker mogelijk!In de afbeelding hierboven lijkt het misschien 1 achtergrond, - http://hiranthi.nl/tutorials/meerdere-achtergronden/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/meerdere-achtergronden/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Customize de WordPress login pagina</title><link>http://hiranthi.nl/tutorials/customize-wordpress-login-pagina/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=customize-wordpress-login-pagina</link> <comments>http://hiranthi.nl/tutorials/customize-wordpress-login-pagina/#comments</comments> <pubDate>Tue, 09 Feb 2010 13:00:36 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[WordPress]]></category> <category><![CDATA[css]]></category> <category><![CDATA[login]]></category> <category><![CDATA[stylesheet]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/?p=1371</guid> <description><![CDATA[Er zijn meerdere plugins beschikbaar om de login pagina van WordPress te customizen. Erg handig, maar minder grappig als je nog weleens van theme wil wisselen en ook telkens een bijpassende login-pagina wilt hebben. Daarom zet ik het benodigde gewoon in de map van mijn theme, als ik dan van theme wissel is het loginscherm [...]]]></description> <content:encoded><![CDATA[<p>Er zijn <a
rel="nofollow" target="_blank" href="http://wordpress.org/extend/plugins/search.php?q=custom+login&amp;sort=">meerdere plugins</a> beschikbaar om de login pagina van WordPress te customizen. Erg handig, maar minder grappig als je nog weleens van theme wil wisselen en ook telkens een bijpassende login-pagina wilt hebben.<span
id="more-1371"></span> Daarom zet ik het benodigde gewoon in de map van mijn theme, als ik dan van theme wissel is het loginscherm ook meteen gewijzigd.</p><h2>Klein beetje code</h2><p>Om je login-pagina te customizen heb je maar een klein beetje code nodig:</p><pre><pre lang="php">&lt;?php
add_action(&#039;login_head&#039;, &#039;my_custom_login&#039;, 0);
function my_custom_login()
{
  echo &#039;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; href=&quot;&#039;.get_bloginfo(&#039;template_directory&#039;).&#039;/css/login.css&quot; /&gt;&#039;;
} // end my_custom_login
?&gt;</pre></pre><p>Met bovenstaande code voeg je <code>login.css</code> aan de header van wp-login.php toe. In dat CSS bestand moet je de standaard CSS van WordPress overschrijven (helaas kun je de stylesheets die door WordPress zelf worden ingeladen niet gemakkelijk &#8211; zonder wp-login.php te bewerken &#8211; verwijderen).</p><h3>Mijn CSS</h3><pre><pre lang="css">
html body { border-top:30px solid #efefef!important; background:#efefef url(&#039;../img/body_bg.jpg&#039;) 0 0 repeat-x; font-size:1em; line-height:1.2em; font-family: Arial, Helvetica, sans-serif; font-weight:normal; color:#000; }

/* link - terug naar de site */
body.login p#backtoblog { position:absolute; margin:0; padding:0; top:0; left:0; width:75%; }
body.login p#backtoblog a { color:#000; font-size:.8em; text-decoration:none; }
body.login p#backtoblog a:hover { color:#000; text-decoration:underline; }

/* logo */
body h1 { width:204px; height:52px; padding:0 0 20px; display:inline; display:block; margin:0 auto; overflow:hidden; }
body h1 a { width:204px; height:52px; display:inline; display:block; float:left; background:url(&#039;../img/logo.gif&#039;) 0 0 no-repeat; text-decoration:none; text-indent:-9999px; }

/* login div */
body #login { width:320px; margin:8.4em auto 0; }

/* form */
body form { margin-left:8px; padding:16px; font-weight:normal; -moz-border-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; background:#fff; -moz-box-shadow:none; -khtml-box-shadow:none; -webkit-box-shadow:none; box-shadow:none; }
body form label { color:#000; font-size:1em; font-weight:bold; font-style:italic; font-family:Georgia, &quot;Times New Roman&quot;, Times, serif; text-transform:lowercase; padding:0 0 0 5px; }
body form input { color:#000; -moz-border-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; }
body #login form p { margin-bottom:0; }
body form p { margin-bottom:24px; }
body form #user_pass,
body form #user_login,
body form #user_email { font-size:1em; width:97%; padding:3px; margin-top:2px; margin-right:6px; margin-bottom:16px; border:1px solid #000; background:#fff; }
body form #user_pass:focus,
body form #user_login:focus,
body form #user_email:focus { outline-color:#bdd73c; }
/* submit button */
body form .button-primary { padding:5px 10px; font-size:.9em; border:none; background:#000 none; color:#fff; font-weight:bold; text-transform:lowercase; cursor:pointer; text-decoration:none; margin-top:-5px; -moz-border-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px; border-radius:5px; }
body form .button-primary:hover { background-color:#bdd73c; color:#000; text-shadow:none; }
/* checkbox - gegevens onthouden */
body form .forgetmenot { font-weight:normal; float:left; margin-bottom:0; }
body form .forgetmenot label { font-weight:normal; padding:0; font-size:.7em; line-height:.7em; }
body form .forgetmenot label input#rememberme { margin:0 2px 0 0; display:inline-block; }

body form .submit,
body .alignright { float:right; }

/* error | message */
body #login_error,
body .message { margin:0 0 16px 8px; border:1px solid; padding:12px; -moz-border-radius:5px; -khtml-border-radius:5px; -webkit-border-radius:5px; border-radius:5px;}

/* ww vergeten link etc. */
body.login p#nav { margin:0 0 0 8px; padding:16px; }
body.login p#nav a { color:#000!important; font-size:.8em; text-decoration:none; text-shadow:none; }
body.login p#nav a:hover { color:#09c!important; text-decoration:underline; }
</pre></pre><h2>Extra code</h2><p>Om je login-pagina nog wat meer te customizen kun je de volgende snippets ook toevoegen. De eerste zorgt ervoor dat de URL waarnaar het logo linkt wordt verandert naar de URL van je WP-site:</p><pre><pre lang="php">&lt;?php
add_filter(&#039;login_headerurl&#039;, &#039;change_wp_login_url&#039;);
function change_wp_login_url()
{
  return get_bloginfo(&#039;url&#039;);
} // end change_wp_login_url
?&gt;</pre></pre><p>De volgende snippet zorgt ervoor dat de title van de link (van het logo) wordt gewijzigd naar de titel en tagline van je WP-site:</p><pre><pre lang="php">&lt;?php
add_filter(&#039;login_headertitle&#039;, &#039;change_wp_login_title&#039;);
function change_wp_login_title()
{
  return get_bloginfo(&#039;title&#039;).&#039; - &#039;.get_bloginfo(&#039;description&#039;);
} // end change_wp_login_title
?&gt;</pre></pre><h2>Mijn custom login</h2><p>De custom login van illutic WebDesign ziet er zo uit:</p><p><a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/custom-login.jpg" class="lightbox" ><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/custom-login-450x200.jpg" alt="" width="450" height="200" class="aligncenter size-large wp-image-1377" /></a></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/meerdere-achtergronden/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/08/multiple-bgs-618x200.jpg" alt="Meerdere achtergronden" title="Meerdere achtergronden" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/meerdere-achtergronden/" rel="bookmark">Meerdere achtergronden</a></h3><p>Het is mogelijk om je website meerdere achtergronden te geven voor een leuk effect. Wat ik in deze post laat zien is behoorlijk makkelijk, maar ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/login-integreren-pagina/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Login integreren in pagina" title="Login integreren in pagina" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/login-integreren-pagina/" rel="bookmark">Login integreren in pagina</a></h3><p>Je kent het vast wel: je hebt een leuke WordPress site waar mensen zich voor kunnen registreren en je wil ze dan ook graag de ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/domeinhouder-verschillende-domeinnamen/" rel="bookmark"><img
src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/layout-domeinhouder-600x200.jpg" alt="Domeinhouder voor verschillende domeinnamen" title="Domeinhouder voor verschillende domeinnamen" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/domeinhouder-verschillende-domeinnamen/" rel="bookmark">Domeinhouder voor verschillende domeinnamen</a></h3><p>Als je - net als ik - veel verschillende domeinnamen hebt geregistreerd waar je (nog) niks mee doet, dan hebben die over het algemeen een ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcustomize-wordpress-login-pagina%2F&amp;t=Customize+de+WordPress+login+pagina" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Customize+de+WordPress+login+pagina%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1371%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcustomize-wordpress-login-pagina%2F&amp;title=Customize+de+WordPress+login+pagina&amp;notes=Er+zijn+meerdere+plugins+beschikbaar+om+de+login+pagina+van+WordPress+te+customizen.+Erg+handig%2C+maar+minder+grappig+als+je+nog+weleens+van+theme+wil+wisselen+en+ook+telkens+een+bijpassende+login-pagina+wilt+hebben.+Daarom+zet+ik+het+benodigde+gewoon" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcustomize-wordpress-login-pagina%2F&amp;title=Customize+de+WordPress+login+pagina&amp;bodytext=Er+zijn+meerdere+plugins+beschikbaar+om+de+login+pagina+van+WordPress+te+customizen.+Erg+handig%2C+maar+minder+grappig+als+je+nog+weleens+van+theme+wil+wisselen+en+ook+telkens+een+bijpassende+login-pagina+wilt+hebben.+Daarom+zet+ik+het+benodigde+gewoon" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcustomize-wordpress-login-pagina%2F&amp;title=Customize+de+WordPress+login+pagina" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/customize-wordpress-login-pagina/" onclick="addBookmark(event);" title="Customize de WordPress login pagina" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Customize de WordPress login pagina&amp;body=Er zijn meerdere plugins beschikbaar om de login pagina van WordPress te customizen. Erg handig, maar minder grappig als je nog weleens van theme wil wisselen en ook telkens een bijpassende login-pagina wilt hebben. Daarom zet ik het benodigde gewoon - http://hiranthi.nl/tutorials/customize-wordpress-login-pagina/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/customize-wordpress-login-pagina/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>CSS dropdown navigatie</title><link>http://hiranthi.nl/tutorials/css-dropdown-navigatie/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=css-dropdown-navigatie</link> <comments>http://hiranthi.nl/tutorials/css-dropdown-navigatie/#comments</comments> <pubDate>Tue, 02 Feb 2010 13:00:35 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[css]]></category> <category><![CDATA[html]]></category> <category><![CDATA[navigatie]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/cms/?p=1211</guid> <description><![CDATA[Dropdown navigatie is heel erg hip en niet te vergeten: heel erg handig. Je hoeft niet alle pagina&#8217;s in beeld te hebben, maar wel alle pagina&#8217;s zijn beschikbaar via het menu. In deze tutorial laat ik zien hoe je gemakkelijk een CSS dropdown menu kan maken die meerdere niveau&#8217;s diep is (vier, inclusief de hoofdlaag, [...]]]></description> <content:encoded><![CDATA[<p>Dropdown navigatie is heel erg hip en niet te vergeten: heel erg handig. Je hoeft niet alle pagina&#8217;s in beeld te hebben, maar wel alle pagina&#8217;s zijn beschikbaar via het menu.<span
id="more-1211"></span> In deze tutorial laat ik zien hoe je gemakkelijk een CSS dropdown menu kan maken die meerdere niveau&#8217;s diep is (vier, inclusief de hoofdlaag, om precies te zijn).</p><h2>HTML voor de navigatie</h2><pre><pre lang="html">
&lt;ul id=&quot;navigatie&quot;&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Geen subpagina&#039;s&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Twee niveau&#039;s&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Drie niveau&#039;s&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Heeft submenu&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Vier niveau&#039;s&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Heeft submenu&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Heeft submenu&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#pagina&quot;&gt;Pagina&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
</pre></pre><p>Het resultaat dat je hebt met bovenstaande HTML is het volgende:</p><p
style="text-align: center"><a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/css-dropdown-alleenhtml.gif" class="broken_link"><img
class="aligncenter size-large wp-image-1214" src="http://famire.nl/wp-content/blogs.dir/6/files/2010/02/css-dropdown-alleenhtml-285x200.gif" alt="CSS dropdown navigatie tutorial" width="285" height="200" /></a></p><h2>CSS</h2><p>Met alleen de HTML ziet de navigatie er nog ongelooflijk kaal uit natuurlijk. De CSS voor alle vier de niveau&#8217;s:</p><pre><pre lang="css">/* navigatie - niveau 1 */
ul#navigatie { width:740px; height:40px; display:block; float:left; background:#bbb url(&#039;bg.gif&#039;) 0 0 repeat-x; }
ul#navigatie li { position:relative; height:40px; display:block; float:left; }
ul#navigatie li a { font-weight:bold; color:#fff; padding:12px 10px; display:block; }
ul#navigatie li:hover a,
ul#navigatie li a:hover { background:#bbb url(&#039;bg.gif&#039;) 0 -40px repeat-x; }
/* navigatie - niveau 2 */
ul#navigatie li ul { position:absolute; top:40px; display:none; width:175px; z-index:2; }
ul#navigatie li:hover ul { display:block; }
ul#navigatie li ul li { clear:both; height:auto; width:100%; }
ul#navigatie li:hover ul li a,
ul#navigatie li ul li a { background:#efefef none; padding:10px; width:155px; display:block; color:#bbb; font-weight:normal; }
ul#navigatie li ul li:hover a,
ul#navigatie li ul li a:hover { background:#bbb none; color:#fff; font-style:italic; }
/* navigatie - niveau 3 */
ul#navigatie li:hover ul li ul,
ul#navigatie li ul li ul { position:absolute; top:0; left:175px; display:none; background:#090 none; z-index:3; }
ul#navigatie li ul li:hover ul { display:block; }
ul#navigatie li ul li ul li { }
ul#navigatie li ul li:hover ul li a,
ul#navigatie li ul li ul li a { font-style:normal; }
ul#navigatie li ul li ul li:hover a,
ul#navigatie li ul li ul li a:hover { background:#efefef none; color:#bbb; font-style:italic; }
/* navigatie - niveau 4 */
ul#navigatie li:hover ul li ul li ul,
ul#navigatie li ul li ul li ul { position:absolute; top:0; left:175px; display:none; background:#090 none; z-index:3; }
ul#navigatie li ul li ul li:hover ul { display:block; }
ul#navigatie li ul li ul li ul li { }
ul#navigatie li ul li ul li:hover ul li a,
ul#navigatie li ul li ul li ul li a { font-style:normal; }
ul#navigatie li ul li ul li ul li:hover a,
ul#navigatie li ul li ul li ul li a:hover { background:#bbb none; color:#fff; }
</pre></pre><p>Inclusief de CSS ziet het menu er zo uit: <a
rel="nofollow" target="_blank" href="http://famire.nl/wp-content/blogs.dir/6/files/tuts/css-dropdown/index.html" class="broken_link">demo CSS dropdown navigatie</a> (opent in dit venster).</p><h2>IE6 ondersteuning</h2><p><em>IE6 ondersteund geen <code>:hover</code> op andere elementen dan <code>a</code>, het dropdown menu zal in IE6 dus niet werken.</em></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2-wordpress/" rel="bookmark"><img
src="/files/2011/02/menu-toevoegen1-618x200.png" alt="Dropdown navigatie 2.0 in WordPress" title="Dropdown navigatie 2.0 in WordPress" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2-wordpress/" rel="bookmark">Dropdown navigatie 2.0 in WordPress</a></h3><p>Sander vroeg me in mijn post of er ook ergens een tutorial was voor zo'n soort menu in WordPress. Ik weet dat Remkus ermee bezig ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Dropdown navigatie 2.0" title="Dropdown navigatie 2.0" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/dropdown-navigatie-2/" rel="bookmark">Dropdown navigatie 2.0</a></h3><p>Een tijd geleden heb ik een tutorial geschreven over het maken van een CSS dropdown navigatie. In deze tutorial behandel ik hetzelfde principe, alleen anders ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/freebies/oude-dingen-nieuwe-plek-navbuttons/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Navigatie buttons" title="Navigatie buttons" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/freebies/oude-dingen-nieuwe-plek-navbuttons/" rel="bookmark">Navigatie buttons</a></h3><p>Nog wat oude downloads teruggevonden: navigatie buttons. Let wel op: de buttons zijn in 2005 gemaakt en in die periode waren kleine letters 'je-van-het' (buttons ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcss-dropdown-navigatie%2F&amp;t=CSS+dropdown+navigatie" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=CSS+dropdown+navigatie%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1211%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcss-dropdown-navigatie%2F&amp;title=CSS+dropdown+navigatie&amp;notes=Dropdown+navigatie+is+heel+erg+hip+en+niet+te+vergeten%3A+heel+erg+handig.+Je+hoeft+niet+alle+pagina%27s+in+beeld+te+hebben%2C+maar+wel+alle+pagina%27s+zijn+beschikbaar+via+het+menu.+In+deze+tutorial+laat+ik+zien+hoe+je+gemakkelijk+een+CSS+dropdown+menu+kan+" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcss-dropdown-navigatie%2F&amp;title=CSS+dropdown+navigatie&amp;bodytext=Dropdown+navigatie+is+heel+erg+hip+en+niet+te+vergeten%3A+heel+erg+handig.+Je+hoeft+niet+alle+pagina%27s+in+beeld+te+hebben%2C+maar+wel+alle+pagina%27s+zijn+beschikbaar+via+het+menu.+In+deze+tutorial+laat+ik+zien+hoe+je+gemakkelijk+een+CSS+dropdown+menu+kan+" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fcss-dropdown-navigatie%2F&amp;title=CSS+dropdown+navigatie" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/css-dropdown-navigatie/" onclick="addBookmark(event);" title="CSS dropdown navigatie" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=CSS dropdown navigatie&amp;body=Dropdown navigatie is heel erg hip en niet te vergeten: heel erg handig. Je hoeft niet alle pagina's in beeld te hebben, maar wel alle pagina's zijn beschikbaar via het menu. In deze tutorial laat ik zien hoe je gemakkelijk een CSS dropdown menu kan  - http://hiranthi.nl/tutorials/css-dropdown-navigatie/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/css-dropdown-navigatie/feed/</wfw:commentRss> <slash:comments>12</slash:comments> </item> <item><title>Stylesheet wisselen</title><link>http://hiranthi.nl/tutorials/stylesheet-wisselen/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stylesheet-wisselen</link> <comments>http://hiranthi.nl/tutorials/stylesheet-wisselen/#comments</comments> <pubDate>Sun, 31 Jan 2010 13:00:06 +0000</pubDate> <dc:creator>hiranthi</dc:creator> <category><![CDATA[Tutorials]]></category> <category><![CDATA[css]]></category> <category><![CDATA[JavaScript]]></category> <category><![CDATA[kleur aanpassen]]></category> <category><![CDATA[stylesheet]]></category><guid
isPermaLink="false">http://www.hiranthi.nl/cms/?p=1190</guid> <description><![CDATA[Wil je met meerdere kleuren werken op je website? En dan bedoel ik: kleur wisseling zoals op mijn blog. Of wil je juist totaal verschillende opmaken beschikbaar maken voor je bezoekers? Dit kan door je bezoekers de stylesheets te laten wisselen. Maar hoe doe je dat dan? JavaScript Het wisselen tussen de stylesheets doen we [...]]]></description> <content:encoded><![CDATA[<p>Wil je met meerdere kleuren werken op je website? En dan bedoel ik: kleur wisseling zoals op mijn blog. Of wil je juist totaal verschillende opmaken beschikbaar maken voor je bezoekers? Dit kan door je bezoekers de stylesheets te laten wisselen.<span
id="more-1190"></span> Maar hoe doe je dat dan?</p><h2>JavaScript</h2><p>Het wisselen tussen de stylesheets doen we met behulp van JavaScript. De JS maakt een cookie aan en zorgt ervoor dat de bezoeker niet elke pagina (en zelfs een later bezoek niet, als het maar binnen de geldigheid van de cookie is) de kleur opnieuw hoeft te kiezen.</p><p>De JavaScript zetten we in een apart bestand &#8216;styleswitcher.js&#8217; genaamd, deze moeten we in de header van de pagina laden:</p><pre><pre lang="javascript">
function setActiveStyleSheet(title) {
  var i, a, main;
  for(i=0; (a = document.getElementsByTagName(&quot;link&quot;)[i]); i++) {
    if(a.getAttribute(&quot;rel&quot;).indexOf(&quot;style&quot;) != -1 &amp;#038;&amp; a.getAttribute(&quot;title&quot;)) {
      a.disabled = true;
      if(a.getAttribute(&quot;title&quot;) == title) a.disabled = false;
    }
  }
}

function getActiveStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName(&quot;link&quot;)[i]); i++) {
    if(a.getAttribute(&quot;rel&quot;).indexOf(&quot;style&quot;) != -1 &amp;#038;&amp; a.getAttribute(&quot;title&quot;) &amp;#038;&amp; !a.disabled) return a.getAttribute(&quot;title&quot;);
  }
  return null;
}

function getPreferredStyleSheet() {
  var i, a;
  for(i=0; (a = document.getElementsByTagName(&quot;link&quot;)[i]); i++) {
    if(a.getAttribute(&quot;rel&quot;).indexOf(&quot;style&quot;) != -1
       &amp;#038;&amp; a.getAttribute(&quot;rel&quot;).indexOf(&quot;alt&quot;) == -1
       &amp;#038;&amp; a.getAttribute(&quot;title&quot;)
       ) return a.getAttribute(&quot;title&quot;);
  }
  return null;
}

function createCookie(name,value,days) {
  if (days) {
    var date = new Date();
    date.setTime(date.getTime()+(days*24*60*60*1000));
    var expires = &quot;; expires=&quot;+date.toGMTString();
  }
  else expires = &quot;&quot;;
  document.cookie = name+&quot;=&quot;+value+expires+&quot;; path=/&quot;;
}

function readCookie(name) {
  var nameEQ = name + &quot;=&quot;;
  var ca = document.cookie.split(&#039;;&#039;);
  for(var i=0;i &lt; ca.length;i++) {
    var c = ca[i];
    while (c.charAt(0)==&#039; &#039;) c = c.substring(1,c.length);
    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
  }
  return null;
}

window.onload = function(e) {
  var cookie = readCookie(&quot;style&quot;);
  var title = cookie ? cookie : getPreferredStyleSheet();
  setActiveStyleSheet(title);
}

window.onunload = function(e) {
  var title = getActiveStyleSheet();
  createCookie(&quot;style&quot;, title, 365);
}

var cookie = readCookie(&quot;style&quot;);
var title = cookie ? cookie : getPreferredStyleSheet();
setActiveStyleSheet(title);
</pre></pre><pre lang="html">&lt;script type=&quot;text/javascript&quot; src=&quot;styleswitcher.js&quot;&gt;&lt;/script&gt;</pre><h2>Stylesheets</h2><p>Je basis stylesheet voeg je gewoon in zoals je gewend bent. De extra stylesheets moeten ook geladen worden in de header van de pagina, maar wel op een iets andere manier dan je basis stylesheet:</p><pre><pre lang="html">
&lt;link rel=&quot;alternate stylesheet&quot; type=&quot;text/css&quot; href=&quot;alternatief.css&quot; title=&quot;alternatief&quot; media=&quot;all&quot; /&gt;</pre></pre><p>Zoals je kan zien is de <code>rel</code> van de stylesheet geen <code>stylesheet</code>, maar <code>alternate stylesheet</code>. Daarnaast moet je een unieke <code>title</code> meegeven aan de stylesheet. Door deze <code>title</code> weet de JavaScript naar welke stylesheet geswitched moet worden.</p><h3>Switchen tussen stylesheets</h3><p>Om te kunnen wisselen tussen de verschillende stylesheets hebben we ook elementen nodig in de body van de pagina die hiervoor zorgen:</p><pre lang="html">&lt;a href=&quot;#&quot; onclick=&quot;setActiveStyleSheet(&#039;alternatief&#039;); return false;&quot;&gt;alternatief&lt;/a&gt;</pre><p><em>Bovenstaande JavaScript code is niet door mij geschreven, helaas weet ik niet door wie het origineel wél geschreven is.</em></p><div
id="seo_alrp_related"><br
class=\"clear\" /><h2>Gerelateerde posts</h2><ul><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-in-een/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Meerdere stylesheets in één" title="Meerdere stylesheets in één" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-in-een/" rel="bookmark">Meerdere stylesheets in één</a></h3><p>Ben je, net als ik, gewend aan het gebruiken van meerdere stylesheets en heb je geen zin om ze telkens handmatig onder elkaar te plakken ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-update/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="Meerdere stylesheets in één, een update" title="Meerdere stylesheets in één, een update" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/meerdere-stylesheets-update/" rel="bookmark">Meerdere stylesheets in één, een update</a></h3><p>In mijn post laat ik je zien hoe je meerdere stylesheet bestanden in 1 css bestand kunt zetten om laadtijden te verkorten terwijl de bestanden ...</p><br
class=</div></li><li><div
class="seo_alrp_rl_thumb" style="float:left; margin: 0 10px 5px 0; border: 2px solid #eee ; padding: 2px;"><a
href="http://hiranthi.nl/tutorials/wysiwyg-editor-theme/" rel="bookmark"><img
src="http://hiranthi.nl/wp-content/plugins/seo-alrp/default_thumbnail.gif" alt="De WYSIWYG editor bij je theme laten passen" title="De WYSIWYG editor bij je theme laten passen" width="90" height="90" class="seo_alrp_thumb" /></a></div><div
class="seo_alrp_rl_content"><h3><a
href="http://hiranthi.nl/tutorials/wysiwyg-editor-theme/" rel="bookmark">De WYSIWYG editor bij je theme laten passen</a></h3><p>De WYSIWYG-editor (TinyMCE) van WordPress wil klanten nog weleens in de war brengen. Het gebruikte lettertype (en tekstkleur) kunnen namelijk sterk afwijken van hetgeen op ...</p><br
class=</div></li></ul></div><div
class="wp-socializer 16px"><ul
class="wp-socializer-jump columns-no"><li><a
href="http://www.facebook.com/share.php?u=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fstylesheet-wisselen%2F&amp;t=Stylesheet+wisselen" title="Share this on Facebook" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Facebook" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -391px; border:0;"/></a></li><li><a
href="http://twitter.com/home?status=Stylesheet+wisselen%20-%20http%3A%2F%2Fhiranthi.nl%3Fp%3D1190%20" title="Tweet this !" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Twitter" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1615px; border:0;"/></a></li><li><a
href="http://delicious.com/post?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fstylesheet-wisselen%2F&amp;title=Stylesheet+wisselen&amp;notes=Wil+je+met+meerdere+kleuren+werken+op+je+website%3F+En+dan+bedoel+ik%3A+kleur+wisseling+zoals+op+mijn+blog.+Of+wil+je+juist+totaal+verschillende+opmaken+beschikbaar+maken+voor+je+bezoekers%3F+Dit+kan+door+je+bezoekers+de+stylesheets+te+laten+wisselen.+Maar" title="Post this on Delicious" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Delicious" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -221px; border:0;"/></a></li><li><a
href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fstylesheet-wisselen%2F&amp;title=Stylesheet+wisselen&amp;bodytext=Wil+je+met+meerdere+kleuren+werken+op+je+website%3F+En+dan+bedoel+ik%3A+kleur+wisseling+zoals+op+mijn+blog.+Of+wil+je+juist+totaal+verschillende+opmaken+beschikbaar+maken+voor+je+bezoekers%3F+Dit+kan+door+je+bezoekers+de+stylesheets+te+laten+wisselen.+Maar" title="Submit this to Digg" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Digg" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -272px; border:0;"/></a></li><li><a
href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fhiranthi.nl%2Ftutorials%2Fstylesheet-wisselen%2F&amp;title=Stylesheet+wisselen" title="Submit this to StumbleUpon" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="StumbleUpon" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1530px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/tutorials/stylesheet-wisselen/" onclick="addBookmark(event);" title="Stylesheet wisselen" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Add to favorites" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -0px; border:0;"/></a></li><li><a
href="mailto:subject=Stylesheet wisselen&amp;body=Wil je met meerdere kleuren werken op je website? En dan bedoel ik: kleur wisseling zoals op mijn blog. Of wil je juist totaal verschillende opmaken beschikbaar maken voor je bezoekers? Dit kan door je bezoekers de stylesheets te laten wisselen. Maar - http://hiranthi.nl/tutorials/stylesheet-wisselen/" title="Email this" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="Email" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -374px; border:0;"/></a></li><li><a
href="http://hiranthi.nl/feed/rss/" title="Subscribe to RSS" target="_blank" rel="nofollow"><img
src="http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-mask-16px.gif" alt="RSS" style="width:16px; height:16px; background: transparent url(http://hiranthi.famire.nl/wp-content/plugins/wp-socializer/public/social-icons/wp-socializer-sprite-16px.png) no-repeat; background-position:0px -1377px; border:0;"/></a></li></ul><div
class="wp-socializer-clearer"></div></div>]]></content:encoded> <wfw:commentRss>http://hiranthi.nl/tutorials/stylesheet-wisselen/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Content Delivery Network via Amazon Web Services: S3: cdn.hiranthi.nl.s3.amazonaws.com (user agent is rejected)

Served from: hiranthi.nl @ 2012-05-19 07:21:46 -->
