<?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>Hannah Stothard &#187; html</title>
	<atom:link href="http://www.hannahstothard.co.uk/tag/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hannahstothard.co.uk</link>
	<description></description>
	<lastBuildDate>Sat, 26 Nov 2011 23:47:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>WordPress Comments Form &#8211; How to change HTML</title>
		<link>http://www.hannahstothard.co.uk/web/wordpress-comments-form-how-to-change-html/</link>
		<comments>http://www.hannahstothard.co.uk/web/wordpress-comments-form-how-to-change-html/#comments</comments>
		<pubDate>Sun, 03 Apr 2011 23:27:30 +0000</pubDate>
		<dc:creator>Hannah</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hannahstothard.co.uk/?p=621</guid>
		<description><![CDATA[<p>I searched high and low for a good tutorial on how to change the HTML of the wordpress comment form. From the articles I did find I managed to put together something that works. Feel free to post a comment&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I searched high and low for a good tutorial on how to change the HTML of the wordpress comment form. From the articles I did find I managed to put together something that works. Feel free to post a comment if there is a better way of doing this&#8230;</p>
<p>I put the below code in functions.php and comment_form(); in my comments.php</p>
<p>The code below is my modified version. For defaults simply add or replace my code with <a href="http://codex.wordpress.org/Function_Reference/comment_form">http://codex.wordpress.org/Function_Reference/comment_form</a></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">add_filter( 'comment_form_defaults', 'my_comment_defaults');
&nbsp;
function my_comment_defaults($defaults) {
	$req = get_option( 'require_name_email' );
	$aria_req = ( $req ? &quot; aria-required='true'&quot; : '' );
&nbsp;
	$defaults = array(
		'fields'        	   =&gt; array(
		'author' =&gt; '&lt;div&gt;&lt;label for=&quot;author&quot;&gt;' . __( 'Name' ) . ( $req ? '&lt;span class=&quot;required&quot;&gt;*&lt;/span&gt;' : '' ) . '&lt;/label&gt; ' . '&lt;input id=&quot;author&quot; name=&quot;author&quot; placeholder=&quot;your name&quot; type=&quot;text&quot; value=&quot;' . esc_attr( $commenter['comment_author'] ) . '&quot; size=&quot;30&quot;' . $aria_req . ' /&gt;&lt;/div&gt;',
		'email' =&gt; '&lt;div&gt;&lt;label for=&quot;email&quot;&gt;' . __( 'Email' )  . ( $req ? '&lt;span class=&quot;required&quot;&gt;*&lt;/span&gt;' : '' ) . '&lt;/label&gt; ' . '&lt;input id=&quot;email&quot; name=&quot;email&quot; placeholder=&quot;email@address.co.uk&quot; type=&quot;email&quot; value=&quot;' . esc_attr(  $commenter['comment_author_email'] ) . '&quot; size=&quot;30&quot;' . $aria_req . ' /&gt;&lt;/div&gt;'
                ),
		'comment_field' =&gt; '&lt;div&gt;&lt;label for=&quot;comment&quot;&gt;' . _x( 'Comment', 'noun' ) . '&lt;/label&gt;&lt;textarea id=&quot;comment&quot; name=&quot;comment&quot; cols=&quot;45&quot; rows=&quot;8&quot; aria-required=&quot;true&quot;  placeholder=&quot;your comment&quot;&gt;&lt;/textarea&gt;&lt;/div&gt;',
&nbsp;
		'must_log_in'          =&gt; '&lt;p class=&quot;must-log-in&quot;&gt;' .  sprintf( __( 'You must be &lt;a href=&quot;%s&quot;&gt;logged in&lt;/a&gt; to post a comment.' ), wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '&lt;/p&gt;',
&nbsp;
		'logged_in_as'         =&gt; '&lt;p class=&quot;logged-in-as&quot;&gt;' . sprintf( __( 'Logged in as &lt;a href=&quot;%1$s&quot;&gt;%2$s&lt;/a&gt;. &lt;a href=&quot;%3$s&quot; title=&quot;Log out of this account&quot;&gt;Log out?&lt;/a&gt;' ), admin_url( 'profile.php' ), $user_identity, wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ) ) ) ) . '&lt;/p&gt;',
&nbsp;
		'comment_notes_before' =&gt; '&lt;fieldset&gt;',
&nbsp;
		'comment_notes_after'  =&gt; '&lt;/fieldset&gt;',
&nbsp;
		'id_form'              =&gt; 'commentform',
&nbsp;
		'id_submit'            =&gt; 'submit',
&nbsp;
		'title_reply'          =&gt; __( 'Leave a Comment' ),
&nbsp;
		'title_reply_to'       =&gt; __( 'Leave a Reply %s' ),
&nbsp;
		'cancel_reply_link'    =&gt; __( 'Cancel reply' ),
&nbsp;
		'label_submit'         =&gt; __( 'Comment' ),
&nbsp;
                );
&nbsp;
    return $defaults;
}</pre></td></tr></table></div>

<p>You will notice I have made the following modifications</p>
<ul>
<li>Removed the website field</li>
<li>Added type=&#8221;email&#8221; to the Email field (HTML5)</li>
<li>Added placeholder text (HTML5)</li>
<li>Removed the default text from the top and bottom of the form and replaced with &lt;fieldset&gt;&lt;/fieldset&gt;</li>
<li>Moved the required * inside the label</li>
<li>Changed the &#8220;Leave a Reply&#8221; title to &#8220;Leave a Comment&#8221;</li>
<li>Changed the text of the submit button</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.hannahstothard.co.uk/web/wordpress-comments-form-how-to-change-html/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>WordPress 404 on Custom Post Types</title>
		<link>http://www.hannahstothard.co.uk/web/wordpress-404-on-custom-post-types/</link>
		<comments>http://www.hannahstothard.co.uk/web/wordpress-404-on-custom-post-types/#comments</comments>
		<pubDate>Wed, 23 Mar 2011 21:04:14 +0000</pubDate>
		<dc:creator>Hannah</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hannahstothard.co.uk/?p=614</guid>
		<description><![CDATA[<p>I came across a nightmare of a problem today. Everytime I viewed my custom post types I kept getting a 404 error.  I just couldnt understand what was going on.  Thanks to this <a href="http://nooshu.com/page-not-found-with-custom-post-types/">article</a> I finally solved the problem.&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>I came across a nightmare of a problem today. Everytime I viewed my custom post types I kept getting a 404 error.  I just couldnt understand what was going on.  Thanks to this <a href="http://nooshu.com/page-not-found-with-custom-post-types/">article</a> I finally solved the problem.</p>
<p>When setting up custom post types and a custom permalink structure add the below code to the function used to create custom posts.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="language" style="font-family:monospace;">flush_rewrite_rules( false );</pre></td></tr></table></div>

<p>I just wanted to write a quick post to highlight the problem but an explanation of why this is needed can be found on the <a href="http://codex.wordpress.org/Custom_Queries">wordpress codex</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hannahstothard.co.uk/web/wordpress-404-on-custom-post-types/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress 3.1</title>
		<link>http://www.hannahstothard.co.uk/web/wordpress-3-1/</link>
		<comments>http://www.hannahstothard.co.uk/web/wordpress-3-1/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 21:35:11 +0000</pubDate>
		<dc:creator>Hannah</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.hannahstothard.co.uk/?p=516</guid>
		<description><![CDATA[<p>Yesterday saw the release of <a href="http://codex.wordpress.org/Version_3.1">WordPress 3.1</a> and it has some pretty nice features for both general users and developers like myself.</p>
<p><strong>New Admin Bar</strong><br />
An admin bar has been added when logged in. Its a nice little touch&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>Yesterday saw the release of <a href="http://codex.wordpress.org/Version_3.1">WordPress 3.1</a> and it has some pretty nice features for both general users and developers like myself.</p>
<p><strong>New Admin Bar</strong><br />
An admin bar has been added when logged in. Its a nice little touch for the not so experienced wordpress user. It makes the admin section and the front end appear more seamless by allowing you to click through to create a new post, manage your personal details, appearance, comments and updates whilst browsing the front end of your site. For multisite users it makes switching between sites quick and easy.</p>
<p><img title="wordpress3.1admin" src="http://www.hannahstothard.co.uk/wp-content/uploads/2011/02/wordpress3.1admin.jpg" alt="" width="550" height="117" /></p>
<p><span id="more-516"></span></p>
<p><strong>Internal Linking</strong><br />
Another new feature aimed at the less experienced wordpress user is the new internal linking feature. When a user clicks on the link icon in the WYSISYG editor a lightbox opens with additional functionality to select from a pre populated list of the most recently created posts or search for one. The user can then simply select the post to link to and add it to their content. Simple.</p>
<p><img title="wordpress3.1link" src="http://www.hannahstothard.co.uk/wp-content/uploads/2011/02/wordpress3.1link.jpg" alt="" width="550" height="495" /></p>
<p><strong>Post Formats</strong><br />
The ability to categorize posts in a new way has been added to this release. <a href="http://codex.wordpress.org/Post_Formats">Post formats</a> allow wordpress developers to group posts into the following formats:<br />
aside, gallery, link, image, quote, status, video, audio and chat. Once categorized classes are added to the listing and single pages to allow unique styling. See my post on &#8220;<a title="How to use Post Formats in WordPress 3.1" href="http://www.hannahstothard.co.uk/web/how-to-use-post-formats-in-wordpress-3-1/">How to use Post Formats in WordPress 3.1</a>&#8220;  for more info.</p>
<p><strong>Enhanced pagination in Admin Panel</strong><br />
Paging through lots of posts and categories has just become easier with the ability to type in the page you want within the pagination.</p>
<p><img src="http://www.hannahstothard.co.uk/wp-content/uploads/2011/02/wordpress-nav.jpg" alt="" title="wordpress-nav" width="550" height="92" /></p>
<p><strong>Custom Post Type Archives</strong><br />
Custom post types now have their own archive pages. They will now use archive-{posttype}.php rather than a page that is manually set up to list postypes on.</p>
<p><strong>Advanced Queries</strong><br />
More ways to target posts using taxonomies and custom fields. See <a href="http://codex.wordpress.org/Function_Reference/query_posts#Taxonomy_Parameters">query_posts</a> for more information.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hannahstothard.co.uk/web/wordpress-3-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How did I not know about the col tag???</title>
		<link>http://www.hannahstothard.co.uk/web/how-did-i-not-know-about-the-tag/</link>
		<comments>http://www.hannahstothard.co.uk/web/how-did-i-not-know-about-the-tag/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 04:23:19 +0000</pubDate>
		<dc:creator>Hannah</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.hannahstothard.co.uk/?p=119</guid>
		<description><![CDATA[<p>So whilst developing away the other day I came across the  &#60;col&#62; tag! ( Hopefully I am not alone in never having used this before.)<br />
After a quick google I soon established that the col tag could be used&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>So whilst developing away the other day I came across the  &lt;col&gt; tag! ( Hopefully I am not alone in never having used this before.)<br />
After a quick google I soon established that the col tag could be used to control the widths and alignments of columns in a table removing the need to constantly define td widths and alignments individually.<br />
<span id="more-119"></span><br />
Simply insert a col tag above your table for every column in the table. eg.</p>
<p>&lt;col width=&#8221;300&#8243; /&gt;<br />
&lt;col width=&#8221;100&#8243; /&gt;<br />
&lt;col width=&#8221;300&#8243; /&gt;</p>
<p>&lt;table&gt;<br />
&lt;thead&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;Column 1&lt;/th&gt;<br />
&lt;th&gt;Column 2&lt;/th&gt;<br />
&lt;th&gt;Column 3&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;/thead&gt;<br />
&lt;tbody&gt;<br />
&lt;tr&gt;<br />
&lt;th&gt;Column width 300px&lt;/th&gt;<br />
&lt;th&gt;Column width 100px&lt;/th&gt;<br />
&lt;th&gt;Column width 300px&lt;/th&gt;<br />
&lt;/tr&gt;<br />
&lt;/tbody&gt;<br />
&lt;/table&gt;</p>
<p>As simple as that! Find out more about the &lt;col&gt; tag at <a href="http://www.w3schools.com/TAGS/tag_col.asp">http://www.w3schools.com/TAGS/tag_col.asp</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hannahstothard.co.uk/web/how-did-i-not-know-about-the-tag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PNG&#8217;s Image Links and IE6 Fixes</title>
		<link>http://www.hannahstothard.co.uk/web/pngs-image-links-and-ie6-fixes/</link>
		<comments>http://www.hannahstothard.co.uk/web/pngs-image-links-and-ie6-fixes/#comments</comments>
		<pubDate>Sun, 01 Mar 2009 23:09:06 +0000</pubDate>
		<dc:creator>Hannah</dc:creator>
				<category><![CDATA[web]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://www.hannahstothard.co.uk/?p=117</guid>
		<description><![CDATA[<p>As some of you may be aware PNG&#8217;s are a bit of a pain when it comes to supporting good old IE6. How I long for the day I can either stop supporting IE6 or when someone develops a js&#8230;</p>]]></description>
			<content:encoded><![CDATA[<p>As some of you may be aware PNG&#8217;s are a bit of a pain when it comes to supporting good old IE6. How I long for the day I can either stop supporting IE6 or when someone develops a js fix so that I can use background images with positions and repeats among other things. (PNGFix is currently working on a beta js to support the above and is well worth looking into.)</p>
<p>However a particular annoyance is what happens when you use a transparent png as an image link! What you will experience is a link that is only active when you manage to precisely position your mouse over the top of a letter or part of the non transparent image. Any area that is transparent even though your link is set to display:block with widths and heights is ignored.</p>
<p>However all is not lost. There is a solution&#8230;</p>
<p>Simply save your pngs with a 1% transparent background. This is not visible to the naked eye but tricks the browser into displaying the transparent area as a block. Clever hey!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hannahstothard.co.uk/web/pngs-image-links-and-ie6-fixes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

