<?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>Web Design / Development &#124; FLDtrace</title>
	<atom:link href="http://www.fldtrace.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.fldtrace.com</link>
	<description></description>
	<lastBuildDate>Sun, 21 Feb 2010 19:41:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Include different sidebar in Wordpress, depending on the section you are</title>
		<link>http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section</link>
		<comments>http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section#comments</comments>
		<pubDate>Sun, 21 Feb 2010 18:21:37 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section-you-are</guid>
		<description><![CDATA[The power of if / else statement in Wordpress
The requests mentioned above, can be implemented with a smart if /else statement solution:


&#60;!--sidebar conditional navigation sidebar--&#62;
        &#60;?php if &#40;is_page_template&#40;'page-services.php'&#41; &#41; &#123; ?&#62;
                &#60;!--than include [...]


Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress' rel='bookmark' title='Permanent Link: 8 Recommended Useful Plugins for Wordpress'>8 Recommended Useful Plugins for Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>The power of if / else statement in Wordpress<span id="more-718"></span></h2>
<p>The requests mentioned above, can be implemented with a smart if /else statement solution:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;!--sidebar conditional navigation sidebar--&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page_template<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'page-services.php'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
                &lt;!--than include the services specific navigation--&gt;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;side-nav-services.php&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">elseif</span> <span style="color: #009900;">&#40;</span> is_home<span style="color: #009900;">&#40;</span><span style="color: #cc66cc;">7</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_single<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_category<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
                &lt;!--if not, include the blog navigation for blog section--&gt;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;side-nav-blog.php&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span>
        	<span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
            	&lt;!--if not anything from above, include the generic page navigation for the rest of the pages--&gt;
                <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">include</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;side-nav-pages.php&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>            
            <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>




<h2>Code explained:</h2>
<h3>First statement</h3>
<p>The first piece of code tells us if we have a <a ref="http://codex.wordpress.org/Pages#Page_Templates">page template</a> page-services.php, than it should include the navigation for that part. The <b>side-nav-services.php</b> contains:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   &lt;div id=&quot;side-nav&quot; class=&quot;side-nav-services&quot;&gt;
   		&lt;ul&gt;
        	&lt;h3&gt;Services&lt;/h3&gt;
                        &lt;!--the code from below will display sub-pages of services page with the id of 4--&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_pages<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'child_of=4&amp;title_li&amp;depth=1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
    	&lt;/ul&gt;
&nbsp;
        &lt;ul&gt;
                &lt;!--this code will display the popular links, manageable from wordpress backend--&gt;
        	<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_links<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;/ul&gt;
    &lt;/div&gt;</pre></div></div>




<h3>Second statement</h3>
<p>The second portion of code, includes instead, the blog links from the file <b>side-nav-blog.php</b> for blog index, categories and single page. Here, the sidebar contains:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   &lt;div id=&quot;side-nav&quot; class=&quot;side-nav-blog&quot;&gt;
      		&lt;ul&gt;&lt;h3&gt;Latest Posts&lt;/h3&gt;
        	&lt;li&gt;&lt;a 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>/health-wisdom&quot;&gt;Health Wisdom Blog&lt;/a&gt;
				&lt;ul&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_get_archives<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'title_li=&amp;type=postbypost&amp;limit=10'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
                &lt;/ul&gt;           
            &lt;/li&gt;
    	&lt;/ul&gt;
   		&lt;ul&gt;&lt;h3&gt;Categories&lt;/h3&gt;
        	&lt;li&gt;&lt;a 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>/health-wisdom&quot;&gt;Health Wisdom Blog&lt;/a&gt;
				&lt;ul&gt;
					<span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_list_categories<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'&amp;title_li='</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
                &lt;/ul&gt;           
            &lt;/li&gt;
    	&lt;/ul&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">function_exists</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'wp_tag_cloud'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&nbsp;
        &lt;ul&gt;&lt;h3&gt;Popular Tags&lt;/h3&gt;
            <span style="color: #000000; font-weight: bold;">&lt;?php</span> wp_tag_cloud<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'smallest=8&amp;largest=22'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;/ul&gt;
        <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endif</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> 
    &lt;/div&gt;</pre></div></div>




<h3>Third statement</h3>
<p>The last logic, tells that if there is no blog or services section it should load the normal navigation. <b>side-nav-pages.php</b> contains:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">   &lt;div id=&quot;side-nav&quot; class=&quot;side-nav-pages&quot;&gt;
        &lt;ul&gt;
        	<span style="color: #000000; font-weight: bold;">&lt;?php</span> get_links<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
        &lt;/ul&gt;
    &lt;/div&gt;</pre></div></div>




<h2>Conclusion</h2>
<p>While the same result could have been accomplished with other method, by creating page templates for each sidebar, that method is more clumsy and the site harder to maintain.</p>
<p>If / else statements, can be of tremendous help in accomplishing tasks with Wordpress (or other CMS applications) and can be used for displaying categories in a certain way or output code only in desired areas of the website.</p>
<p>This programming logic, also allows the developer code faster and the websites will be easier to maintain.</p>


<p>Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress' rel='bookmark' title='Permanent Link: 8 Recommended Useful Plugins for Wordpress'>8 Recommended Useful Plugins for Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Why web designers should develop using Windows</title>
		<link>http://www.fldtrace.com/freelancing/why-web-designers-should-develop-using-windows</link>
		<comments>http://www.fldtrace.com/freelancing/why-web-designers-should-develop-using-windows#comments</comments>
		<pubDate>Sun, 14 Feb 2010 19:13:18 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[freelancing]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/freelancing/why-web-designers-should-develop-using-windows-7</guid>
		<description><![CDATA[Windows platform is the most used
W3schools has published a research page with Operating system statistics and Windows family counts 90% of the most used operating systems.
As some of you may know, there are some CSS bugs that can be encountered only using a specific OS, even if you use the same browser.
I remember while I [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<h2>Windows platform is the most used<span id="more-699"></span></h2>
<p>W3schools has published a research page with <a href="http://www.w3schools.com/browsers/browsers_os.asp">Operating system statistics</a> and Windows family counts 90% of the most used operating systems.</p>
<p>As some of you may know, there are some CSS bugs that can be encountered only using a specific OS, even if you use the same browser.</p>
<p>I remember while I was working on a project and I had to setup some images as background, it showed great using Firefox on my Windows but I&#8217;ve been informed that on Firefox for Mac OS X, it was displayed 5px down, enough to ruin the design. If I would have used the MAC I would have tried to make it look right there and possibly ignored the rest of 90% of users, as I couldn&#8217;t know about the problem.</p>

<h2>Using Windows 7, you can run native IE6 and IE7</h2>
<p>Maybe the Windows Vista was a bad OS but those of you who have installed Windows 7, I am sure you were surprised in a good way. At least I am.</p>
<p>While there are some tools for testing websites in IE using <a href="http://www.my-debugbar.com/wiki/IETester/HomePage">IE Tester</a> or <a href="http://spoon.net/browsers/">spoon.net/browsers</a>, there are differences and the big minus is that you cannot install the IE developer toolbar, as you can do on a native IE6 or IE7 (the toolbar is not Firebug, but helps!).</p>
<p>If you have Windows 7, you can run native IE6 and IE7 using XP Mode feature. I found an article that shows you <a href="http://www.sitepoint.com/blogs/2009/11/20/ie6-ie7-ie8-windows-7-home/">how to install a virtual machine and setup XP Mode</a>.</p>

<h2>Viruses are not detected on Macs &#8211; security issue</h2>
<p>Now you may think, it is very good to stay away from viruses and it is for the regular users. However, we developers, are responsible and need to identify potential threats, while having a mac you won&#8217;t be aware of those and the rest of 90% of users might get infected.</p>
<p>I got a job recently, where I had to improve a Joomla website. While the website had no issues, when I tried to log-in in administrator area, my local Bitdefender antivirus, blocked some Trojans.</p>
<p>The Mac users might still have a solution. Chrome seems to identify better infected websites, and won&#8217;t let you access it, so you will know at least that there is a problem.</p>
<p>However, if you try to clean up an infected website, you still need an antivirus to point to the infected files but Antiviruses for Macs detects threats for Macs, not for PC and so, not for majority of users.</p>

<h2>Buying a Windows system is cheaper</h2>
<p>Productivity is important, that&#8217;s why each 3 years or so, I personally, need to change my laptop with a more advanced one, as technology is moving faster and the software demands more resources. </p>
<p>Even if you use a Mac, you still need to upgrade it after a period and they don&#8217;t come cheap.</p>

<h3>Conclusion:</h3>
<p>While the Windows is more vulnerable to viruses, buggier, not that stable as a Mac, I believe the points discussed above, should make you think about making the switch or decide a platform, as a web developer.</p>
<p>Let me know what&#8217;s you opinion regarding building websites on Mac OS X vs Windows.</p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/freelancing/why-web-designers-should-develop-using-windows/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>BBpress Front Page Text Plugin</title>
		<link>http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin</link>
		<comments>http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin#comments</comments>
		<pubDate>Mon, 25 Jan 2010 18:28:35 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/wordpress/bbpress-front-page-text</guid>
		<description><![CDATA[Download BBpress Front Page Plugin
You can download the version 1.0 of the plugin here.
As you may know, the current version of BBpress does not include the Wordpress nice functions of formatting text but this release also includes a WYSIWYG editor so you can format the text using headings, paragraphs, etc.

Installation
Unzip the the file and add [...]


Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress' rel='bookmark' title='Permanent Link: 8 Recommended Useful Plugins for Wordpress'>8 Recommended Useful Plugins for Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Parent Page Title in Wordpress'>How To Display Parent Page Title in Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Download BBpress Front Page Plugin<span id="more-681"></span></h2>
<p>You can download the version 1.0 of the plugin <a href="http://www.fldtrace.com/releases/front-page-text.zip">here</a>.</p>
<p>As you may know, the current version of BBpress does not include the Wordpress nice functions of formatting text but this release also includes a WYSIWYG editor so you can format the text using headings, paragraphs, etc.</p>

<h2>Installation</h2>
<p>Unzip the the file and add within your bb-plugins folder than go in the bb-admin control panel and activate the plugin.</p>
<p>The <b>Front Page Text</b> tab should appear after the Settings tab. Go inside and add the desired text. </p>
<p>The only thing left to do is to call that text, within your <b>front-page.php</b> in your active theme folder by using the tag:</p>


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



<p>The plug-in is built in mind for home page, but you can add the tag anywhere in your template files, for example the registration page.</p>

<h3>Compatibility</h3>
<p>The plug-in has been tested with the BBpress 0.9 and 1.02 versions and it is built to work with further BBpress releases, unless some radical modifications are added on the way.</p>

<h3>Notes</h3>
<p>The plug-in is free to use and modify. Enjoy!</p>
<p>Let me know if you have any feedback. </p>


<p>Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress' rel='bookmark' title='Permanent Link: 8 Recommended Useful Plugins for Wordpress'>8 Recommended Useful Plugins for Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Parent Page Title in Wordpress'>How To Display Parent Page Title in Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to load Javascript on specific pages in Wordpress</title>
		<link>http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress</link>
		<comments>http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress#comments</comments>
		<pubDate>Wed, 20 Jan 2010 23:44:08 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/wordpress/load-javascript-just-on-specific-pages-in-wordpress</guid>
		<description><![CDATA[Adding the JavaScript in header
In this post, I want to show you how to include JavaScript, just on specific pages or areas in Wordpress.
First thing you have to do, is to add the JavaScript you want to load in your theme folder of Wordpress. To keep everything organized, create a folder called &#8220;Scripts&#8221; or &#8220;Js&#8221;.

Than, [...]


Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Dynamic Menu Pages In Wordpress'>How To Display Dynamic Menu Pages In Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin' rel='bookmark' title='Permanent Link: BBpress Front Page Text Plugin'>BBpress Front Page Text Plugin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Adding the JavaScript in header<span id="more-665"></span></h2>
<p>In this post, I want to show you how to include JavaScript, just on specific pages or areas in Wordpress.
First thing you have to do, is to add the JavaScript you want to load in your theme folder of Wordpress. To keep everything organized, create a folder called &#8220;Scripts&#8221; or &#8220;Js&#8221;.</p>

<p>Than, open you header.php file from you active theme and instead calling the link as you normally do, paste the following code within the <b>head</b> tag:</p>

<h3>The Code</h3>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;!--home page custom JS--&gt;
    &lt;script type='text/javascript' src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/Scripts/customJS.js&quot;&gt;&lt;/script&gt;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>




<h3>Code explained</h3>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span></pre></div></div>



<p>That means that if you have permalinks active and a page called home, the JavaScript will load just on that page. </p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #339933;">&lt;!--</span>home page custom JS<span style="color: #339933;">--&gt;</span></pre></div></div>



<p>This is a simple HTML comment to keep organized or to make the life easier to other developers who might have to work with your code.</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;script type='text/javascript' src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/Scripts/customJS.js&quot;&gt;&lt;/script&gt;</pre></div></div>



<p>Basically, this is the link to our JavaScript file that could stay by itself just that will be loaded on all of the pages.</p>


<h3>Variations</h3>

<p>Additionally, you can  have more pages like that inclusive a page id (please replace just this line in the code from above):</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'contact'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'45'</span><span style="color: #009900;">&#41;</span></pre></div></div>




<p>Or sections as:</p>


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




<p>For more options please refer to <a href="http://codex.wordpress.org/Conditional_Tags">Wordpress Conditional Tags</a></p>

<h2>Remove Wordpress plugins JavaScript</h2>

<p>This is a tricky one. The websites which use Wordpress as CMS, need several plug-ins to achieve the desired functionality. Many of those plug-ins insert JavaScript within the <b>head</b> tag using the wp_head() hook.</p>
<p>What happens if we want to call that JavaScript code of specific plugins, just on certain pages? For example, I have a contact form and I want to load its JavaScript only on contact page or I have a video page and the plugin that embeds the videos should be active only on that page.</p>
<p>Wordpress offer us a way to disable JavaScript, also called deregister JavaScript, unfortunately not all of the plug-ins are written properly, so with some of them it will not be possible. </p>
<h3>Code needed</h3>
<p>Using following code in our <b>functions.php</b> file, will disable a plug-in&#8217;s JavaScript except the page you specify:</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_action<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'wp_print_scripts'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'my_deregister_javascript'</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">100</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">function</span> my_deregister_javascript<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> <span style="color: #339933;">!</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Contact'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	wp_deregister_script<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'contact-form-7'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
     <span style="color: #009900;">&#125;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>




<p>The only plug-ins you can target, are those which use <b>wp_enqueue_script</b> and you need to find the <b>handle</b> for that specific plugin by browsing it&#8217;s main .php file. </p>
<p>Justin Tadlock on his blog, offers a more in depth <a href="http://justintadlock.com/archives/2009/08/06/how-to-disable-scripts-and-styles">tutorial</a> regarding this matter.</p>

<h2>References</h2>
<p>The order you insert JavaScript is important, especially when you deal with Jquery in Wordpress. You might want to check out this article as well:
<a href="http://digwp.com/2009/06/use-google-hosted-javascript-libraries-still-the-right-way/">Use Google-Hosted JavaScript Libraries (…still the Right Way)</a>
</p>

<p>Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Dynamic Menu Pages In Wordpress'>How To Display Dynamic Menu Pages In Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin' rel='bookmark' title='Permanent Link: BBpress Front Page Text Plugin'>BBpress Front Page Text Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Mistakes print/graphic designers do when design websites</title>
		<link>http://www.fldtrace.com/design/mistakes-printgraphic-designers-do-when-design-websites</link>
		<comments>http://www.fldtrace.com/design/mistakes-printgraphic-designers-do-when-design-websites#comments</comments>
		<pubDate>Mon, 30 Nov 2009 00:56:34 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[Design]]></category>
		<category><![CDATA[Array]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=481</guid>
		<description><![CDATA[The designs themselves are admirable, however are created by designers, who have little or no experience in real Web design world, or working with (X)HTML/CSS and in some situations, do not have the final implementation in mind.

While those issues are not critical, I think straighten out some of those, can save time to both parties [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>The designs themselves are admirable, however are created by designers, who have little or no experience in real Web design world, or working with (X)HTML/CSS and in some situations, do not have the final implementation in mind.<span id="more-481"></span></p>

<p>While those issues are not critical, I think straighten out some of those, can save time to both parties involved in the project and can also provide better usability and accessibility. Thus far, I have experienced the following:</p>
<h2>No home link in navigation</h2>
<p><img class="alignnone size-full wp-image-530" title="no-home-link2" src="http://www.fldtrace.com/wp-content/uploads/2009/11/no-home-link2.jpg" alt="no-home-link2" width="710" height="100" /></p>

<p>This is a usability issue that I have observed in designs I have received. The logo can still act as a link which takes on first page and a lot of us know about that, but in the same time there are visitors who don’t know that the logo is supposed to take home.</p>

<p>Home button link in navigation is a must have and the visitors are familiar with that in other websites.</p>
<h2>Simple or not footer information</h2>
<p><img class="alignnone size-full wp-image-531" title="no-footer1" src="http://www.fldtrace.com/wp-content/uploads/2009/11/no-footer1.jpg" alt="no-footer1" width="710" height="100" /></p>

<p>Most of the experienced web designers know that the footer is an important area of the website. You can present there a lot of information, which otherwise, you cannot present in other areas. Furthermore, you can repeat here most of the important links of your website which is very good for SEO. You can also present contact information and company address which will help you better rank in Google business listings. Other information you can display there, may be latest blog posts, sitemap, socials, latest tweet pulled from a twitter account, meta information like copyright and year etc.</p>

<p>Again, I had to slice designs with just minimal information or no footer at all! Footer is an important element and users expect it, so you should use it.</p>
<h2>Not using a grid system</h2>
<img class="alignnone size-full wp-image-529" title="no-grid1" src="http://www.fldtrace.com/wp-content/uploads/2009/11/no-grid1.jpg" alt="no-grid1" width="710" height="100" />

<p>Every designer should know about the  <a href="http://en.wikipedia.org/wiki/Golden_ratio">golden ratio</a> which makes a design more esthetic.</p>

<p>While out there are some excellent designs, which are not based on the golden ratio, using it, is a good practice and can save time while designing and developing.</p>

<p>Not once, I had to calculate that left sidebar 268px wide with a 13px margin right and the 569px wide text area. You know what I mean by that.</p>

<p>I use <a href="http://960.gs/">960.gs grid system</a> when I design in Photoshop, and make design process faster while designs look excellent.</p>
<h2>Repeating backgrounds not repeat</h2>
<p><img class="alignnone size-full wp-image-535" title="no-bg-repeat" src="http://www.fldtrace.com/wp-content/uploads/2009/11/no-bg-repeat.jpg" alt="no-bg-repeat" width="710" height="100" /></p>

<p>I had to tutor some designers, how the repeating background should work. If that website edge repeats vertically, will the starting point match the ending point of that edge? What happens when the content box gets very long? Will the background beneath repeat properly?</p>

<p>While some of these tasks are attributed to the one who slice the design, the website should be designed with that in mind.</p>

<p>Most of times I have to use clone stamp tool, one of my best friends in Photoshop, to fix those <em>non </em> repeating backgrounds.
<h2>Provide design in illustrator format instead of Photoshop</h2>
<p><img class="alignnone size-full wp-image-537" title="ilustrator" src="http://www.fldtrace.com/wp-content/uploads/2009/11/ilustrator.jpg" alt="ilustrator" width="710" height="100" /></p>

<p>While some designers are more comfortable using Illustrator rather Photoshop, I consider the websites should be layout in Photoshop. Illustrator can be used for logos and other website illustration elements, thereafter imported in Photoshop, but ultimately, Photoshop should remain the main choice for designing the website. Illustrator is vector creation software while Photoshop is image creation and editing software, while the website, is not vector; it is just a static image needed to be sliced.</p>

<p>If you are better using Illustrator and you slice the layout by yourself, you are welcomed use it. However, most web designers use Photoshop for website design and are familiar with that.</p>
<h2>Layers in Photoshop not organized properly</h2>
<p><img class="alignnone size-full wp-image-538" title="psd-layers" src="http://www.fldtrace.com/wp-content/uploads/2009/11/psd-layers.jpg" alt="psd-layers" width="710" height="100" /></p>

<p>That is another issue I encountered trying to find my way in document. A website has header, content and footer areas. Within header we usually have logo, navigation, search box or related elements. Each one of these elements should get their own folder and should be organized in their appearance order.</p>

<p>The layers should also have the option to be turned on/off, especially the navigation buttons which, eventually, will be used as background.</p>

<p>Text layers should not be rasterized so whenever somebody tries to edit the layer they can copy the text as needed.</p>
<h2>Web safe fonts</h2>
<p><img class="alignnone size-full wp-image-540" title="web-safe" src="http://www.fldtrace.com/wp-content/uploads/2009/11/web-safe.jpg" alt="web-safe" width="710" height="100" /></p>

<p>Print designers are very fond of their chosen fonts and I am sure they would like using it in all website copy. I agree that the font is a very subtle, but important element of design itself, however it is not possible, using traditional methods, include that everywhere.  <a href="http://typekit.com/">Typekit</a> can help in those kind of situations, however not everybody is willing to pay yearly fees or simply the desired font might not be included in the library.</p>

<p>Usually I use <a href="http://www.mikeindustries.com/blog/sifr/">sIFR</a> method for headlines text replacement and images as a background for navigation.</p>

<p>The font for the body still needs to be web safe font like Arial, Helvetica, Georgia etc. That is another point I have to clarify while I work with a designer.</p>
<h2>Not all elements are designed</h2>
<p><img class="alignnone size-full wp-image-541" title="elements-design" src="http://www.fldtrace.com/wp-content/uploads/2009/11/elements-design.jpg" alt="elements-design" width="710" height="100" /></p>

<p>Here I am referring to those list items bullets, headings 2, 3 and 4, block quote if necessary, contact form inputs, which are not provided most of times.</p>

<p>Luckily I can improvise those by myself, however would make everything easier if the original designer would provide those elements designed.</p>
<h3>Which was your experience?</h3>
<p>Which other issues have you encountered while working with somebody else design? Please comment below.</p>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/design/mistakes-printgraphic-designers-do-when-design-websites/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How To Display Dynamic Menu Pages In Wordpress</title>
		<link>http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress</link>
		<comments>http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress#comments</comments>
		<pubDate>Mon, 31 Aug 2009 02:55:50 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=312</guid>
		<description><![CDATA[Non Productive Method (Wordpress Codex Solution)

Please note that this solution is non productive whenever you want to have normal text as menu links. In case you want to have a navigation using images, this would be the solution for you. The main navigation from this website it is built using a background image and switch [...]


Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section' rel='bookmark' title='Permanent Link: Include different sidebar in Wordpress, depending on the section you are'>Include different sidebar in Wordpress, depending on the section you are</a></li>
<li><a href='http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Parent Page Title in Wordpress'>How To Display Parent Page Title in Wordpress</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<h2>Non Productive Method (Wordpress Codex Solution)<span id="more-312"></span></h2>

<p>Please note that this solution is non productive whenever you want to have normal text as menu links. In case you want to have a navigation using images, this would be the solution for you. The main navigation from <a href="http://malorestaurant.com">this website</a> it is built using a background image and switch its position based on the ID of the menu item, with the help of CSS. This type of navigation can be done just using Wordpress solution (next code), as we can&#8217;t assign ID&#8217;s dynamically, using Wordpress Dynamic Menu Page Method, described later in tutorial.
</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&lt;ul&gt;
	&lt;li id=&quot;home-item&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'home'</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;">' class=&quot;current&quot;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt; &lt;a 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; class=&quot;current&quot;&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
	&lt;li id=&quot;services-item&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'services'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'subpage1'</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">||</span> is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'subpage2'</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;">' class=&quot;current&quot;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt;&lt;a href=&quot;services&quot;&gt;&lt;span&gt;Services&lt;/span&gt;&lt;/a&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;a href=&quot;services/subpage1&quot;&gt;Subpage 1&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;services/subpage2&quot;&gt;Subpage 2&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;li&gt;
	&lt;li id=&quot;contact-item&quot; <span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span>is_page<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'contact'</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;">' class=&quot;current&quot;'</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&gt; &lt;a href=&quot;contact&quot; class=&quot;current&quot;&gt;&lt;span&gt;Contact&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</pre></div></div>




<p>The first list item, Home, has a conditional to check if is home page it should set a class of &#8220;current&#8221; so you can display the current page in a different way, so the usability of the site will be increased.</p>
<p>The second list item has two sub pages, that using CSS, will show up as drop down. If the Services page will be active, Wordpress will automatically assign a class of &#8220;current&#8221; to its list item.</p>
<p>In this method the &#8220;span&#8221; tag will help us to hide the text so we can view just the background image.</p>

<p>The example contains just 3 list items, but if we want to have more, it can can become very  hard at some point, to maintain the menu. Plus, if you want to give your client the control over navigation this is not a viable solution.</p>

<h2>Wordpress Dynamic Menu Page Method</h2>

<p>You can  see a <a href="http://www.kaiac.ro/">demo</a> of this method, within a website I have developed. All of the menu there, is generated dynamically by the code described below.</p>
<p>You can see in that demo, that we can still assign background images and have in the same time real text. The text is wrapped with a &#8220;span tag&#8221; so we can use a CSS method called <a href="http://www.alistapart.com/articles/slidingdoors/">sliding doors</a> to set images as background for this menu-items.</p>

<h3>The dynamic solution would be:</h3>


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




<h3>The Code Explained</h3>
<p>
This piece of code is a Wordpress tag that calls the pages and set their titles a names. Also we want to display any sub page as a dropdown with the help of CSS so we specify a depth of 2. </p>


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



<p>If we want to display a higher number of sub pages, we just increase the number or remove &#8220;&#038;depth=2&#8243; so will display unlimited sub pages.
</p>

<p>Because we want to set images as background for the menu items, we have to add a span tag:</p>


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




<h3>Html Result:</h3>
<p>Now we have a totally dynamic menu and submenu, that will display as HTML like so:</p>


<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;ul&gt;
    &lt;li class=&quot;current&quot;&gt;&lt;a href=&quot;home&quot;&gt;&lt;span&gt;Home&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;
    &lt;li&gt;&lt;a href=&quot;services&quot;&gt;&lt;span&gt;Services&lt;/span&gt;&lt;/a&gt;
        &lt;ul&gt;
            &lt;li&gt;&lt;a href=&quot;subpage-1&quot;&gt;Subpage 1&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href=&quot;subpage2&quot;&gt;Subpage 2&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/li&gt;
&lt;/ul&gt;</pre></div></div>




<h3>The CSS</h3>
<p>Now we have the HTML dynamic generated, but we still need to customize it with CSS. We will do this in a separate lesson, where I will show you how to set up background images for menu items, as a <a href="http://www.apple.com/">Apple menu way</a>.</p>

<h3>Wordpress Menu Page Highlighting With CSS</h3>
<p>Now if you take a look the source code, you will see that Wordpress outputs a &#8220;current_page_item&#8221; class to the corresponding li tag of the page where you are. Now is very easy, with the help of CSS, to display in bold, the current page link:</p> 

<h4>Highlight the parent page</h4>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">li<span style="color: #6666ff;">.current_page_item</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">&#125;</span></pre></div></div>




<h4>Highlight parent&#8217;s child page</h4>
<p>What if you want to have the parent page bold, while you are on one if its subpage? Wordpress comes in help again, outputting dynamically, a special class &#8220;current_page_ancestor&#8221;, so our code will look like that in this case: </p>


<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">li<span style="color: #6666ff;">.current_page_ancestor</span> a <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span><span style="color: #993333;">bold</span><span style="color: #00AA00;">&#125;</span></pre></div></div>




<p>That was it. I assumed in this article, that you already have basic CSS knowledge and you are aware of CSS specificity.</p> 




<h2>Some Helpful Plugins:</h2>
<h3>Page Exclusion</h3>
<p>If you need to have some pages excluded from navigation you need the <a href="http://wordpress.org/extend/plugins/exclude-pages/">exclude pages</a> plugin.</p>

<h3>My Page Order</h3>
<p>A really useful plugin is <a href="http://wordpress.org/extend/plugins/my-page-order/">my page order</a> plugin, which will allow you to order the pages in your menus.</p>

<h3>Page Tree Overview</h3>
<p>If it happens to work on a website with a lot of pages <a href="http://wordpress.org/extend/plugins/page-tree/">wordpress page tree</a> will give you an overview of those and you can reach a specific page really quick in order to edit it.</p>

<h2>Resources:</h2>
<p>Wordpress non productive method: <a href="http://codex.wordpress.org/Dynamic_Menu_Highlighting">Wordpress Dynamic Menu Highlighting</a>.</p>
<p>Here you can find a great resource for Wordpress dynamic page menu: <a href="http://digwp.com/2009/07/delicious-recipes-wordpress-page-menus/">Delicious Recipes Wordpress Page Menus</a>.</p>


<p>Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section' rel='bookmark' title='Permanent Link: Include different sidebar in Wordpress, depending on the section you are'>Include different sidebar in Wordpress, depending on the section you are</a></li>
<li><a href='http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Parent Page Title in Wordpress'>How To Display Parent Page Title in Wordpress</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>How To Display Parent Page Title in Wordpress</title>
		<link>http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress</link>
		<comments>http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress#comments</comments>
		<pubDate>Thu, 28 May 2009 04:35:51 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress</guid>
		<description><![CDATA[
Here is the working example, on a website I helped developing. You can see how the parent title on the left sidebar, remains unchanged and is dynamically updated, for all of the other pages.



To make it work, just insert the code anywhere in your wordpress template files, within the loop:



&#60;?php 
&#160;
$current = $post-&#62;ID;
$parent = $post-&#62;post_parent;
$grandparent_get [...]


Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Dynamic Menu Pages In Wordpress'>How To Display Dynamic Menu Pages In Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section' rel='bookmark' title='Permanent Link: Include different sidebar in Wordpress, depending on the section you are'>Include different sidebar in Wordpress, depending on the section you are</a></li>
<li><a href='http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin' rel='bookmark' title='Permanent Link: BBpress Front Page Text Plugin'>BBpress Front Page Text Plugin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>
Here is the working <a href="http://www.jointuse.org/resources/policy/current-legislation/">example</a>, on a website I helped developing. You can see how the parent title on the left sidebar, remains unchanged and is dynamically updated, for all of the other pages.
<span id="more-281"></span></p>

<p>
To make it work, just insert the code anywhere in your wordpress template files, within the loop:
</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> 
&nbsp;
<span style="color: #000088;">$current</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: #000088;">$parent</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: #000088;">$grandparent_get</span> <span style="color: #339933;">=</span> get_post<span style="color: #009900;">&#40;</span><span style="color: #000088;">$parent</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$grandparent</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$grandparent_get</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$root_parent</span> <span style="color: #339933;">=</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$grandparent</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">!==</span> <span style="color: #000088;">$root_parent</span> <span style="color: #339933;">=</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$current</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> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$grandparent</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span><span style="color: #b1b100;">echo</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$parent</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #009900;">&#125;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>




<p>
In case you want to display the immediate parent of a subpage, you can use the following code. In this portion of code, you have a link to the parent page itself.
</p>


<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span>
&nbsp;
<span style="color: #000088;">$parent_title</span> <span style="color: #339933;">=</span> get_the_title<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> get_permalink<span style="color: #009900;">&#40;</span><span style="color: #000088;">$post</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">post_parent</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$parent_title</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> <span style="color: #000088;">$children</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>




<p>Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Dynamic Menu Pages In Wordpress'>How To Display Dynamic Menu Pages In Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/include-different-sidebar-in-wordpress-depending-on-section' rel='bookmark' title='Permanent Link: Include different sidebar in Wordpress, depending on the section you are'>Include different sidebar in Wordpress, depending on the section you are</a></li>
<li><a href='http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin' rel='bookmark' title='Permanent Link: BBpress Front Page Text Plugin'>BBpress Front Page Text Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/how-to-display-parent-page-title-in-wordpress/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>8 Recommended Useful Plugins for Wordpress</title>
		<link>http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress</link>
		<comments>http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress#comments</comments>
		<pubDate>Mon, 13 Apr 2009 02:21:20 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com/?p=253</guid>
		<description><![CDATA[


1. All in One Seo Pack 

This plugin is far the most popular SEO plugin for Wordpress and will boost you visibility in Search Engines, by giving you the ability to set-up custom titles, description and keywords for every page. 
If you have Wordpress 2.7.1 you might encounter some problems when you have set-up in [...]


Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Dynamic Menu Pages In Wordpress'>How To Display Dynamic Menu Pages In Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin' rel='bookmark' title='Permanent Link: BBpress Front Page Text Plugin'>BBpress Front Page Text Plugin</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<ul id="ul_number">
<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/all-in-one-seo.jpg" alt="All In One SEO" class="blog_img_float" />
<strong>1. All in One Seo Pack</strong><span id="more-253"></span> 

<p>This plugin is far the most popular SEO plugin for Wordpress and will boost you visibility in Search Engines, by giving you the ability to set-up custom titles, description and keywords for every page. </p>
<p>If you have Wordpress 2.7.1 you might encounter some problems when you have set-up in Reading Options from Settings tab, the Front page to Home and the Posts page to Blog. You won&rsquo;t be able to separate titles of those two pages just using conditionals between in template Header file and manually insert the titles for this Home and Blog pages. It is more a Wordpress bug than a plugin bug.</p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/" target="_blank">Go to download page</a></p></li>

<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/contact-form-7.jpg" alt="Contact Form 7" class="blog_img_float" />
<strong>2. Contact form 7</strong>

<p>I would say one of the most popular contact forms for Wordpress for providing simplicity and versatility. You can fully customize and provides great included protection against spam, using Askimet plugin without necessary having to install Captcha, but you have that option also. You can even add the option to upload files.</p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/contact-form-7/" target="_blank">Go to download page</a></p></li>


<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/sitemap_gen.jpg" alt="Dagoon Sitemap Generator" class="blog_img_float" />
<strong>3. Dagoon Sitemap Generator</strong>
<p>Some of its features include: support for multi-level categories and pages, category/page exclusion, multiple-page generation with navigation, permalink support, choose what to display, what order to list items in, show comment counts and/or post dates, and much more.
The plugin will give you a sitemap page in minutesm will keep the links inside tha page up to date and you won&rsquo;t have to worry about it anymore.</p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/sitemap-generator/" target="_blank">Go to download page</a></p></li>


<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/fancy-box.jpg" alt="Fancy Box" class="blog_img_float" />
<strong>4. Fancy Box</strong>

<p>If you feel that the popular Light Box plugin animations are too boring, you can try Fancy Box which is similar with Light Box but gives you more animation options. 
After you install the plugin, it will apply Fancy Box to any image link, which opens an image. It uses jQuery so keep in mind that it might interfere with other plugin that is uses the same technology.</p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/fancybox-for-wordpress/" target="_blank">Go to download page</a></p></li>

<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/xml-sitemap.jpg" alt="Google XML Sitemaps" class="blog_img_float" />
<strong>5. Google XML Sitemaps</strong>

<p>This plugin will create a Google sitemaps compliant XML-Sitemap of your Wordpress pages and will inform all major search engines about any content update. This one also, is install and forget plugin and will help your SEO for sure.</p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/google-sitemap-generator/" target="_blank">Go to download page</a></p></li>

<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/advanced-excerpts.jpg" alt="Advanced Excerpt" class="blog_img_float" />
<strong>6. Advanced Excerpt</strong>

<p>In comparison with the similar plugin Evermore or default Wordpress excerpt, which shorten the posts by paragraph, this one give you more control and let you chose a word or character count for a post preview.</p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/advanced-excerpt/" target="_blank">Go to download page</a></p></li>  

<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/wp-ecommerce.jpg" alt="WP e-Commerce" class="blog_img_float" />
<strong>7. WP e-Commerce</strong>

<p>This shopping cart extension, I would say, is the most reliable free solution for Wordpress. 
If you want to take full advantage you will have to buy the paid version but totally worth it. </p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/wp-e-commerce/" target="_blank">Go to download page</a></p></li> 


<li class="clearfix">
<img src="http://www.fldtrace.com/images/blog/8-plugin/flutter.jpg" alt="Flutter" class="blog_img_float" />
<strong>8. Flutter</strong>

<p>Also known as a very buggy CMS plugin, still remains a robust solution for those who want to use Wordpress for content management system by creating custom write panels that can be fully customized (radio buttons, file uploads, image uploads, checkboxes, etc). </p>
<p>Flutter also includes power image manipulation (automatic resizing, cropping, watermarking, etc), edit in place (works instantly!), and modulation of your themes. </p>
<p class="link_p"><a href="http://wordpress.org/extend/plugins/fresh-page/" target="_blank">Go to download page</a></p></li> 

</ul>

<p>Related posts:<ol><li><a href='http://www.fldtrace.com/wordpress/load-javascript-on-specific-pages-in-wordpress' rel='bookmark' title='Permanent Link: How to load Javascript on specific pages in Wordpress'>How to load Javascript on specific pages in Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/how-to-display-dynamic-menu-in-wordpress' rel='bookmark' title='Permanent Link: How To Display Dynamic Menu Pages In Wordpress'>How To Display Dynamic Menu Pages In Wordpress</a></li>
<li><a href='http://www.fldtrace.com/wordpress/bbpress-front-page-text-plugin' rel='bookmark' title='Permanent Link: BBpress Front Page Text Plugin'>BBpress Front Page Text Plugin</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/wordpress/8-recommended-useful-plugins-for-wordpress/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FLDtrace 2.0 &#8211; New Design</title>
		<link>http://www.fldtrace.com/news/fldtrace-2_0</link>
		<comments>http://www.fldtrace.com/news/fldtrace-2_0#comments</comments>
		<pubDate>Fri, 06 Mar 2009 22:38:11 +0000</pubDate>
		<dc:creator>Lucian</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.fldtrace.com//?p=153</guid>
		<description><![CDATA[
The new website assures a better communication with the clients and offer more information about the web design process.



Better Search Engine Optimization has been integrated as well, using friendly links, keywords, description and distinctive titles for each page and post.



Please provide any feedback regarding the look and feel of this improved version. Also you can [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>
The new website assures a better communication with the clients and offer more information about the web design process.
<span id="more-153"></span></p>

<p>
Better Search Engine Optimization has been integrated as well, using friendly links, keywords, description and distinctive titles for each page and post.
</p>

<p>
Please provide any feedback regarding the look and feel of this improved version. Also you can make a comparison with the older version:
</p>

<p>
<a href="http://www.fldtrace.com//wp-content/uploads/2009/03/fldtrace_old.jpg"><img class="img_border" title="Older Website" src="http://www.fldtrace.com//wp-content/uploads/2009/03/fldtrace_old-150x150.jpg" alt="fldtrace_old" width="150" height="150" /></a>
</p>

<p>
The website complies with world wide web consortium coding rules:
</p>

<p>
    <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml10" alt="Valid XHTML 1.0 Transitional" height="31" width="88" /></a>
</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.fldtrace.com/news/fldtrace-2_0/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
