<?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>acroweb</title>
	<atom:link href="http://acroweb.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://acroweb.co.uk</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 20 Jun 2013 08:16:31 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>How to build a small business website in 5 minutes using WordPress</title>
		<link>http://acroweb.co.uk/small-business-website-5-minutes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=small-business-website-5-minutes</link>
		<comments>http://acroweb.co.uk/small-business-website-5-minutes/#comments</comments>
		<pubDate>Tue, 11 Jun 2013 13:35:55 +0000</pubDate>
		<dc:creator>Emile</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[small business website]]></category>

		<guid isPermaLink="false">http://acroweb.co.uk/?p=853</guid>
		<description><![CDATA[<p>You can spend a lot of money building a small business website. This post will show you how you can get something simple up and running very quickly without spending a...</p><p>The post <a href="http://acroweb.co.uk/small-business-website-5-minutes/">How to build a small business website in 5 minutes using WordPress</a> appeared first on <a href="http://acroweb.co.uk">acroweb</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>You can spend a lot of money building a <strong>small business website. </strong>This post will show you how you can get something simple up and running very quickly without spending a fortune or employing anyone.<span id="more-853"></span></p>
<h2>A Cheap Small Business Website?</h2>
<p>If you follow this post, you can get yourself up and running for $60 a year in total (under £40 today).</p>
<p>For this money you will have:</p>
<ul>
<li>A <strong>small business website</strong> that you can update yourself whenever you want</li>
<li>A web domain eg. my-new-domain.com</li>
<li>As many email addresses as you want eg. someone@my-new-domain.com</li>
</ul>
<h2>Getting Started With Your Small Business Website</h2>
<p>The first thing you need to do is setup your web hosting (web your website is stored) and domain name (see above).</p>
<p>This is the only thing that you need to pay for and there are a number of companies that offer this.</p>
<p>We recommend <a href="http://www.bluehost.com/track/acroweb">Bluehost</a> as it is cheap and simple to install WordPress (which is what you will be using later). At the time of writing it costs $4.95 per month if you sign up for 3 years and $6.95 per month for a 12 month contract).</p>
<p>There is no need to buy any extras eg Backup systems as this can all be done for free using WordPress.</p>
<h2>Install WordPress</h2>
<p>Once you have bought your hosting, you need to make sure WordPress is installed. A benefit of using <a href="http://www.bluehost.com/track/acroweb">Bluehost</a> is getting a 1-click WordPress install so you can be up and running quickly.</p>
<p><a href="http://www.bluehost.com/track/acroweb">Bluehost</a> provide very good instructions showing you <a href="http://www.bluehost.com/track/acroweb/wordpress?page=cgi/help/wordpress">how to install WordPress on your hosting</a>, so we won&#8217;t go into detail on that here.</p>
<p>Just make sure that you don&#8217;t enter any directory so you will be able to access the website at www.your-domain-name.com , not www.your-domain-name.com/some-directory</p>
<p>Also, please make sure to use a very strong password!</p>
<h2>Setting Up WordPress For Your Small Business Website</h2>
<p>Once WordPress has been installed, you should be able to go to www.your-domain-name.com in your web browser and see something like this:</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/wordpress-start.png"><img class="aligncenter size-medium wp-image-860 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/wordpress-start-300x241.png" width="300" height="241" /></a></p>
<p style="text-align: left;">This is great but it doesn&#8217;t look much like a Small Business Website&#8230;</p>
<h2 style="text-align: left;">Logging in To WordPress</h2>
<p>To make any changes to your WordPress site, you need to first login. You can do this by going to www.your-domain-name.com/wp-admin and logging in with your username and password.</p>
<p>Once you are logged in, you will see your WordPress dashboard:</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/dashboard.png"><img class="size-medium wp-image-870 aligncenter colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/dashboard-300x188.png" width="300" height="188" /></a></p>
<h2 style="text-align: left;">Making Some Pages on Your Small Business Website</h2>
<p style="text-align: left;">On your dashboard, on the left hand menu, hover over <strong>Pages </strong>and then click <strong>Add New.</strong></p>
<p style="text-align: left;">In the title box, type &#8220;Home&#8221; (without the quotes) and then type some words in the big box (this is where the content of the page goes).</p>
<p style="text-align: left;">On the right hand-side of the page, from the <strong>Template </strong>drop down box, choose <strong>Front Page Template </strong>and then click <strong>Publish  </strong>(also on the right hand side):</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/editing-page.jpg"><img class="aligncenter size-medium wp-image-878 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/editing-page-300x194.jpg" width="300" height="194" /></a></p>
<p style="text-align: left;">You will see a message telling you that the page has been published.</p>
<p style="text-align: left;">Follow the same process to make an About Us page (but do not choose the Front Page Template).</p>
<p style="text-align: left;">Also, create a <strong>Blog</strong> and a <strong>Contact Us</strong> Page but don&#8217;t add any content in them (just enter the page title).</p>
<h2 style="text-align: left;"><strong>Organising The Pages </strong></h2>
<p>If you look at your website now, it should look something like this:</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/pages-added.png"><img class="aligncenter size-medium wp-image-880 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/pages-added-300x234.png" width="300" height="234" /></a></p>
<p>All of your pages are there but it&#8217;s a bit of a mess.</p>
<p>So, let&#8217;s organise them&#8230;</p>
<p>Go back to your <strong>Dashboard </strong>and hover over <b>Tools </b>(bottom on the left). Choose <strong>Reading</strong></p>
<p><strong></strong>You can then tell WordPress what your <strong>Front Page</strong> and <strong>Posts Page</strong> is.</p>
<p>Choose to display a <strong>Static Page </strong>and then choose <strong>Home </strong>for the Front Page and <strong>Blog </strong> for the Posts Page and click <strong>Save Changes</strong></p>
<h2>Creating a Menu</h2>
<p>You can manage what order the page names are displayed in (and which are shown) by making a <strong>menu.</strong></p>
<p>In the <strong>Dashboard, </strong>hover over <strong>Appearance </strong>and choose <strong>Menu. </strong></p>
<p>Give the menu a name<b> - </b>something like <strong>Main Menu </strong>and click <strong>Save Menu. </strong>On the left hand side, now choose <strong>Main Menu </strong>(or whatever you called it) in the <strong>Theme Locations </strong>box and click <strong>Save:</strong></p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/menus.jpg"><img class="aligncenter size-medium wp-image-881 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/menus-300x114.jpg" width="300" height="114" /></a></p>
<p>You can now add all of the pages to the menu.</p>
<p>In the <strong>Pages </strong>box on the left hand side, tick <strong>Home, About Us, Blog </strong>and <strong>Contact Us </strong>and click <strong>Add to Menu.</strong> You can then drag and drop them into the order you want and click <strong>Save Menu:</strong></p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/ordered-menu.png"><img class="aligncenter size-medium wp-image-885 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/ordered-menu-300x180.png" width="300" height="180" /></a></p>
<p>If you now go back and look at your site, you will see something like this:</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/clean-homepage.png"><img class="aligncenter size-medium wp-image-887 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/clean-homepage-300x172.png" width="300" height="172" /></a></p>
<p>A lot cleaner and starting to get there!</p>
<h2>Adding Some Colour</h2>
<p>Go back to the <strong>Dashboard, </strong>hover over <strong>Appearance </strong>and choose <strong>Header.</strong></p>
<p><strong></strong>There you will find options for a header image and the text colour in your header. You will need a big image &#8211; you could try http://www.freeimageslive.com/</p>
<p>You can then set the colour of text as you please. Here is an example:</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/homepage-colour.png"><img class="aligncenter size-medium wp-image-889 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/homepage-colour-300x151.png" width="300" height="151" /></a></p>
<p>This is where you can get creative!</p>
<h2>Your Site Name and Slogan</h2>
<p>You might also want to change your site name and slogan (shown at the top on the left). You can do this by hovering over <strong>Settings </strong>in your <strong>Dashboard </strong>and choosing <strong>General.</strong></p>
<h2>Adding a Contact Form</h2>
<p>Your site will look more professional with a <strong>Contact Form </strong>on your <strong>Contact Us </strong>page. The easiest way to do this in WordPress is by installing a free <strong>plugin.</strong></p>
<p><strong></strong>From your <strong>Dashboard, hover </strong>over <strong>plugins </strong>and click <b>Add New.</b></p>
<p>In the search box type &#8220;<strong>Contact Form 7&#8243; </strong>(without the quotes). And then click <strong>Install Now</strong> next to <strong>Contact Form 7.</strong></p>
<p>Once the plugin is installed, click <b>Activate Plugin</b></p>
<p>You will see that you then have a new menu item on the left hand side of your <strong>Dashboard &#8211; Contact. </strong>Click on <strong>Contact </strong>and you will see that you already have a <b>Contact Form </b>setup - <strong>Contact Form 1:</strong></p>
<p>You can do a great deal with <strong>Contact Forms </strong>but for the purposes of this tutorial, we are just going to use this standard form.</p>
<p><strong></strong>You will see that the form has a <strong>Shortcode</strong> (something like [contact-form-7 id="16" title="Contact form 1"] ).</p>
<p>You need to highlight this and copy it.</p>
<p>Then you need to go back and find your <strong>Contact Us page </strong>under the pages menu and <strong>edit the page.</strong></p>
<p><strong></strong>Paste the shortcode into the content of the page and then <strong>Update</strong> the page:</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/contact-form-shortcode.png"><img class="aligncenter size-medium wp-image-890 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/contact-form-shortcode-300x159.png" width="300" height="159" /></a></p>
<p><strong><br />
</strong>If you then <b>View </b>the page, you will see something like this:</p>
<p style="text-align: center;"><a href="http://acroweb.co.uk/wp-content/uploads/2013/06/contact-form.png"><img class="aligncenter size-medium wp-image-892 colorbox-853" alt="Small Business Website" src="http://acroweb.co.uk/wp-content/uploads/2013/06/contact-form-250x300.png" width="250" height="300" /></a></p>
<h2>Starting A Blog</h2>
<p>It is very easy to blog using WordPress. Each blog &#8220;story&#8221; is called a <b>post.</b> To add a new one, simply hover over <strong>Posts </strong>in the <strong>dashboard</strong> and click <strong>Add New.</strong></p>
<p>Every blog story you add will now appear on the <strong>Blog </strong>page.</p>
<h2>What Next</h2>
<p>There is a lot more that you can do with WordPress &#8211; the options are pretty much limitless.</p>
<p>We can help you get your site to the next level, <a title="Contact Us" href="http://acroweb.co.uk/contact-us/">get in touch</a> with us and we can:</p>
<ul>
<li>Help you transform your basic small business website into a professional looking site using our <a href="http://acroweb.co.uk/services/wordpress-website-design/">WordPress website design</a> service</li>
<li>Improve your Google ranking and get you more business</li>
<li>Show you how to <a title="Website Strategy" href="http://acroweb.co.uk/services/website-strategy/">convert your website traffic into sales</a></li>
</ul>
<h2>Tell Us What you Think</h2>
<p>Was this tutorial helpful? Could we focus more on anything else? Is there anything we missed out that you need?</p>
<p>Add your comments below &#8211; we would love to hear from you.</p>
<div style="margin: 30px 0;"><h3>Share This</h3>

<!-- Start WP Socializer Plugin - Addthis Button -->
<a class="addthis_button" target="_blank" href="http://addthis.com/bookmark.php?v=250&amp;pubid=wp-51b6512c42922877" addthis:url="http://acroweb.co.uk/small-business-website-5-minutes/" addthis:title="How to build a small business website in 5 minutes using WordPress">Share with Addthis</a>
<!-- End WP Socializer Plugin - Addthis Button -->
</div><p>The post <a href="http://acroweb.co.uk/small-business-website-5-minutes/">How to build a small business website in 5 minutes using WordPress</a> appeared first on <a href="http://acroweb.co.uk">acroweb</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://acroweb.co.uk/small-business-website-5-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tracking Google Adwords Conversions in Contact Form 7 for WordPress</title>
		<link>http://acroweb.co.uk/tracking-google-adwords-conversions-in-contact-form-7-for-wordpress/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tracking-google-adwords-conversions-in-contact-form-7-for-wordpress</link>
		<comments>http://acroweb.co.uk/tracking-google-adwords-conversions-in-contact-form-7-for-wordpress/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 13:35:14 +0000</pubDate>
		<dc:creator>Emile</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://acroweb.co.uk/?p=91</guid>
		<description><![CDATA[<p>Contact Form 7 is a fantastic WordPress plugin which simplifies the boring task of building forms on your WordPress website. The out-of-the-box install uses an AJAX form submission. This means that...</p><p>The post <a href="http://acroweb.co.uk/tracking-google-adwords-conversions-in-contact-form-7-for-wordpress/">Tracking Google Adwords Conversions in Contact Form 7 for WordPress</a> appeared first on <a href="http://acroweb.co.uk">acroweb</a>.</p>]]></description>
				<content:encoded><![CDATA[<p><a href="http://wordpress.org/extend/plugins/contact-form-7/">Contact Form 7</a> is a fantastic WordPress plugin which simplifies the boring task of building forms on your WordPress website.</p>
<p>The out-of-the-box install uses an AJAX form submission. This means that users don&#8217;t get redirected to another page on your website following a form submission. Instead they are just shown a thank you message  within the same page.</p>
<p>This is ideal for users as it makes it smooth and painless. However, this also means that there is no thankyou.html page where you can add your conversion tracking code for Google Adwords.</p>
<p><span id="more-91"></span></p>
<p>This is fairly straightforward to sort out. The new tracking code from Adwords looks like this:</p>
<pre class="brush: php; title: ; notranslate">
&lt;!-- Google Code for Enquiry Conversion Page --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/* &lt;![CDATA[ */
var google_conversion_id = XXXXXXXXX;
var google_conversion_language = &quot;en&quot;;
var google_conversion_format = &quot;2&quot;;
var google_conversion_color = &quot;ffffff&quot;;
var google_conversion_label = &quot;XXXXXXXXXXXX&quot;;
var google_conversion_value = 0;
/* ]]&gt; */
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.googleadservices.com/pagead/conversion.js&quot;&gt;
&lt;/script&gt;
&lt;noscript&gt;
&lt;div style=&quot;display:inline;&quot;&gt;
&lt;img height=&quot;1&quot; width=&quot;1&quot; style=&quot;border-style:none;&quot; alt=&quot;&quot; src=&quot;http://www.googleadservices.com/pagead/conversion/XXXXXXXXXX/?value=0&amp;amp;label=XXXXXXXXXXXXXXXXX&amp;amp;guid=ON&amp;amp;script=0&quot;/&gt;
&lt;/div&gt;
&lt;/noscript&gt;
</pre>
<p>To get this working, you need to take the first part of the code and the third part of the code and stick it in the &#8220;Form&#8221; section of your contact form:</p>
<pre class="brush: php; title: ; notranslate">
&lt;!-- Google Code for Enquiry Conversion Page --&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
/* &lt;![CDATA[ */
var google_conversion_id = XXXXXXXXX;
var google_conversion_language = &quot;en&quot;;
var google_conversion_format = &quot;2&quot;;
var google_conversion_color = &quot;ffffff&quot;;
var google_conversion_label = &quot;XXXXXXXXXXXX&quot;;
var google_conversion_value = 0;
/* ]]&gt; */
&lt;/script&gt;
&lt;noscript&gt;
&lt;div style=&quot;display:inline;&quot;&gt;
&lt;img height=&quot;1&quot; width=&quot;1&quot; style=&quot;border-style:none;&quot; alt=&quot;&quot; src=&quot;http://www.googleadservices.com/pagead/conversion/XXXXXXXXXX/?value=0&amp;amp;label=XXXXXXXXXXXXXXXXX&amp;amp;guid=ON&amp;amp;script=0&quot;/&gt;
&lt;/div&gt;
&lt;/noscript&gt;

&lt;!--CONTACT FORM STARTS HERE...   --&gt;
</pre>
<p>Further to this, you need to add a little script which gets fired every time the contact form is submitted. This needs to go in the &#8220;Additional Settings&#8221; field at the bottom of the contact form:</p>
<pre class="brush: jscript; title: ; notranslate">
on_sent_ok: &quot;jQuery(String.fromCharCode(60)+'img/'+String.fromCharCode(62)).attr('height','1').attr('width','1').css('border-style','none').attr('src','http://www.googleadservices.com/pagead/conversion/'+google_conversion_id+'/?value='+google_conversion_value+String.fromCharCode(38)+'label='+google_conversion_label+String.fromCharCode(38)+'guid=ON'+String.fromCharCode(38)+'script=0').appendTo('body');&quot;
</pre>
<p>And that&#8217;s it. You should now be tracking conversions for your Adwords campaign.</p>
<div style="margin: 30px 0;"><h3>Share This</h3>

<!-- Start WP Socializer Plugin - Addthis Button -->
<a class="addthis_button" target="_blank" href="http://addthis.com/bookmark.php?v=250&amp;pubid=wp-51b6512c42922877" addthis:url="http://acroweb.co.uk/tracking-google-adwords-conversions-in-contact-form-7-for-wordpress/" addthis:title="Tracking Google Adwords Conversions in Contact Form 7 for WordPress">Share with Addthis</a>
<!-- End WP Socializer Plugin - Addthis Button -->
</div><p>The post <a href="http://acroweb.co.uk/tracking-google-adwords-conversions-in-contact-form-7-for-wordpress/">Tracking Google Adwords Conversions in Contact Form 7 for WordPress</a> appeared first on <a href="http://acroweb.co.uk">acroweb</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://acroweb.co.uk/tracking-google-adwords-conversions-in-contact-form-7-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding Horizontal CSS Drop Down Menus to Your Theme in WordPress 3.0</title>
		<link>http://acroweb.co.uk/adding-css-drop-down-menus-to-wordpress-3-0-theme/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=adding-css-drop-down-menus-to-wordpress-3-0-theme</link>
		<comments>http://acroweb.co.uk/adding-css-drop-down-menus-to-wordpress-3-0-theme/#comments</comments>
		<pubDate>Mon, 08 Nov 2010 13:07:00 +0000</pubDate>
		<dc:creator>Emile</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[custom theme development]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://acroweb.co.uk/?p=72</guid>
		<description><![CDATA[<p>WordPress 3.0 adds custom menu functionality to wordpress. In simple terms, this means that you can build your own navigation menus in your theme, easily choosing links to pages, categories...</p><p>The post <a href="http://acroweb.co.uk/adding-css-drop-down-menus-to-wordpress-3-0-theme/">Adding Horizontal CSS Drop Down Menus to Your Theme in WordPress 3.0</a> appeared first on <a href="http://acroweb.co.uk">acroweb</a>.</p>]]></description>
				<content:encoded><![CDATA[<p>WordPress 3.0 adds custom menu functionality to wordpress. In simple terms, this means that you can build your own navigation menus in your theme, easily choosing links to pages, categories and even external links.</p>
<p><span id="more-72"></span><br />
<img class="size-full wp-image-148 alignleft colorbox-72" title="Custom Sub Menu" alt="Custom Sub Menu" src="http://acroweb.co.uk/wp-content/uploads/2010/11/custom_sub_menu.jpg" width="300" height="300" />The WordPress Custom menus allow for very easy, drag and drop sub menus to be built and it does not take a lot of work to turn these sub menus into <strong>search engine friendly, css drop down menus for your <a href="http://acroweb.co.uk/services/wordpress-website-design/">custom wordpress theme</a></strong>.</p>
<p>This tutorial will take you through the everything you need to add to your php template and your css code in order to add great looking horizonal css drop down menus to your <a href="http://acroweb.co.uk/services/wordpress-website-design/">custom wordpress theme</a>.</p>
<h2 style="clear: both;">Step 1: Adding Custom Menu Support to your <a href="http://acroweb.co.uk/services/wordpress-website-design/">custom WordPress theme</a></h2>
<p>Very simply, all you have to do is open your functions.php file. This is located in your theme directory. If you don&#8217;t already have one, create one.</p>
<p>Add this code:</p>
<pre class="brush: php; title: ; notranslate">
function register_my_menus() {
	register_nav_menus(
		array(
			'top-nav' =&gt; __( 'Top Nav' )
		)
	);
}
</pre>
<p>This code simply tells wordpress that you have 1 menu position in your theme, called &#8220;Top Nav&#8221;.</p>
<p>If you now go to admin-appearance-menus you can then create a new menu.</p>
<p>Give your menu a name like Main Menu and click &#8220;Create Menu&#8221;</p>
<p>You should then see something like this:<br style="clear: both;" /><br />
<img class="alignnone size-full wp-image-158 colorbox-72" title="Create Custom Menu" alt="Create Custom Menu" src="http://acroweb.co.uk/wp-content/uploads/2010/11/create-menu.jpg" width="800" height="342" /><br />
<br style="clear: both;" /><br />
From here, you can very easily add pages, categories and custom links to your menu, so build yourself a menu.</p>
<p>You can drag and drop menu links into the order that you want and if you drag a link to the right, it makes it a sub-menu item of the item above.</p>
<p>Do not forget to click &#8220;Save Menu&#8221; when you are done.</p>
<h2>Step 2: Adding the Custom Menu to <a href="http://acroweb.co.uk/services/wordpress-website-design/">your Custom WordPress Theme</a></h2>
<p>You may have noticed that although you have built a lovely new custom menu, it is not visible when you look at your WordPress site.</p>
<p>This is because you now need to add the custom menu to your custom theme.</p>
<p>If you are using a header.php file, you need to add something like the following code to the header.php file (in the position where you want your nav menu)</p>
<pre class="brush: php; title: ; notranslate">
&lt;!--?php wp_nav_menu( array( 'theme_location' =--&gt; 'top-nav' , 'container_class' =&gt; 'menu-header' ) ); ?&gt;
</pre>
<p>This code tells WordPress that this is the &#8220;Top Nav&#8221; position for your menu. It also tells WordPress to put the menu in the &#8220;menu-header&#8221; container class -the reason for doing this will become apparent later.</p>
<p>Looking at you WordPress site, depending on your css, you should see something like this:<br />
<br style="clear: both;" /><br />
<img class="alignnone size-full wp-image-164 colorbox-72" title="Basic Unnumbered List" alt="Basic Un-numbered List" src="http://acroweb.co.uk/wp-content/uploads/2010/11/basic-menu.jpg" width="163" height="114" /><br />
<br style="clear: both;" /><br />
In order to make this into a nice, horizontal, drop-down menu, we need to style it with some css.</p>
<h2>Step 3: Styling Your Custom WordPress Horizontal Drop-Down Menu with CSS</h2>
<p>The Custom WordPress Menu that you have produced is an un-numbered list and if you look at the source code that is produced, it will be something like:</p>
<div class="menu-header">
<ul class="menu" id="menu-main-menu-1">
<li class="menu-item menu-item-type-post_type current-menu-item page_item page-item-12 current_page_item menu-item-38"><a href="http://localhost/acroweb/">Home</a></li>
<li class="menu-item menu-item-type-post_type menu-item-39"><a href="http://localhost/acroweb/?page_id=2">About</a>
<ul class="sub-menu">
<li class="menu-item menu-item-type-custom menu-item-40"><a href="#">Submenu 1</a></li>
<li class="menu-item menu-item-type-custom menu-item-41"><a href="#">Submenu 2</a></li>
</ul>
</li>
<li class="menu-item menu-item-type-post_type menu-item-37"><a href="http://localhost/acroweb/?page_id=27">Contact Us</a></li>
</ul>
</div>
<p><br style="clear: both;" /><br />
This is basically an un-numbered list (ul) &#8211; the submenu items are &#8216;nested&#8217; in another un-numbered list.</p>
<p>It may look nasty at the moment but this can all be fixed with css and it is worth noting that un-numbered lists are the most search engine friendly menus to use in your WordPress site.</p>
<h3>Making the List Horizontal and Removing the Bullets</h3>
<p>Add the following to your style.css file:</p>
<pre class="brush: css; title: ; notranslate">
.menu-header {
	display: block;
	float: left;
	margin: 0 auto;
	width: 100%;
	height: 42px;
}
.menu-header ul,
	div.menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.menu-header li,
	div.menu li {
	float: left;
	position: relative;
}
</pre>
<p>This should make your Custom WordPress menu start to take shape. It should now be horizontal with no bullets and the submenu should appear underneath, something like this:<br />
<a href="http://acroweb.co.uk/wp-content/uploads/2010/11/horizontal-basic-menu.jpg"><img class="alignnone size-full wp-image-169 colorbox-72" title="Horizontal Un-numbered List (UL)" alt="Horizontal Un-numbered List (UL)" src="http://acroweb.co.uk/wp-content/uploads/2010/11/horizontal-basic-menu.jpg" width="269" height="85" /></a></p>
<h3>Positioning and Hiding the Submenu</h3>
<p>The submenu needs to be hidden (we will make it appear on hover later). Add the following css to your file:</p>
<pre class="brush: css; title: ; notranslate">
.menu-header li,
	div.menu li {
	float: left;
	position: relative;
}

.menu-header ul ul {
	display: none;
	position: absolute;
	top: 38px;
	left: 0;
	float: left;
	width: 180px;
	z-index: 99999;
}
</pre>
<p>This will make the menu look something like this:<br />
<img class="alignnone size-full wp-image-172 colorbox-72" title="Horizontal Menu Hidden Sub Menu" alt="Horizontal Menu Hidden Sub Menu" src="http://acroweb.co.uk/wp-content/uploads/2010/11/horizontal-menu-hidden-sub.jpg" width="165" height="45" /></p>
<h3>Better Colouring and spacing things out</h3>
<p>We can then change the font colours and styling and space out the links:</p>
<pre class="brush: css; title: ; notranslate">
.menu-header a {
	color: #aaa;
	display: block;
	line-height: 41px;
	padding: 0 10px;
	text-decoration: none;
	font-weight: normal;
}
</pre>
<p>So, our menu will then look like this:<br />
<img class="alignnone size-full wp-image-175 colorbox-72" title="Spaced Horizontal Menu" alt="Spaced Horizontal Menu" src="http://acroweb.co.uk/wp-content/uploads/2010/11/horizontal-menu-spaced.jpg" width="210" height="51" /></p>
<h3>Adding the Hover</h3>
<p>To make the sub-menu appear, we need to use the :hover pseudo-class.<br />
Add the following css:</p>
<pre class="brush: css; title: ; notranslate">
.menu-header ul li:hover &gt; ul {
	display: block;
}
</pre>
<p>We can also add some colouring to the hovering menu:</p>
<pre class="brush: css; title: ; notranslate">
.menu-header li:hover &gt; a,
.menu-header ul ul :hover &gt; a {
	background: #333;
	color: #fff;
}
</pre>
<p>This should give you the following:<br />
<a href="http://acroweb.co.uk/wp-content/uploads/2010/11/first-hover-menu.jpg"><img class="alignnone size-full wp-image-177 colorbox-72" title="Basic Drop Down Menu" alt="Basic Drop Down Menu" src="http://acroweb.co.uk/wp-content/uploads/2010/11/first-hover-menu.jpg" width="258" height="112" /></a><br />
<br style="clear: both;" /><br />
The hover should work in all browsers.</p>
<h3>Styling the Submenu</h3>
<p>We need to make the submenu vertical and give it some colour.</p>
<pre class="brush: css; title: ; notranslate">
.menu-header ul ul a {
	background: #333;
	line-height: 1em;
	padding: 10px;
	width: 160px;
	height: auto;
}
</pre>
<p>To match the colourscheme, we are going to give the whole nav bar a black background by adding:</p>
<pre class="brush: css; title: ; notranslate">background-color: #000;</pre>
<p>to the menu-header class, so you end up with:</p>
<pre class="brush: css; title: ; notranslate">
.menu-header {
	background-color: #000;
	display: block;
	float: left;
	margin: 0 auto;
	width: 100%;
	height: 42px;
}
</pre>
<p>We are now nearly there.</p>
<h3>Highlighting the Current Page</h3>
<p>WordPress adds classes to the current menu item. You can use this to style them. Try adding this to your css:</p>
<pre class="brush: css; title: ; notranslate">
.menu-header ul li.current_page_item &gt; a,
.menu-header ul li.current-menu-ancestor &gt; a,
.menu-header ul li.current-menu-item &gt; a,
.menu-header ul li.current-menu-parent &gt; a {
	color: #fff;
}
</pre>
<p>This highlights the current item, making the font white.</p>
<p>The finished product:<br />
<img class="alignnone size-full wp-image-181 colorbox-72" title="CSS Drop Down Menu" alt="CSS Drop Down Menu - WordPress" src="http://acroweb.co.uk/wp-content/uploads/2010/11/finished-product.jpg" width="305" height="161" /><br />
<br style="clear: both;" /><br />
So, there you have it. Proper CSS Custom Drop Down menus in WordPress!</p>
<div style="margin: 30px 0;"><h3>Share This</h3>

<!-- Start WP Socializer Plugin - Addthis Button -->
<a class="addthis_button" target="_blank" href="http://addthis.com/bookmark.php?v=250&amp;pubid=wp-51b6512c42922877" addthis:url="http://acroweb.co.uk/adding-css-drop-down-menus-to-wordpress-3-0-theme/" addthis:title="Adding Horizontal CSS Drop Down Menus to Your Theme in WordPress 3.0">Share with Addthis</a>
<!-- End WP Socializer Plugin - Addthis Button -->
</div><p>The post <a href="http://acroweb.co.uk/adding-css-drop-down-menus-to-wordpress-3-0-theme/">Adding Horizontal CSS Drop Down Menus to Your Theme in WordPress 3.0</a> appeared first on <a href="http://acroweb.co.uk">acroweb</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://acroweb.co.uk/adding-css-drop-down-menus-to-wordpress-3-0-theme/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Database Caching 192/206 queries in 0.055 seconds using disk
Object Caching 4577/4594 objects using disk

 Served from: acroweb.co.uk @ 2013-06-20 13:32:19 by W3 Total Cache -->