<?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"
	>

<channel>
	<title>Steven Thompson</title>
	<atom:link href="http://www.steventhompson.co.uk/tech/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.steventhompson.co.uk/tech</link>
	<description>English Language, Tech and CV type stuff</description>
	<pubDate>Sun, 21 Sep 2008 21:56:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.1</generator>
	<language>en</language>
			<item>
		<title>Wrapping code in Wordpress</title>
		<link>http://www.steventhompson.co.uk/tech/?p=54</link>
		<comments>http://www.steventhompson.co.uk/tech/?p=54#comments</comments>
		<pubDate>Sun, 21 Sep 2008 21:56:05 +0000</pubDate>
		<dc:creator>steven</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.steventhompson.co.uk/tech/?p=54</guid>
		<description><![CDATA[It took me a while but I&#8217;ve finally found the solution to making Wordpress wrap code within the &#60;pre&#62; tag.
After hours of trying to edit the CSS myself, I decided to give up and see if anyone else had the solution.  The following code is the work of one Tyler Longren.  It doesn&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>It took me a while but I&#8217;ve finally found the solution to making Wordpress wrap code within the &lt;pre&gt; tag.</p>
<p>After hours of trying to edit the CSS myself, I decided to give up and see if anyone else had the solution.  The following code is the work of one <a href="http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/" target="_blank">Tyler Longren</a>.  It doesn&#8217;t seem to be valid CSS, but it works.  I&#8217;m keeping it for now.  Note that this will work in syntax highlighting plugins that use the &lt;pre&gt; command.  The one I go with is <a href="http://wordpress.org/extend/plugins/wp-syntax/" target="_blank">WP-syntax</a>.</p>
<p>All you need to do is copy and paste this into your stylesheet.  Without it, the code will overflow but will scroll and still make the code available.  This is a much better solution for clean copy and pasting, but for some of my code I wanted it to be easily readable.  This is because I like the idea of example HTML, CSS files&#8230;.etc with loads of comments.  It works as a revision tool for me and I guess might be useful for like-minded people who just like to review tags / code by reading through something like that.</p>

<div class="wp_syntax"><div class="code"><pre class="css css" style="font-family:monospace;">pre <span style="color: #00AA00;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> pre-wrap; <span style="color: #808080; font-style: italic;">/* css-3 */</span>
    <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -moz-pre-wrap !important; <span style="color: #808080; font-style: italic;">/* Mozilla, since 1999 */</span>
    <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -pre-wrap; <span style="color: #808080; font-style: italic;">/* Opera 4-6 */</span>
    <span style="color: #000000; font-weight: bold;">white-space</span><span style="color: #00AA00;">:</span> -o-pre-wrap; <span style="color: #808080; font-style: italic;">/* Opera 7 */</span>
    word-wrap<span style="color: #00AA00;">:</span> break-word; <span style="color: #808080; font-style: italic;">/* Internet Explorer 5.5+ */</span>
<span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.steventhompson.co.uk/tech/?feed=rss2&amp;p=54</wfw:commentRss>
		</item>
		<item>
		<title>HTML - The Basics (Tutorial 1)</title>
		<link>http://www.steventhompson.co.uk/tech/?p=24</link>
		<comments>http://www.steventhompson.co.uk/tech/?p=24#comments</comments>
		<pubDate>Sun, 21 Sep 2008 17:49:30 +0000</pubDate>
		<dc:creator>steven</dc:creator>
		
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.steventhompson.co.uk/tech/?p=24</guid>
		<description><![CDATA[HTML is really easy to learn - especially these days.  Those of you who are completely new to code will have to get used to a few things.
First of all, if you want results fast and aren&#8217;t concerned about learning the skills then use a program.  There exist many different tools for editing [...]]]></description>
			<content:encoded><![CDATA[<p>HTML is really easy to learn - especially these days.  Those of you who are completely new to code will have to get used to a few things.</p>
<p>First of all, if you want results fast and aren&#8217;t concerned about learning the skills then use a program.  There exist many different tools for editing web pages in a WYSIWYG (What You See Is What You Get) interface.  What I mean by that is that you can use programs to edit web sites and what you design on the screen is the final result!  A popular (but expensive) program is Adobe Dreamweaver but for more basic purposes Microsoft Word and Openoffice will generate HTML web pages based on the content of your document!</p>
<p>If you want to learn the skills (which are essential if you want to get into serious web design) then there are a few points to keep in mind.</p>
<p>HTML is a set of tags (think of these as commands to the browser) that tells the browser whether the text is a table, paragraph, heading, &#8230;whatever.  The browser then processes these commands and displays the page.</p>
<p>Let&#8217;s take an example.   The HTML element p  tells browser that the following text is a paragraph.  The corresponding tag is &lt;p&gt;.  We use &lt;/p&gt; to tell the browser when the paragraph ends.  Good HTML code always contains the staring tag (e.g. &lt;h1&gt;, &lt;p&gt; or &lt;body&gt;) and the ending tag (e.g. &lt;/h1&gt;, &lt;/p&gt; or &lt;/body&gt;)</p>
<p>There are many tutorials and lists of tags out there, so I thought I&#8217;d just try and give a brief overview of all this.  It&#8217;s by no means extensive in any way, but chances are it&#8217;s all you&#8217;ll need.  A LOT OF HTML CODE IS BECOMING REDUNDANT, so don&#8217;t bother learning EVERYTHING from some old book.  For example, HTML used to include formatting tags which told the browser which font to use, how big&#8230;etc.  But now all of this is dealt with by a CSS stylesheet which you&#8217;ll probably be looking to learn next.</p>
<p>What I&#8217;ve tried to do below is to write an example HTML document.  You can copy and paste this into Notepad, save it as whatever.html, and then open it in a web browser to see the results.  I&#8217;ve left a lot of stuff out.  For example, attributes.  You can add things to the starting tag to define alignment, font&#8230;etc.  But CSS has made a lot of that useless.  It&#8217;s still worth learning though and you can use the wealth of tutorials out there to do so.  But for now, let&#8217;s outline the basics of a HTML document&#8230;</p>
<p>Some of the tags are not explained within the text below.  So I&#8217;ll explain them here.</p>
<p><strong>&lt;html&gt; &lt;/html&gt;</strong> first one at the start, last one at the end.  These tags tell the browser it&#8217;s an HTML file.</p>
<p><strong>&lt;head&gt; &lt;/head&gt;</strong> the stuff within these tags won&#8217;t appear on the page itself.  For example, the page title will appear in the bar at the very top of the web browser.</p>
<p><strong>&lt;body&gt; &lt;/body&gt;</strong> contains the actual page contents.</p>

<div class="wp_syntax"><div class="code"><pre class="xml xml" style="font-family:monospace;">&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Title of page<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/head<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;h1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>This is a big heading!<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h1<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;h2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>This is a sub-heading.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h2<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;h6<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>The headings get smaller as you go through 1 to 6.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/h6<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>This is a paragraph.  Note that there's a bit of space between this and the last piece of code.  It doesn't make the slightest difference.  HTML automatically inserts space between paragraphs.  It also inserts a blank line before and after a heading.  If you want extra space then use this: <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> That's just inserted a 'page break'.  Let's do a few more. <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span> Cool.
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #808080; font-style: italic;">&lt;!-- This is a comment.  All of the stuff that appears within the comment tags will not be displayed by the browser so it's actually pretty useful to be able to keep track of any changes I make.  It'll also come in useful for coding Javascript later on so remember it! --&gt;</span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;hr</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>This is another paragraph.  It's separated from the previous paragraph with a horizontal line using the hr tag.  That's pretty useful too! <span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;b<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>This text is in bold.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/b<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>In this paragraph I've got a few weird looking expressions.  <span style="color: #ddbb00;">&amp;nbsp;</span> <span style="color: #ddbb00;">&amp;lt;</span> <span style="color: #ddbb00;">&amp;gt;</span> <span style="color: #ddbb00;">&amp;amp;</span> They represent Non Breaking Line Space, Less Than, Greater Than and Ampersand respectively.  You may also see the more difficult to remember expressions for the same thing, <span style="color: #ddbb00;">&amp;#160;</span> <span style="color: #ddbb00;">&amp;#60;</span> <span style="color: #ddbb00;">&amp;#62;</span> and <span style="color: #ddbb00;">&amp;#38;</span> respectively.  The first one is important because it's a way of including extra space in the line.                 The space I just left won't display in the document so I need to put loads of <span style="color: #ddbb00;">&amp;nbsp;&amp;nbsp;&amp;nbsp;</span> 's in instead.  The other three exist because HTML doesn't display all of the characters on your keyboard correctly (some of them are used to indicate code).    Therefore you need to enter these expressions to get the desired result.  There are many more so it's worthwhile keeping a list of them somewhere.  Do a Google search for HTML Character Entities.
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/p<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;a</span> <span style="color: #000066;">href</span>=<span style="color: #ff0000;">&quot;http://www.steventhompson.co.uk/&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>This is a link to the homepage of this site.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/a<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;img</span> <span style="color: #000066;">src</span>=<span style="color: #ff0000;">&quot;http://www.steventhompson.co.uk/MBCT2.jpg&quot;</span> <span style="color: #000066;">alt</span>=<span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;br</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>An Unordered List<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Has bullet points attached.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ul<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;ol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>An Ordered List<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Has Numbers.<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/li<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/ol<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/body<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/html<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p><a href="http:///steventhompson.co.uk/tech/wp-content/uploads/HTMLTutorial1.html">Click here to see what this code conjures up in the browser</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.steventhompson.co.uk/tech/?feed=rss2&amp;p=24</wfw:commentRss>
		</item>
		<item>
		<title>Indent Page List - Fixed in WP-Andreas09 (kind of)</title>
		<link>http://www.steventhompson.co.uk/tech/?p=1</link>
		<comments>http://www.steventhompson.co.uk/tech/?p=1#comments</comments>
		<pubDate>Sun, 07 Sep 2008 17:48:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Berlitz Edinburgh Website]]></category>

		<category><![CDATA[wp-andreas09]]></category>

		<guid isPermaLink="false">http://www.steventhompson.co.uk/tech/?p=1</guid>
		<description><![CDATA[Well, I experimented with Breukies Pages Widget, looked around for other plugins and basically spent weeks and weeks wondering why my sub-pages wouldn&#8217;t indent on the Berlitz Edinburgh Website.  Then finally I took a step back and decided to uninstall all these fancy plugins and just try and edit the theme myself!  It [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I experimented with Breukies Pages Widget, looked around for other plugins and basically spent weeks and weeks wondering why my sub-pages wouldn&#8217;t indent on the <a href="http://www.berlitzedinburgh.co.uk" target="_blank">Berlitz Edinburgh Website</a>.  Then finally I took a step back and decided to uninstall all these fancy plugins and just try and edit the theme myself!  It turned out to be surprisingly simple!</p>
<p>After reading through the guide on <a href="http://codex.wordpress.org/Styling_Lists_with_CSS" target="_blank">Styling Lists with CSS</a> on the Wordpress site, I discovered that what has probably happened is that this theme was designed with an older version of Wordpress in mind.  Ainslie Johnson, who ported the andreas09 theme over to Wordpress acknowledges the issue <a href="http://webgazette.co.uk/2007/11/20/wordpress-upgrade/" target="_blank">here</a>.  In <span style="color: #333333;">wp-andreas09</span> the left sidebar is labelled leftside in the stylesheet.  I added this code to <span style="color: #333333;">style.css</span>:</p>
<pre>#leftside ul li {
    padding:0 0 0 8px;
}</pre>
<p><strong>ul li</strong> tells Wordpress to style the 1st level of sub pages.</p>
<p><strong>padding</strong> adds space in a clockwise fashion starting at the top.  So I added 8px of space to the left.</p>
<p>&#8230;and it worked!  It&#8217;s not perfect though.  It&#8217;s messed with the aesthetics a bit and the page looks a bit disproportianate now in my opinion.  The sub page boxes are to close to the central box.  I&#8217;ll mess around with this in due course.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steventhompson.co.uk/tech/?feed=rss2&amp;p=1</wfw:commentRss>
		</item>
		<item>
		<title>The Menu</title>
		<link>http://www.steventhompson.co.uk/tech/?p=19</link>
		<comments>http://www.steventhompson.co.uk/tech/?p=19#comments</comments>
		<pubDate>Fri, 15 Aug 2008 17:21:02 +0000</pubDate>
		<dc:creator>steven</dc:creator>
		
		<category><![CDATA[Berlitz Edinburgh Website]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[wp-andreas09]]></category>

		<guid isPermaLink="false">http://www.steventhompson.co.uk/tech/?p=19</guid>
		<description><![CDATA[The original wp-andreas09 template puts all the &#8216;pages&#8217; into the horizontal menu and lists categories in the sidebar. Berlitz Edinburgh will have a lot of pages and I want those to be listed in the sidebar and to have only a few fixed pages along the horizontal bar.
First step was just to get the pages [...]]]></description>
			<content:encoded><![CDATA[<p>The original wp-andreas09 template puts all the &#8216;pages&#8217; into the horizontal menu and lists categories in the sidebar. Berlitz Edinburgh will have a lot of pages and I want those to be listed in the sidebar and to have only a few fixed pages along the horizontal bar.</p>
<p>First step was just to get the pages to list themselves in the sidebar.  This was straightforward using the <span style="color: #333333;">wp_list_pages</span> function.  I simply added this code to the <span style="color: #333333;">sidebar.php</span> file of the <span style="color: #333333;">wp-andreas09</span> theme.</p>
<pre>&lt;li&gt;&lt;h2&gt;Main Menu&lt;/h2&gt;
&lt;ul&gt;
  &lt;?php wp_list_pages('sort_column=menu_order&amp;title_li=&amp;hierarchical=1'); ?&gt;
&lt;/ul&gt;
&lt;/li&gt;</pre>
<p><strong>sort_column=menu_order</strong> does as the name suggests.</p>
<p><strong>title_li=</strong> has a null value and means that Wordpress won&#8217;t insert the &#8216;pages&#8217; title at the top of the list.</p>
<p><strong>hierarchical=1</strong> was supposed to indent the sub pages but didn&#8217;t. Here was my problem. But the problem was easily solved by modifying the CSS a little bit&#8230;.</p>
<p>I then used Garrett Murphy&#8217;s <a title="Garrett Murphy's Page Link Manager" href="http://gmurphey.com/2006/10/05/wordpress-plugin-page-link-manager" target="_blank">Page Link Manager</a> to add the functionality to &#8216;hide&#8217; certain pages. These can then be linked to in my &#8216;fixed&#8217; horizontal menu. This is perfect for giving you the flexibility to layout the menus as you want. Now all that&#8217;s left is to make the horizontal menu a fixed one (not associated with the Wordpress function that assigns pages to it).</p>
<p>First of all, I needed to remove said Wordpress function.  It is in the <strong>header.php</strong> file:</p>
<pre><span style="color: #000000;">&lt;?php if (is_page()) { $highlight = ""; } else {$highlight = "current"; } ?&gt;</span></pre>
<pre><span style="color: #000000;">&lt;div id="mainmenu"&gt;
&lt;ul class="level1"&gt;
&lt;li class="&lt;?php echo $highlight; ?&gt;"&gt;&lt;a href="&lt;?php
echo get_settings('home'); ?&gt;"&gt;Home&lt;/a&gt;&lt;/li&gt;</span><span style="color: #000000;">
<span id="u.vo5" style="background-color: #ffff00;">&lt;?php</span><br id="u.vo6" style="background-color: #ffff00;" /><span id="u.vo7" style="background-color: #ffff00;"> if(function_exists("wp_andreas09_nav")) {</span><br id="u.vo8" style="background-color: #ffff00;" /><span id="u.vo9" style="background-color: #ffff00;"> wp_andreas09_nav("sort_column=menu_order&amp;list_tag=0&amp;show_all_parents=1&amp;show_root=1");</span><br id="u.vo10" style="background-color: #ffff00;" /><span id="u.vo11" style="background-color: #ffff00;"> }</span><br id="u.vo12" style="background-color: #ffff00;" /><span id="u.vo13" style="background-color: #ffff00;">?&gt;</span></span><span style="color: #000000;">
&lt;/div&gt;</span></pre>
<p>Then I simply added my own page links:</p>
<pre><span style="color: #000000;">&lt;div id="mainmenu"&gt;
&lt;ul class="level1"&gt;
&lt;li class="&lt;?php echo $highlight; ?&gt;"&gt;&lt;a href="&lt;?php
echo get_settings('home'); ?&gt;"&gt;Home&lt;/a&gt;&lt;/li&gt;
</span><span style="color: #000000;"><span id="e7jr" style="background-color: #ffff00;">&lt;li&gt;&lt;a href="http://www.berlitz-edinburgh.co.uk/?page_id=29"&gt;Where to Find Us&lt;/a&gt;&lt;/li&gt;<br id="e7jr0" />&lt;li&gt;&lt;a href="http://www.berlitz-edinburgh.co.uk/?page_id=26"&gt;Contact Us&lt;/a&gt;&lt;/li&gt;</span></span><span style="color: #000000;">
&lt;/div&gt;</span></pre>
<p>The links were obtained by just clicking &#8216;view page&#8217; in the Wordpress Editor.</p>
<p>So now I am blessed with a horizontal menu that can link to &#8216;hidden&#8217; pages and a side menu that displays the pages included in the &#8217;site navigation&#8217;. Even better&#8230;if I want one of the hidden pages to appear in both the horizontal menu and the side menu, I can just &#8216;unhide&#8217; the page and then it&#8217;s done!</p>
<p>One problem&#8230;.the sub pages are not indented in the side menu as I expected.  Hmmm&#8230;.guess that&#8217;s what I&#8217;ll have to figure out next&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steventhompson.co.uk/tech/?feed=rss2&amp;p=19</wfw:commentRss>
		</item>
		<item>
		<title>The Header - Adding a Banner</title>
		<link>http://www.steventhompson.co.uk/tech/?p=14</link>
		<comments>http://www.steventhompson.co.uk/tech/?p=14#comments</comments>
		<pubDate>Mon, 11 Aug 2008 23:12:12 +0000</pubDate>
		<dc:creator>steven</dc:creator>
		
		<category><![CDATA[Berlitz Edinburgh Website]]></category>

		<category><![CDATA[wp-andreas09]]></category>

		<guid isPermaLink="false">http://www.steventhompson.co.uk/tech/?p=14</guid>
		<description><![CDATA[The banner I designed is 1600 by 180 pixels. It doesn&#8217;t repeat well by design (and I don&#8217;t even know if the repeat-x function works because I haven&#8217;t tested it on a screen with a resolution larger than 1600 yet) so that&#8217;s still an issue to sort out. The image used in the banner is [...]]]></description>
			<content:encoded><![CDATA[<p>The banner I designed is 1600 by 180 pixels. It doesn&#8217;t repeat well by design (and I don&#8217;t even know if the repeat-x function works because I haven&#8217;t tested it on a screen with a resolution larger than 1600 yet) so that&#8217;s still an issue to sort out. The image used in the banner is not our own and so I&#8217;ve added links to the site in accordance with the copyright holder&#8217;s requirements.</p>
<p>1)  Added the following to style.css under /*** header ***/</p>
<pre><span style="color: #000000;">#banner {
background:#1e1e1e url(images/berlitzlogo6.jpg) top left repeat-x;
margin:0 0 0 0;
padding:0 0 0 0;
overflow: hidden;
height: 180px;
width:100%;
}</span></pre>
<p><span style="color: #000000;">This changes the height of the original banner to 180px.</span></p>
<p><span style="color: #000000;">2)  Removed from <strong>header.php</strong> the following;</span></p>
<pre><span style="color: #000000;">&lt;div id="sitename"&gt;</span></pre>
<pre><span style="color: #000000;">&lt;h1&gt;&lt;a href="&lt;?php echo get_settings('home'); ?&gt;"&gt;&lt;?php bloginfo('name'); ?&gt;&lt;/a&gt;&lt;/h1&gt;</span></pre>
<pre><span style="color: #000000;">&lt;h2&gt;&lt;?php bloginfo('description'); ?&gt;&lt;/h2&gt;

&lt;/div&gt;</span></pre>
<p>&#8230;and replaced it with&#8230;</p>
<pre><span style="color: #000000;">&lt;div id="banner"&gt;&lt;/div&gt;</span></pre>
<p>&#8230;in order to remove the usual Wordpress style titles overlaying the banner.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steventhompson.co.uk/tech/?feed=rss2&amp;p=14</wfw:commentRss>
		</item>
		<item>
		<title>Choice of Theme for Berlitz Edinburgh</title>
		<link>http://www.steventhompson.co.uk/tech/?p=11</link>
		<comments>http://www.steventhompson.co.uk/tech/?p=11#comments</comments>
		<pubDate>Sun, 10 Aug 2008 22:56:08 +0000</pubDate>
		<dc:creator>steven</dc:creator>
		
		<category><![CDATA[Berlitz Edinburgh Website]]></category>

		<category><![CDATA[Wordpress]]></category>

		<category><![CDATA[wp-andreas09]]></category>

		<guid isPermaLink="false">http://www.steventhompson.co.uk/tech/?p=11</guid>
		<description><![CDATA[I love the design of this site which is the work of Tom Stardust. He really has an eye for beautiful web pages. But for the Berlitz Edinburgh site, I wanted a layout that was geared towards a more traditional website rather than the Wordpress style of this one. I needed look no further than [...]]]></description>
			<content:encoded><![CDATA[<p>I love the design of this site which is the work of <a title="Tom Stardust" href="http://www.tomstardust.com/" target="_blank">Tom Stardust</a>. He really has an eye for beautiful web pages. But for the Berlitz Edinburgh site, I wanted a layout that was geared towards a more traditional website rather than the Wordpress style of this one. I needed look no further than my other favourite designer,<a title="Andreas Viklund" href="http://andreasviklund.com/" target="_blank"> Andreas Viklund</a>.</p>
<p>Andreas has a range of templates; some of them Wordpress themed, some of them not.  You can take a look at the range <a title="here" href="http://andreasviklund.com/templates/" target="_blank">here</a>. In particular, I chose the theme <a title="Andreas09" href="http://andreasviklund.com/templates/andreas09/" target="_blank">Andreas09</a> for the Berlitz Edinburgh site layout.  However, this template was not available in Wordpress until&#8230;.<a title="Ainslie Johnson" href="http://webgazette.co.uk/" target="_blank">Ainslie Johnson</a> ported it over.  The download for the Wordpress-themed Andreas09 is available <a title="here" href="http://webgazette.co.uk/web-design/wordpress-themes/wp-andreas09/" target="_blank">here</a>. So Andreas and Ainslie are duly credited at the footer of the site. Both of them have done excellent work and I hope to donate to them at some point!</p>
<p>Some modifications were required to tweak this excellent theme into a corporate site.  I&#8217;m keeping track of such modifications here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steventhompson.co.uk/tech/?feed=rss2&amp;p=11</wfw:commentRss>
		</item>
		<item>
		<title>Berlitz Edinburgh Site to be Based on Wordpress</title>
		<link>http://www.steventhompson.co.uk/tech/?p=8</link>
		<comments>http://www.steventhompson.co.uk/tech/?p=8#comments</comments>
		<pubDate>Sun, 10 Aug 2008 22:53:16 +0000</pubDate>
		<dc:creator>steven</dc:creator>
		
		<category><![CDATA[Berlitz Edinburgh Website]]></category>

		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.steventhompson.co.uk/tech/?p=8</guid>
		<description><![CDATA[At the moment, I&#8217;m spending all of my spare time creating the new website for Berlitz Edinburgh. After spending many months dabbling in HTML, CSS and PHP trying to build the thing from scratch, I decided to move the whole project to Wordpress with an existing template.
It seems from a quick browse around the internet [...]]]></description>
			<content:encoded><![CDATA[<p>At the moment, I&#8217;m spending all of my spare time creating the new website for <a title="Berlitz Edinburgh" href="http://www.berlitzedinburgh.co.uk/" target="_blank">Berlitz Edinburgh</a>. After spending many months dabbling in HTML, CSS and PHP trying to build the thing from scratch, I decided to move the whole project to <a title="Wordpress" href="http://www.wordpress.org/" target="_blank">Wordpress</a> with an existing template.</p>
<p>It seems from a quick browse around the internet that a lot of people are thinking along the same lines.  There are many people using Wordpress to develop &#8216;regular&#8217; sites rather than blogs.  I even noticed some web designers that only develop using Wordpress.</p>
<p>The advantages of using Wordpress are clear:</p>
<ul>
<li><strong>Anyone can edit </strong>the site. All they need is a username and password and they can edit content in the sleek, online Wordpress Control Panel. It&#8217;s similar to using Microsoft Word, which means people don&#8217;t need any coding knowledge to edit it and this will be very advantageous when we start commissioning translations for the site.</li>
<li>The added <strong>functionality from plugins</strong> is amazing! Secure contact forms, beautiful galleries, and probably most importantly, incredible Search Engine Optimisation tools!</li>
<li>It&#8217;s <strong>Open Source</strong>&#8230;and I love Open Source. I&#8217;ve been a Linux user for over a year now and have always loved and raved about OpenOffice, Firefox&#8230;etc. I know I can never create anything that could match the Open Source Community but one day I could contribute&#8230;..</li>
</ul>
<p>So there you have it. I&#8217;ve decided to keep track of how I&#8217;ve implemented Wordpress to create a corporate site with an outstanding <strong>Content Management System</strong>. I also have to be careful as to whose work I am using for plugins&#8230;etc, so I&#8217;m keeping track of any extraordinary licensing that exists. I want to keep a record on this site so that other people can take advantage of this great technology.</p>
<p>By the way, my dabbling in HTML, CSS and PHP didn&#8217;t completely go to waste as the theme did need to be edited from time to time!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.steventhompson.co.uk/tech/?feed=rss2&amp;p=8</wfw:commentRss>
		</item>
	</channel>
</rss>
