<?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>Degrama - Online Superstars &#187; Wordpress</title> <atom:link href="http://www.degrama.com/category/wordpress/feed/" rel="self" type="application/rss+xml" /><link>http://www.degrama.com</link> <description></description> <lastBuildDate>Fri, 21 Jan 2011 17:51:41 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Customized Navigation Bar in WordPress</title><link>http://www.degrama.com/wordpress/customized-navigation-bar-in-wordpress/</link> <comments>http://www.degrama.com/wordpress/customized-navigation-bar-in-wordpress/#comments</comments> <pubDate>Fri, 29 Jan 2010 20:52:09 +0000</pubDate> <dc:creator>Degrama</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Navigation]]></category><guid
isPermaLink="false">http://www.degrama.com/?p=344</guid> <description><![CDATA[Adding too many pages to a WordPress blog that has a navigation bar in the header can really make your WordPress blog a mess. There are options to control what pages are shown in the navigation bar and even a way to add external links. How To » The Template Tag, wp_list_pages(), displays a list [...]]]></description> <content:encoded><![CDATA[<p>Adding too many pages to a WordPress blog that has a navigation bar in the header can really make your WordPress blog a mess. There are options to control what pages are shown in the navigation bar and even a way to add external links.<br
/> <span
id="more-344"></span></p><h3>How To »</h3><p>The Template Tag, wp_list_pages(), displays a list of WordPress Pages as links. It is often used to customize the Sidebar or Header. So now the code of the top nav bar will look like this:</p><div
class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&lt;ul id=&quot;pagenav&quot;&gt;<br
/> &nbsp; &nbsp;&lt;li class=&quot;<span
style="color: #000000; font-weight: bold;">&lt;?php</span> <span
style="color: #b1b100;">if</span> <span
style="color: #009900;">&#40;</span> is_home<span
style="color: #009900;">&#40;</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span> <span
style="color: #b1b100;">echo</span> <span
style="color: #0000ff;">'current_page_item'</span><span
style="color: #339933;">;</span> <span
style="color: #009900;">&#125;</span> <span
style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt; &lt;a title=&quot;<span
style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">'name'</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span> <span
style="color: #000000; font-weight: bold;">?&gt;</span>&quot; href=&quot;<span
style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">'url'</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span> <span
style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;Home&lt;/a&gt;&lt;/li&gt;<br
/> &lt;/ul&gt;</div></div><p>You can simply edit the header.php file and exclude any page id you want, you can also include the pages you want.</p><h3>Creating Two-Tiered Conditional Navigation in WordPress »</h3><p>A common navigational scheme, parent pages on top and child pages (if they exist) on bottom as seen at the top of this post.</p><p><strong>How To »</strong></p><p>Darren Hoyt goes through a nice solution to help us: 1) query the page, 2) determine if there are child pages, and 3) properly highlight both the .current_page_parent and .current_page_item links.</p><div
class="codecolorer-container php default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div
class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">post_parent<span
style="color: #009900;">&#41;</span><br
/> <span
style="color: #000088;">$children</span> <span
style="color: #339933;">=</span> wp_list_pages<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">&quot;title_li=&amp;child_of=&quot;</span><span
style="color: #339933;">.</span><span
style="color: #000088;">$post</span><span
style="color: #339933;">-&gt;</span><span
style="color: #004000;">post_parent</span><span
style="color: #339933;">.</span><span
style="color: #0000ff;">&quot;&amp;echo=0&quot;</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span> <span
style="color: #b1b100;">else</span><br
/> <span
style="color: #000088;">$children</span> <span
style="color: #339933;">=</span> wp_list_pages<span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">&quot;title_li=&amp;child_of=&quot;</span><span
style="color: #339933;">.</span><span
style="color: #000088;">$post</span><span
style="color: #339933;">-&gt;</span><span
style="color: #004000;">ID</span><span
style="color: #339933;">.</span><span
style="color: #0000ff;">&quot;&amp;echo=0&quot;</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span><br
/> <span
style="color: #b1b100;">if</span> <span
style="color: #009900;">&#40;</span><span
style="color: #000088;">$children</span><span
style="color: #009900;">&#41;</span> <span
style="color: #009900;">&#123;</span> <span
style="color: #000000; font-weight: bold;">?&gt;</span></div></div><p>And then he show us how to use CSS to make sure the :active and :hover states display correctly whether or not subpages exist — if they do, the primary nav uses current_page_parent, if they don’t, it resorts to simply current_page_item.</p><h3>Use breadcrumbs</h3><p>Breadcrumbs are great for so many reasons: usability, SEO, etc. In terms of plugins, there are many options, my favorite is <a
title="Yoast Breadcrumbs" href="http://yoast.com/wordpress/breadcrumbs/" target="_blank">Yoast’s Breadcrumbs</a>, because it’s easy to implement. Another <a
title="Breadcrumb plugin" href="http://justintadlock.com/archives/2009/04/05/breadcrumb-trail-wordpress-plugin" target="_blank">breadcrumbs plugin</a>, gives you a new template tag called breadcrumb_trail() that you can place anywhere in your theme. Once that’s done, it’ll display a hierarchical menu of where the current visitor is on your site. It’s quite useful if you have more than a few pages or posts.</p><p><a
href="http://www.degrama.com/wp-content/uploads/wordpress-breadcrumbs.jpg"><img
class="alignnone size-full wp-image-327" title="Wordpress Breadcrumbs" src="http://www.degrama.com/wp-content/uploads/wordpress-breadcrumbs.jpg" alt="" width="500" height="40" /></a></p> ]]></content:encoded> <wfw:commentRss>http://www.degrama.com/wordpress/customized-navigation-bar-in-wordpress/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Creating a static homepage in WordPress</title><link>http://www.degrama.com/wordpress/creating-a-static-homepage-in-wordpress/</link> <comments>http://www.degrama.com/wordpress/creating-a-static-homepage-in-wordpress/#comments</comments> <pubDate>Fri, 29 Jan 2010 20:46:43 +0000</pubDate> <dc:creator>Degrama</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[Pages]]></category><guid
isPermaLink="false">http://www.degrama.com/?p=317</guid> <description><![CDATA[By default, a WordPress home page shows chronological blog post entries — with the most recent post at the top. If your goal is to have a WP-created Page with static information, WordPress will allow you to select a different page as your home page so that you can display more traditional content like information [...]]]></description> <content:encoded><![CDATA[<p>By default, a WordPress home page shows chronological blog post entries — with the most recent post at the top. If your goal is to have a WP-created Page with static information, WordPress will allow you to select a different page as your home page so that you can display more traditional content like information about yourself or your business.<br
/> <span
id="more-317"></span><br
/> <strong>How To »</strong><br
/> In your admin area, just go to Setting » Reading. Here you can decide if your home page will display your blog posts or a static page, if you choose a static page you can also choose which page to be your home page from the select box.</p><p><img
class="alignnone size-medium wp-image-329" title="Wordpress Static Homepage How" src="http://www.degrama.com/wp-content/uploads/wordpress-static-homepage-300x120.jpg" alt="" width="300" height="120" /></p><p><strong>Points to take care »</strong><br
/> First problem you may run into when you make a static page your home page is that the link to that page now appears in the main site navigation. Usually the page called “Home” in the main site navigation. This tutorial shows how to remove one of those links from your site navigation so that visitors to your site are not confused by the duplicate link.<br
/> The second problem is you will see that link again in the sidebar widget, the fix is pretty simple. The WordPress Pages navigation widget now allows you to exclude any page from its links by inserting the Page IDs of pages you want to exclude into the “Exclude” box in the Pages widget.</p> ]]></content:encoded> <wfw:commentRss>http://www.degrama.com/wordpress/creating-a-static-homepage-in-wordpress/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
Page Caching using disk (enhanced) (user agent is rejected)
Database Caching 4/11 queries in 0.006 seconds using disk
Object Caching 201/392 objects using disk

Served from: www.degrama.com @ 2012-02-05 18:25:37 -->
