<?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>MT Web Solutions</title>
	<atom:link href="http://mtws.fi/feed/" rel="self" type="application/rss+xml" />
	<link>http://mtws.fi</link>
	<description>Freelance Web Development</description>
	<lastBuildDate>Tue, 13 Dec 2011 09:56:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>WordPress 3.3 &#8220;Sonny&#8221; Released</title>
		<link>http://mtws.fi/blog/wordpress-3-3/</link>
		<comments>http://mtws.fi/blog/wordpress-3-3/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 07:53:22 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Automattic]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=481</guid>
		<description><![CDATA[The new WordPress version 3.3 has now been released. You should update your site as soon as possible since the new version includes a lot of  great improvements. One of the nicest updates is the new drag and drop media uploader. Other updates are: hover menus for the navigation (fly-out) new toolbar improved co-editing support [...]]]></description>
			<content:encoded><![CDATA[<p>The new WordPress version 3.3 has now been released. You should update your site as soon as possible since the new version includes a lot of  great improvements.</p>
<div id="attachment_483" class="wp-caption aligncenter" style="width: 470px"><a href="http://mtws.fi/wp-content/uploads/wp33.png"><img class=" wp-image-483 " title="WordPress 3.3. media uploader" src="http://mtws.fi/wp-content/uploads/wp33.png" alt="" width="460" /></a><p class="wp-caption-text">WordPress 3.3. media uploader</p></div>
<p>One of the nicest updates is the new drag and drop media uploader. Other updates are:</p>
<ul>
<li>hover menus for the navigation (fly-out)</li>
<li>new toolbar</li>
<li>improved co-editing support</li>
<li>Tumblr importer</li>
<li>pointer tips for new features included in each update</li>
<li>friendly welcome message for first-time users</li>
<li>improved dashboard experience on iPad and other tablets</li>
</ul>
<p>You can read more about the new features and updates and watch the release video at the <a href="http://wordpress.org/news/2011/12/sonny/">WordPress development blog</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/wordpress-3-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The New Carisma House Website</title>
		<link>http://mtws.fi/blog/the-new-carisma-house-website/</link>
		<comments>http://mtws.fi/blog/the-new-carisma-house-website/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 17:11:27 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Liisa Salomaa]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=467</guid>
		<description><![CDATA[Recently I have been redesigning and updating some old websites I worked on earlier. On of these sites is www.carismahouse.fi. Carisma House is the company of MB life coach Liisa Salomaa. The site, that was designed by an advertising agency, is running on WordPress and uses the built-in commenting system to display feedback from clients.]]></description>
			<content:encoded><![CDATA[<p>Recently I have been redesigning and updating some old websites I worked on earlier. On of these sites is <a title="Carisma House" href="http://www.carismahouse.fi/">www.carismahouse.fi</a>. Carisma House is the company of MB life coach Liisa Salomaa.</p>
<div id="attachment_470" class="wp-caption aligncenter" style="width: 310px"><a href="http://mtws.fi/wp-content/uploads/carismahouse1.png"><img class=" wp-image-470   " title="Carisma House" src="http://mtws.fi/wp-content/uploads/carismahouse1-300x97.png" alt="Carisma House website" width="300" /></a><p class="wp-caption-text">Carisma House website</p></div>
<p>The site, that was designed by an advertising agency, is running on WordPress and uses the built-in commenting system to display feedback from clients.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/the-new-carisma-house-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove Scrolling From WordPress Category List</title>
		<link>http://mtws.fi/blog/how-to-remove-scrolling-from-wordpress-category-list/</link>
		<comments>http://mtws.fi/blog/how-to-remove-scrolling-from-wordpress-category-list/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 16:01:55 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Codex]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=459</guid>
		<description><![CDATA[This is a quick tip about how to get rid of the scrollbar from the WordPress category post editor page. Just add the following code to your theme&#8217;s functions.php. The above code adds some CSS into the WordPress header. The admin_head action event makes sure that the CSS only gets added to the admin area. [...]]]></description>
			<content:encoded><![CDATA[<p>This is a quick tip about how to get rid of the scrollbar from the WordPress category post editor page. Just add the following code to your theme&#8217;s functions.php.</p>
<pre class="brush: php; title: ; notranslate">add_action('admin_head', 'remove_category_scrollbars');
function remove_category_scrollbars() {
echo '
&lt;style type=&quot;text/css&quot;&gt;
#category-all.tabs-panel {height: auto;}
&lt;/style&gt;
';
}</pre>
<p>The above code adds some CSS into the WordPress header. The <a title="Plugin API/Action Reference/admin head" href="http://codex.wordpress.org/Plugin_API/Action_Reference/admin_head">admin_head action event</a> makes sure that the CSS only gets added to the admin area. Take a look at the HTML markup of the WP admin area. With the help of admin_head and CSS you can change the appearance of almost anything you want.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-remove-scrolling-from-wordpress-category-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Hide The Entire WordPress Admin Menu</title>
		<link>http://mtws.fi/blog/how-to-hide-the-entire-wordpress-admin-menu/</link>
		<comments>http://mtws.fi/blog/how-to-hide-the-entire-wordpress-admin-menu/#comments</comments>
		<pubDate>Tue, 27 Sep 2011 11:00:57 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Codex]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=450</guid>
		<description><![CDATA[I once worked on a project where we wanted to hide the admin menu for authors since it was considered too confusing. We decided to hide the admin menu for all users with the user level under 4. The authors could still access the &#8220;add new post&#8221; and &#8220;edit post&#8221; pages from custom links added [...]]]></description>
			<content:encoded><![CDATA[<p>I once worked on a project where we wanted to hide the admin menu for authors since it was considered too confusing. We decided to hide the admin menu for all users with the<a href="http://codex.wordpress.org/User_Levels"> user level </a>under 4. The authors could still access the &#8220;add new post&#8221; and &#8220;edit post&#8221; pages from custom links added to the theme.</p>
<div id="attachment_451" class="wp-caption aligncenter" style="width: 470px"><a href="http://mtws.fi/wp-content/uploads/hide_admin_menu2.png"><img class="size-full wp-image-451 " title="Hiding The Admin Menu" src="http://mtws.fi/wp-content/uploads/hide_admin_menu2.png" alt="" width="460" /></a><p class="wp-caption-text">Hiding the WordPress admin menu</p></div>
<p>The admin menu can be hidden by adding the following code to the themes functions.php file:</p>
<pre class="brush: php; title: ; notranslate">add_action('admin_head', 'hide_the_entire_adminmenu');
function hide_the_entire_adminmenu() {
global $current_user;
get_currentuserinfo();
if($current_user-&gt;user_level &lt; 4) {
echo '
&lt;style type=&quot;text/css&quot;&gt;
#adminmenuback {display: none;} /*Hides the admin menu*/
#adminmenuwrap {display: none;} /*Hides the admin menu*/
#wpcontent {margin-left: 10px;} /*Makes the content area stretch across the entire page*/
&lt;/style&gt;
';
}
}</pre>
<p>The above is just a quick and dirty way to hide the admin menu. The menu items are still accessible by writing the url.</p>
<p>If you want to hide the menu bar you can read about how it is done in the post titled <a href="http://mtws.fi/blog/how-to-remove-the-wordpress-admin-bar/">How to Remove the WordPress Admin Bar</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-hide-the-entire-wordpress-admin-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Make Title, Category or Any Other Field Required in WordPress</title>
		<link>http://mtws.fi/blog/how-to-make-title-category-or-any-other-field-required-in-wordpress/</link>
		<comments>http://mtws.fi/blog/how-to-make-title-category-or-any-other-field-required-in-wordpress/#comments</comments>
		<pubDate>Sat, 03 Sep 2011 22:28:34 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[Josh Hartman]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress support forum]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=438</guid>
		<description><![CDATA[A while ago I was asked to make it required for the authors of a WordPress site to enter at least a title and a category for every post. If the title field would be empty or no category would be chosen the author should not be able to publish the post. By making small [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I was asked to make it required for the authors of a WordPress site to enter at least a title and a category for every post. If the title field would be empty or no category would be chosen the author should not be able to publish the post.</p>
<div id="attachment_448" class="wp-caption aligncenter" style="width: 310px"><a href="http://mtws.fi/wp-content/uploads/require_title.png"><img class="size-medium wp-image-448" title="Require Poste Title" src="http://mtws.fi/wp-content/uploads/require_title-300x129.png" alt="Require Poste Title" width="300" height="129" /></a><p class="wp-caption-text">Make Post Title Required</p></div>
<p>By making small adjustments to the following code snippets you should be able to make almost anything required before a post can be published.</p>
<p>First, add this to the functions.php file in your theme.</p>
<pre class="brush: php; title: ; notranslate">add_action('admin_print_scripts', 'title_and_cat_required');
function title_and_cat_required() {
global $post_type;
if($post_type=='post') {
wp_enqueue_script('require-post-title', get_bloginfo('template_directory') . '/require-title-and-cat.js');
}
}</pre>
<p>The code above will add the content of the file require-title-and-cat.js to the header of all admin pages when adding or editing posts. Change $post_type==&#8217;post&#8217; to $post_type==&#8217;page&#8217; if you want to run this on pages. You can also make the code run on only a custom post type if you need.</p>
<p>Next, you should create the file require-title-and-cat.js and put it in your themes&#8217; folder. The file should contain the following code:</p>
<pre class="brush: php; title: ; notranslate">jQuery(document).ready(function($){
$('#post').submit(function(event){
var title = $('#title').val();
if( title.length == 0 || title.replace(/\s/g,'').length == 0 ){
event.preventDefault();
$('div#notice').remove();
$(&quot;&lt;div id='notice' class='error below-h2'&gt;&lt;p&gt;Please give a title to the post.&lt;/p&gt;&lt;/div&gt;&quot;).insertAfter('h2');
alert(&quot;Please give a title to the post.&quot;);
$('#title').focus();
$('#ajax-loading').hide();
$('#publish').removeClass('button-primary-disabled');
}
else if( $( &quot;#categorychecklist input:checked&quot; ).length == 0 ) {
event.preventDefault();
$('div#notice').remove();
$(&quot;&lt;div id='notice' class='error below-h2'&gt;&lt;p&gt;Select at least one category.&lt;/p&gt;&lt;/div&gt;&quot;).insertAfter('h2');
alert(&quot;Select at least one category.&quot;);
$('#ajax-loading').hide();
$('#publish').removeClass('button-primary-disabled');
}
});
});</pre>
<p>The jQuery code above first checks if a title has been given. If a title doesn&#8217;t exist a window that tells the user to enter a title will pop-up. If a title is found the script searches for a checked category. If a category hasn&#8217;t been chosen a pop-up that tells the user to select at least one category will appear. By checking the sourcecode of the WordPress post editing page you can figure out how to make almost anything required.</p>
<p>For further reading you can check out these two discussions at the WordPress support forums:</p>
<p><a title="Require post title - prevent posts with no title" href="http://wordpress.org/support/topic/require-post-title-prevent-posts-with-no-title">http://wordpress.org/support/topic/require-post-title-prevent-posts-with-no-title</a></p>
<p><a title="I want to make required the user to select category for each post" href="http://wordpress.org/support/topic/i-want-to-make-required-the-user-to-select-category-for-each-post">http://wordpress.org/support/topic/i-want-to-make-required-the-user-to-select-category-for-each-post</a></p>
<p>You might also find the <a href="http://wordpress.org/extend/plugins/require-post-category/">Require Post Category </a>plugin by <a href="http://profiles.wordpress.org/users/joshhartman/">Josh Hartman</a> to be interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-make-title-category-or-any-other-field-required-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to Use Lightbox Effect in WordPress</title>
		<link>http://mtws.fi/blog/how-to-use-lightbox-effect-in-wordpress/</link>
		<comments>http://mtws.fi/blog/how-to-use-lightbox-effect-in-wordpress/#comments</comments>
		<pubDate>Thu, 14 Jul 2011 06:19:33 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Arne Franken]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Rupert Morris]]></category>
		<category><![CDATA[Techotronic]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=426</guid>
		<description><![CDATA[Nowadays it is almost expected that a modern website uses some sort of lightbox effect to display images. I used to use the very popular and great plugin Lightbox 2 by Rupert Morris but unfortunately the plugin is now discontinued and does cause some javascript conflicts in newer versions of WordPress. Rupert recommends the jQuery [...]]]></description>
			<content:encoded><![CDATA[<p>Nowadays it is almost expected that a modern website uses some sort of lightbox effect to display images. I used to use the very popular and great plugin <a title="Lightbox 2" href="http://wordpress.org/extend/plugins/lightbox-2/">Lightbox 2</a> by <a title="Rupert Morris" href="http://stimuli.ca/">Rupert Morris</a> but unfortunately the plugin is now discontinued and does cause some javascript conflicts in newer versions of WordPress. Rupert recommends the<a href="http://leandrovieira.com/projects/jquery/lightbox/"> jQuery lightBox</a> plugin as an alternative but there are tons of other similar plugins that you can choose from.</p>
<div id="attachment_430" class="wp-caption aligncenter" style="width: 299px"><a href="http://mtws.fi/wp-content/uploads/jquery_colorbox_example.png"><img class="size-full wp-image-430" title="jQuery Colorbox example image" src="http://mtws.fi/wp-content/uploads/jquery_colorbox_example.png" alt="jQuery Colorbox example image" width="289" height="298" /></a><p class="wp-caption-text">jQuery Colorbox example image</p></div>
<p>I had some trouble with the jQuery lightBox plugin when trying to use it on a page with some other jQuery effects. After trying a couple of different plugins I ended up using the<a href="http://www.techotronic.de/plugins/jquery-colorbox/"> jQuery Colorbox</a> by <a href="http://www.techotronic.de/">Arne Franken</a>. The plugin has a number of nice features and you can choose from 11 different Colorbox themes. By the time of writing jQuery Colorbox is compatible up to the latest version of WordPress (3.2.1).</p>
<p>Let me know if you know of a better lightbox plugin.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-use-lightbox-effect-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Use WordPress Functions on External Pages</title>
		<link>http://mtws.fi/blog/how-to-use-wordpress-functions-on-external-pages/</link>
		<comments>http://mtws.fi/blog/how-to-use-wordpress-functions-on-external-pages/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 08:25:21 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Master]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=413</guid>
		<description><![CDATA[A time ago I worked with a project where I needed to get some data from a WordPress site to an external PHP page. I found out that all I had to do, was to add this little line of code to the PHP page and after that I could use all the WordPress functions [...]]]></description>
			<content:encoded><![CDATA[<p>A time ago I worked with a project where I needed to get some data from a WordPress site to an external PHP page. I found out that all I had to do, was to add this little line of code to the PHP page and after that I could use all the WordPress functions that I wanted.</p>
<pre class="brush: php; title: ; notranslate">&lt;code&gt;&lt;?php
 require_once('./blog/wp-blog-header.php');
 ?&gt;&lt;/code&gt;</pre>
<p>Just edit the path so that it leads to your WordPress installation. You can find a better example about how to use the code at <a href="http://www.wordpress-master.com/wordpress-functions-external-php-pages.html">http://www.wordpress-master.com/wordpress-functions-external-php-pages.html</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-use-wordpress-functions-on-external-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add Tweets to WordPress</title>
		<link>http://mtws.fi/blog/how-to-add-tweets-to-wordpress/</link>
		<comments>http://mtws.fi/blog/how-to-add-tweets-to-wordpress/#comments</comments>
		<pubDate>Thu, 31 Mar 2011 16:24:57 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Automattic]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=401</guid>
		<description><![CDATA[The web is full of different tutorials and plugins about how to add a Twitter feed to WordPress. Here are two methods that work and that I think are fairly simple. For the first method you only need your Twitter RSS feed url. You can the RSS link in the right sidebar of your Twitter [...]]]></description>
			<content:encoded><![CDATA[<p>The web is full of different tutorials and plugins about how to add a Twitter feed to WordPress. Here are two methods that work and that I think are fairly simple.</p>
<p>For the first method you only need your Twitter RSS feed url. You can the RSS link in the right sidebar of your Twitter page.</p>
<div id="attachment_402" class="wp-caption aligncenter" style="width: 229px"><a href="http://mtws.fi/wp-content/uploads/twitter_feed_link.png"><img class="size-full wp-image-402" title="Twitter RSS feed link" src="http://mtws.fi/wp-content/uploads/twitter_feed_link.png" alt="" width="219" height="52" /></a><p class="wp-caption-text">Twitter RSS feed link</p></div>
<p>When you have the link just drag a RSS widget (no plugin needed, it comes with WordPress) to your sidebar, footer or other similar area and enter the URL of your Twitter feed and give the widget a title if you want. The RSS widget shows the 10 latest items by default so you probably want to change this to number to 1 to only show your latest tweet.</p>
<p style="text-align: center;">&nbsp;</p>
<div id="attachment_404" class="wp-caption aligncenter" style="width: 470px"><a href="http://mtws.fi/wp-content/uploads/twitter_rss.png"><img class="size-full wp-image-404 " title="Twitter RSS" src="http://mtws.fi/wp-content/uploads/twitter_rss.png" alt="" width="460" height="348" /></a><p class="wp-caption-text">The settings for the RSS widget to show a Twitter status</p></div>
<p>You can style the widget in  the style.css file so that it looks the way you want. By default the widget title has a feed icon to its left side. The title works as a link to your Twitter page.</p>
<p>Another easy way to display a Twitter feed in WordPress is using a plugin called <a href="http://wordpress.org/extend/plugins/wickett-twitter-widget/">Wickett Twitter Widget</a> by <a href="http://automattic.com/">Automattic</a>. Once you have installed and activated the plugin you&#8217;ll find a Twitter widget among your other widgets. Just drag the widget to your sidebar and enter your Twitter username and give the widget a title. You can choose how many tweets you want to show.</p>
<div id="attachment_410" class="wp-caption aligncenter" style="width: 330px"><a href="http://mtws.fi/wp-content/uploads/twitter1.png"><img class="size-full wp-image-410" title="Wickett Twitter Widget" src="http://mtws.fi/wp-content/uploads/twitter1.png" alt="" width="320" height="455" /></a><p class="wp-caption-text">The Wickett Twitter Widget settings.</p></div>
<p style="text-align: center;">&nbsp;</p>
<p>You can learn more about Wicket Twitter Widget by watching a <a href="http://wordpress.tv/2009/07/24/twitter-selfhosted/">video at WordPress.tv</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-add-tweets-to-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Remove the WordPress Admin Bar</title>
		<link>http://mtws.fi/blog/how-to-remove-the-wordpress-admin-bar/</link>
		<comments>http://mtws.fi/blog/how-to-remove-the-wordpress-admin-bar/#comments</comments>
		<pubDate>Wed, 16 Mar 2011 16:13:50 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Nilesh Shiragave]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=392</guid>
		<description><![CDATA[One of the new features in WordPress 3.1 is the admin bar that is visible for logged in users. &#160; There are a lot of different ways to remove the admin bar that. Here is a method that I have found simple and effective. Just add the following to your functions.php file: You can read [...]]]></description>
			<content:encoded><![CDATA[<p>One of the new features in WordPress 3.1 is the admin bar that is visible for logged in users.</p>
<p style="text-align: center;">&nbsp;</p>
<div id="attachment_396" class="wp-caption aligncenter" style="width: 470px"><a href="http://mtws.fi/wp-content/uploads/admin-bar.png"><img class="size-full wp-image-396 " title="The WordPress Admin Bar" src="http://mtws.fi/wp-content/uploads/admin-bar.png" alt="" width="460" /></a><p class="wp-caption-text">The WordPress admin bar in action.</p></div>
<p>There are a lot of different ways to remove the admin bar that. Here is a method that I have found simple and effective. Just add the following to your functions.php file:</p>
<pre class="brush: php; title: ; notranslate">

function my_function_admin_bar() {

return false;

}

add_filter( 'show_admin_bar' , 'my_function_admin_bar');</pre>
<p>You can read more about the admin bar in the <a href="http://www.snilesh.com/resources/wordpress/wordpress-3-1-enable-disable-remove-admin-bar/">article written by Nilesh Shiragave</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-remove-the-wordpress-admin-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Enable Menu Support in a WordPress Theme</title>
		<link>http://mtws.fi/blog/how-to-enable-menu-support-in-a-wordpress-theme/</link>
		<comments>http://mtws.fi/blog/how-to-enable-menu-support-in-a-wordpress-theme/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 20:52:38 +0000</pubDate>
		<dc:creator>Mats</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[BlogsWeek]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Codex]]></category>
		<category><![CDATA[WordPress Themes Collection]]></category>

		<guid isPermaLink="false">http://mtws.fi/?p=375</guid>
		<description><![CDATA[This is a short and quick tutorial about enabling and styling the built-in menu builder in WordPress. Before the default menu builder was introduced I used to use a great plugin called WP Menubar and developed by http://www.blogsweek.com/about-the-author/. The plugin still has a lot of  great features compared to the built-in version and you should definitely [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short and quick tutorial about enabling and styling the built-in menu builder in WordPress.</p>
<div id="attachment_385" class="wp-caption aligncenter" style="width: 470px"><a href="http://mtws.fi/wp-content/uploads/how-to-enable-menu.jpg"><img class="size-large wp-image-385 " title="How to Enable the WordPress Menu" src="http://mtws.fi/wp-content/uploads/how-to-enable-menu-1024x477.jpg" alt="How to Enable the WordPress Menu" width="460" /></a><p class="wp-caption-text">A custom WordPress menu</p></div>
<p>Before the default menu builder was introduced I used to use a great plugin called <a href="http://wordpress.org/extend/plugins/menubar/">WP Menubar</a> and developed by <a href="http://www.blogsweek.com/about-the-author/">http://www.blogsweek.com/about-the-author/</a>. The plugin still has a lot of  great features compared to the built-in version and you should definitely check it out.</p>
<p>Here is how you enable the built in menu builder in your theme:</p>
<p>1) Add the following code to your functions.php file</p>
<pre class="brush: php; title: ; notranslate">

register_nav_menus( array(

'primary' =&gt; __( 'Primary Menu' )

) );
</pre>
<p>2) Add this to your header.php or wherever you want the menu to appear</p>
<pre class="brush: php; title: ; notranslate">

&lt;div id=&quot;access&quot;&gt;

&lt;?php wp_nav_menu( array( 'container_class' =&gt; 'menu-header','theme_location' =&gt; 'primary' ) ); ?&gt;

&lt;/div&gt;
</pre>
<p>3) Below is the menu style from the default Twentyten theme, copy it to your style.css file</p>
<pre class="brush: css; title: ; notranslate">

/* =Menu

-------------------------------------------------------------- */

#access {

background: #000;

display: block;

float: left;

margin: 0 auto;

width: 940px;

}

#access .menu-header,

div.menu {

font-size: 13px;

margin-left: 12px;

width: 928px;

}

#access .menu-header ul,

div.menu ul {

list-style: none;

margin: 0;

}

#access .menu-header li,

div.menu li {

float: left;

position: relative;

}

#access a {

color: #aaa;

display: block;

line-height: 38px;

padding: 0 10px;

text-decoration: none;

}

#access ul ul {

box-shadow: 0px 3px 3px rgba(0,0,0,0.2);

-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);

-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);

display: none;

position: absolute;

top: 38px;

left: 0;

float: left;

width: 180px;

z-index: 99999;

}

#access ul ul li {

min-width: 180px;

}

#access ul ul ul {

left: 100%;

top: 0;

}

#access ul ul a {

background: #333;

line-height: 1em;

padding: 10px;

width: 160px;

height: auto;

}

#access li:hover &gt; a,

#access ul ul :hover &gt; a {

background: #333;

color: #fff;

}

#access ul li:hover &gt; ul {

display: block;

}

#access ul li.current_page_item &gt; a,

#access ul li.current-menu-ancestor &gt; a,

#access ul li.current-menu-item &gt; a,

#access ul li.current-menu-parent &gt; a {

color: #fff;

}

* html #access ul li.current_page_item a,

* html #access ul li.current-menu-ancestor a,

* html #access ul li.current-menu-item a,

* html #access ul li.current-menu-parent a,

* html #access ul li a:hover {

color: #fff;

}
</pre>
<p>Edit the style to make the menu fit your theme.</p>
<p>This is of course just a quick way to get the menu working on your page at <a href="http://wordpressthemescollection.com/quick-tips-enable-menu-support-for-your-themes-in-wp-3-0-623.html">WordPress Themes Collection</a>. To learn more about the menu visit the <a href="http://codex.wordpress.org/Function_Reference/wp_nav_menu">Function Reference/wp nav menu page at the WordPress Codex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://mtws.fi/blog/how-to-enable-menu-support-in-a-wordpress-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

