<?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>Maverick Web Creations &#187; CSS</title>
	<atom:link href="http://www.maverickwebcreations.com/tag/css/feed" rel="self" type="application/rss+xml" />
	<link>http://www.maverickwebcreations.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 06:34:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Display Your Twitter Status Message in a Speech Bubble in WordPress</title>
		<link>http://www.maverickwebcreations.com/2008/11/06/twitter-status-message-speech-bubble-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2008/11/06/twitter-status-message-speech-bubble-wordpress.html#comments</comments>
		<pubDate>Thu, 06 Nov 2008 00:00:13 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css speech bubble]]></category>
		<category><![CDATA[curvy corners]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=440</guid>
		<description><![CDATA[<p></p>
<p>I got my idea from Tim Ferris&#8217; blog&#8230;</p>
<p></p>
<p>You see that nice speech bubble effect? It is actually quite a pain in the neck to create with pure CSS and images. It is possible to create it with pure CSS code in Firefox but not in Internet Explorer.&#8230; <a href="http://www.maverickwebcreations.com/2008/11/06/twitter-status-message-speech-bubble-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><img src="http://www.crunchbase.com/assets/images/resized/0000/2755/2755v2-max-450x450.png" alt="Image representing Twitter as depicted in Crun..." title="Image representing Twitter as depicted in Crun..." width="210" height="49" /></p>
<p>I got my idea from Tim Ferris&#8217; blog&#8230;</p>
<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2008/11/2008-11-04_144246.png" alt="How to Display Your Twitter Status Message in a Speech Bubble in WordPress" title="2008-11-04_144246" class="alignnone size-full wp-image-441" width="314" height="143" /></p>
<p>You see that nice speech bubble effect? It is actually quite a pain in the neck to create with pure CSS and images. It is possible to create it with pure CSS code in Firefox but not in Internet Explorer. I decided to go with <a href="http://www.willmayo.com/2007/02/10/css-speech-bubbles/">Will Mayo&#8217;s CSS Speech Bubbles</a> because the code is simpler than other similar speech bubble scripts I found on the internet. I further simplified Will&#8217;s code to cut out the unnecessary code and make it even more idiot proof.</p>
<p><strong>Step 1: Download Will&#8217;s CSS Speech Bubbles</strong></p>
<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2008/11/2008-11-05_235941.png" alt="How to Display Your Twitter Status Message in a Speech Bubble in WordPress" title="2008-11-05_235941" class="alignnone size-full wp-image-448" width="500" height="83" /></p>
<p><a href="http://www.willmayo.com/journal/projects/07/bubbles/download.zip">Download Will&#8217;s CSS Speech Bubbles</a> and extract the zip file&#8217;s contents to your computer. This script uses the <a href="http://www.curvycorners.net/">Curvy Corners</a> Javascript by Cameron Cooke and Tim Hutchison. This is a really cool way of creating rounded corners without messing around with images. The image files in Will&#8217;s package are for the part where the speech bubbles connect with the text but they have nothing to do with the rounded corners.</p>
<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2008/11/2008-11-06_001113.png" alt="How to Display Your Twitter Status Message in a Speech Bubble in WordPress" title="2008-11-06_001113" class="alignnone size-full wp-image-449" width="499" height="230" /></p>
<p>If you open &#8220;index.html&#8221; from Will&#8217;s files, you will see the examples above. We have 2 challenges to make it look like Tim&#8217;s blog.</p>
<ol>
<li>The &#8220;triangle&#8221; of each speech bubble is pointing downwards but we want it to point to the left.</li>
<li>We want to add an image to the left of the speech bubble but the default code won&#8217;t align to the right of the image.</li>
</ol>
<p><strong>Step 2: Download and Install Twitter for WordPress</strong></p>
<p>I tested about 5 Twitter plugins that claimed to display the latest Twitter status messages on your WordPress blog. Some did not work at all, while others did not work like I expected. I settled on <a href="http://rick.jinlabs.com/code/twitter/">Twitter for WordPress</a> because it is easy to install and customize.</p>
<p><strong>Step 3: Tweak Will&#8217;s CSS Speech Bubbles</strong></p>
<p>This just won&#8217;t work out of the box for our desired layout. Before we do that, let&#8217;s take a look at Will&#8217;s default code.</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
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">	&lt;link rel=&quot;stylesheet&quot; href=&quot;bubbles.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot; charset=&quot;utf-8&quot; /&gt;
	&lt;script type=&quot;text/JavaScript&quot; src=&quot;rounded_corners.inc.js&quot;&gt;&lt;/script&gt;
	&lt;script type=&quot;text/JavaScript&quot;&gt;
	  window.onload = function() {
	      settings = {
	          tl: { radius: 10 },
	          tr: { radius: 10 },
	          bl: { radius: 10 },
	          br: { radius: 10 },
	          antiAlias: true,
	          autoPad: true
	      }
	      var myBoxObject = new curvyCorners(settings, &quot;rounded&quot;);
	      myBoxObject.applyCornersToAll();
	  }
	&lt;/script&gt;</pre></td></tr></table></div>
<p>This is what you must have within your head tags. I shall put all that window.onload code into a Javascript file and load it from there.</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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* Normal Bubble */</span>
div<span style="color: #6666ff;">.bubble</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.75em</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">24px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.bubble</span> blockquote <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#c9c2c1</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.bubble</span> blockquote p <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
div<span style="color: #6666ff;">.bubble</span> cite <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">7px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">6px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">tip.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">20px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-style</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">normal</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Rounded Bubble */</span>
div<span style="color: #6666ff;">.bubble</span> div<span style="color: #6666ff;">.rounded</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin-bottom</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#b7e0ff</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.bubble</span> div<span style="color: #6666ff;">.rounded</span> blockquote <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.bubble</span> div<span style="color: #6666ff;">.rounded</span> blockquote p <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #6666ff;">.bubble</span> cite<span style="color: #6666ff;">.rounded</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-left</span><span style="color: #00AA00;">:</span> <span style="color: #933;">15px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">12px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">9px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">tip-rounded.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Pimped Bubble */</span>
div<span style="color: #cc00cc;">#pimped</span><span style="color: #6666ff;">.bubble</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0.9em</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #cc00cc;">#pimped</span><span style="color: #6666ff;">.bubble</span> div<span style="color: #6666ff;">.rounded</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#fff</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#111</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
div<span style="color: #cc00cc;">#pimped</span><span style="color: #6666ff;">.bubble</span> cite<span style="color: #6666ff;">.rounded</span> <span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">transparent</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000; font-style: italic;">tip-pimped.gif</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #933;">15px</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>This is the CSS code you should include into your web page or you own style sheet.</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
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;bubble&quot;&gt;
		&lt;blockquote&gt;
			&lt;p&gt;Works great for blog comments!&lt;/p&gt;
		&lt;/blockquote&gt;
		&lt;cite&gt;&lt;strong&gt;John Smith&lt;/strong&gt; on 1st January 2007 at 3:55pm&lt;/cite&gt;
	&lt;/div&gt;
&nbsp;
	&lt;div class=&quot;bubble&quot;&gt;
		&lt;div class=&quot;rounded&quot;&gt;
			&lt;blockquote&gt;
				&lt;p&gt;Customize colors and styling to your taste from within the CSS, then simply edit the pointer tip image. Works on any background to fit with your design.&lt;/p&gt;
			&lt;/blockquote&gt;
		&lt;/div&gt;
		&lt;cite class=&quot;rounded&quot;&gt;&lt;strong&gt;Rounded Bubble&lt;/strong&gt; using &lt;a href=&quot;http://www.curvycorners.net/&quot;&gt;curvy corners&lt;/a&gt;&lt;/cite&gt;
	&lt;/div&gt;
&nbsp;
	&lt;div id=&quot;pimped&quot; class=&quot;bubble&quot;&gt;
		&lt;div class=&quot;rounded&quot;&gt;
			&lt;blockquote&gt;
				&lt;p&gt;Expands to fit any layout and scales nicely with big and small font sizes.&lt;/p&gt;
			&lt;/blockquote&gt;
		&lt;/div&gt;
		&lt;cite class=&quot;rounded&quot;&gt;&lt;strong&gt;Dark Bubble&lt;/strong&gt;&lt;/cite&gt;
	&lt;/div&gt;</pre></td></tr></table></div>
<p>For this tutorial, I shall create a speech bubble that is a cross between the first and second examples. I like the simplicity of the first speech bubble but it does not have any rounded corners. The code above shows 3 different implementations of the speech bubbles. I do not understand why Will uses the blockquote tags because I find them rather redundant. I also disagree with some of the CSS code and I shall show you how I cut it down to the bare essentials.</p>
<p>My code is very different from Will&#8217;s default samples. Firstly, I uploaded the file &#8220;rounded-corners.js&#8221; into the &#8220;js&#8221; folder of my WordPress theme.</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
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">//LOAD THE CURVY CORNERS FOR THE ROUNDED CLASS</span>
window.<span style="color: #000066;">onload</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
<span style="color: #009900;">&#123;</span>
	settings <span style="color: #339933;">=</span>
	<span style="color: #009900;">&#123;</span>
		tl<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> radius<span style="color: #339933;">:</span> <span style="color: #CC0000;">10</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		tr<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> radius<span style="color: #339933;">:</span> <span style="color: #CC0000;">10</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		bl<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> radius<span style="color: #339933;">:</span> <span style="color: #CC0000;">10</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		br<span style="color: #339933;">:</span> <span style="color: #009900;">&#123;</span> radius<span style="color: #339933;">:</span> <span style="color: #CC0000;">10</span> <span style="color: #009900;">&#125;</span><span style="color: #339933;">,</span>
		antiAlias<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span><span style="color: #339933;">,</span>
		autoPad<span style="color: #339933;">:</span> <span style="color: #003366; font-weight: bold;">true</span>
	<span style="color: #009900;">&#125;</span>
&nbsp;
	<span style="color: #003366; font-weight: bold;">var</span> myBoxObject <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">new</span> curvyCorners<span style="color: #009900;">&#40;</span>settings<span style="color: #339933;">,</span> <span style="color: #3366CC;">&quot;rounded&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	myBoxObject.<span style="color: #660066;">applyCornersToAll</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></td></tr></table></div>
<p>I also created a file titled &#8220;rounded-corners-loader.js&#8221; with the code above and uploaded into the same folder as the previous &#8220;rounded-corners.js&#8221; file. Please note that I have renamed the default file name of &#8220;rounded_corners_inc.js&#8221; to &#8220;rounded-corners.js&#8221;.</p>
<p>Here&#8217;s what you need to add to the header.php file of your WordPress theme:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;script type=&quot;text/javascript&quot; src=&quot;%3C?php%20echo%20bloginfo%28%27template_directory%27%29;%20?%3E/js/rounded-corners.js&quot;&gt;&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;%3C?php%20echo%20bloginfo%28%27template_directory%27%29;%20?%3E/js/rounded-corners-loader.js&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div>
<p>Here&#8217;s my updated CSS code for the CSS speech bubbles. Add this code to the style.css file of your WordPress theme:</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
38
39
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* TWITTER BUBBLE */</span>
<span style="color: #cc00cc;">#twitter_bubble</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#twitter_bubble</span> <span style="color: #cc00cc;">#twitter_photo</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">position</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">relative</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">89px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">73px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">url</span><span style="color: #00AA00;">&#40;</span><span style="color: #ff0000;">&quot;/wp-content/themes/YOURTHEME/images/bg-twitter-bubble-tip.gif&quot;</span><span style="color: #00AA00;">&#41;</span> <span style="color: #993333;">no-repeat</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">z-index</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">10000</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#twitter_bubble</span> <span style="color: #cc00cc;">#twitter_photo</span> img
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D5D5D5</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#twitter_bubble</span> div<span style="color: #6666ff;">.rounded</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">170px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">-63px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">88px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#D5D5D5</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#FFFFFF</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #cc00cc;">#twitter_bubble</span> div<span style="color: #6666ff;">.rounded</span> p
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2008/11/2008-11-06_003218.png" alt="How to Display Your Twitter Status Message in a Speech Bubble in WordPress" title="2008-11-06_003218" class="alignnone size-full wp-image-460" width="128" height="121" /></p>
<p>I created my own graphic to display on the left of the speech bubble. I won&#8217;t go through the steps on how I created this because that would be a whole different topic. Please feel free to use your image and update the &#8220;YOURTHEME&#8221; code in my CSS code to match the image folder of your WordPress theme.</p>
<p>Now we shall display the speech bubble and your avatar in your WordPress sidebar. I am assuming that you already have a picture ready. I created 73 px by 73 px picture of myself. Feel free to create a picture with whatever dimensions you want but you would have to edit some of the CSS code. Alternatively, you may use <a href="http://www.maverickwebcreations.com/2008/11/26/display-gravatar-avatars-on-your-web-site.html">Gravatar avatars to replace the code below</a>.</p>
<p>I design my sidebars with a fixed width therefore I manually restrict the width of the speech bubble to make it look good within my sidebar.</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">	&lt;div id=&quot;twitter_bubble&quot;&gt;
		&lt;div id=&quot;twitter_photo&quot;&gt;&lt;img src=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">echo</span> bloginfo<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'template_directory'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>/images/icon-twitter.jpg&quot; alt=&quot;&quot; width=&quot;73&quot; height=&quot;73&quot; /&gt;&lt;/div&gt;
		&lt;div class=&quot;rounded&quot;&gt;&lt;p&gt; on Vincent's &lt;a href=&quot;http://twitter.com/vincentliaw&quot; rel=&quot;nofollow&quot;&gt;Twitter&lt;/a&gt;, &lt;a href=&quot;http://friendfeed.com/vincentliaw&quot; rel=&quot;nofollow&quot;&gt;FriendFeed&lt;/a&gt;, &lt;a href=&quot;http://www.linkedin.com/in/vincentliaw&quot; rel=&quot;nofollow&quot;&gt;LinkedIn&lt;/a&gt; and &lt;a href=&quot;http://www.facebook.com/people/Vincent_Liaw/701298781&quot; rel=&quot;nofollow&quot;&gt;Facebook&lt;/a&gt;.&lt;/p&gt;&lt;/div&gt;
	&lt;/div&gt;</pre></td></tr></table></div>
<p><a href="http://rick.jinlabs.com/code/twitter/">Twitter for WordPress</a> has a bunch of options for you to configure. Please refer to the plugin&#8217;s site to find out more about how you may customize the Twitter status messages if my preferred settings do not suit your needs. The Twitter messages end with the time of the message like &#8220;12 hours ago&#8221;. I simply added my own text &#8220;on Vincent&#8217;s Twitter&#8230;.&#8221; with links to my social networking accounts with the same update. I use Ping.fm to post status messages to my social networking accounts to save me time.</p>
<p>This tutorial seems very long but it really is quite simple. I briefly explained the differences between my code and Will&#8217;s code, which took up quite a big chunk of this article. You might have to tweak my code further to make it look good on your web site.</p>
<p><img src="http://www.maverickwebcreations.com/wp-content/uploads/2008/11/2008-11-05_225310.png" alt="How to Display Your Twitter Status Message in a Speech Bubble in WordPress" title="2008-11-05_225310" class="alignnone size-full wp-image-466" width="285" height="151" /></p>
<p>Please check out my <a href="http://www.vincentrich.com/">internet marketing blog</a> to see it action as I have not added this Twitter speech bubble to this blog at the time of this post. Let me know if you have questions about this tutorial and ideas to improve it further.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/11/06/twitter-status-message-speech-bubble-wordpress.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>How to Add reddit Buttons to WordPress</title>
		<link>http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html#comments</comments>
		<pubDate>Fri, 17 Oct 2008 00:00:58 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[sharethis]]></category>
		<category><![CDATA[social bookmarking]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[social news]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=200</guid>
		<description><![CDATA[<p>reddit, like Digg offers <a href="http://www.reddit.com/buttons/">web site integration buttons</a> for webmasters. The implementation of the reddit buttons is very similar to my previous post on <a href="http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html">how to add Digg buttons to WordPress</a>. In my next post, I will show you how to display Digg and reddit voting buttons to&#8230; <a href="http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>reddit, like Digg offers <a href="http://www.reddit.com/buttons/">web site integration buttons</a> for webmasters. The implementation of the reddit buttons is very similar to my previous post on <a href="http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html">how to add Digg buttons to WordPress</a>. In my next post, I will show you how to display Digg and reddit voting buttons to your WordPress posts at the same time.</p>
<p>For now, let&#8217;s take a look at what reddit has to offer&#8230;</p>
<p>reddit has a larger list of buttons than Digg. For this post, I shall use the button that looks most like the default buttons you see on reddit.com. Again, I selected this button for usability reasons because I want people who are familiar with reddit to feel comforable with the reddit buttons on my web site.</p>
<p><strong>Here&#8217;s How the reddit Button Will Look on Your Web Site&#8230;</strong></p>
<p><img class="alignnone size-medium wp-image-202" title="reddit Button 1" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_153042.png" alt="How to Add reddit Buttons to WordPress" width="47" height="66" /></p>
<p>If your blog post has been submitted to reddit, you should see a reddit number and a “reddit” text in your reddit button.</p>
<p><img class="alignnone size-medium wp-image-201" title="reddit button 2" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_153125.png" alt="How to Add reddit Buttons to WordPress" width="47" height="66" /></p>
<p>If you or someone else has not submitted your blog post to reddit, you won’t see any redditnumber but you will see the option to submit your blog post to reddit.</p>
<p><strong>reddit&#8217;s Integration Code</strong></p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span> src<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;http://www.reddit.com/button.js?t=2&quot;</span><span style="color: #339933;">&gt;&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span>reddit_url<span style="color: #339933;">=</span><span style="color: #3366CC;">'[URL]'</span><span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
<span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">'text/javascript'</span><span style="color: #339933;">&gt;</span>reddit_title<span style="color: #339933;">=</span><span style="color: #3366CC;">'[TITLE]'</span><span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span></pre></td></tr></table></div>
<p><strong>WordPress Default Theme&#8217;s index.php Template</strong></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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> --&gt;&lt;/small&gt;
&nbsp;
		&lt;div class=&quot;entry&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
&nbsp;
		&lt;p class=&quot;postmetadata&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p><strong>What We Need to Do</strong></p>
<p>We need to replace reddit integration code&#8217;s <strong>[URL]</strong> and <strong>[TITLE]</strong> with WordPress&#8217; <strong>&lt;?php the_permalink() ?&gt;</strong> and <strong>&lt;?php the_title(); ?&gt; </strong> respectively somewhere within the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>Basic Example of reddit Integration with WordPress</strong></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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_url='<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>'&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_title='<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>'&lt;/script&gt;
&nbsp;
		&lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> --&gt;&lt;/small&gt;
&nbsp;
		&lt;div class=&quot;entry&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
&nbsp;
		&lt;p class=&quot;postmetadata&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>This alone wouldn&#8217;t look good on your web site. We need some CSS style to spice things up!</p>
<p><strong>reddit Integration with WordPress with HTML and CSS</strong></p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;div class=&quot;social_news&quot;&gt;
&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;
&lt;script type='text/javascript'&gt;reddit_url='[URL]'&lt;/script&gt;
&lt;script type='text/javascript'&gt;reddit_title='[TITLE]'&lt;/script&gt;
&lt;/div&gt;</pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.social_news</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.social_news</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>Wrap the reddit code with a DIV class. You may choose to align the DIV class left or right but I think it looks better on the right.</p>
<p>Here’s the full source code:</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;div class=&quot;social_news&quot;&gt;
		&lt;script type=&quot;text/javascript&quot; src=&quot;http://www.reddit.com/button.js?t=2&quot;&gt;&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_url='<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>'&lt;/script&gt;
		&lt;script type='text/javascript'&gt;reddit_title='<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>'&lt;/script&gt;
		&lt;/div&gt;
&nbsp;
		&lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> --&gt;&lt;/small&gt;
&nbsp;
		&lt;div class=&quot;entry&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
&nbsp;
		&lt;p class=&quot;postmetadata&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>You may apply this modification to your WordPress theme’s single.php and page.php or any other template that has the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>A WordPress Plugin Alternative: Digg &#038; Reddit Me Plugin</strong></p>
<p>If you don’t want to edit your WordPress theme files, try using the <a href="http://www.michelem.org/wordpress-plugin-digg-reddit-me/">Digg &#038; Reddit Me plugin</a>. I personally think it would be too much of a hassle to manually insert the code into each post if I were to use this plugin but it really depends on your preferences and needs for your WordPress blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/10/17/how-to-add-reddit-buttons-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>How to Add Digg Buttons to WordPress</title>
		<link>http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html</link>
		<comments>http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html#comments</comments>
		<pubDate>Thu, 16 Oct 2008 02:24:50 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[digg]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[reddit]]></category>
		<category><![CDATA[sharethis]]></category>
		<category><![CDATA[social bookmarking]]></category>
		<category><![CDATA[Social Networking]]></category>
		<category><![CDATA[social news]]></category>
		<category><![CDATA[WordPress]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=184</guid>
		<description><![CDATA[<p>On <a href="http://digg.com/tools/integrate">Digg.com&#8217;s Tools/Integrate page,</a> there are 3 types of Digg buttons available for us to display on our web sites:</p>
&#8220;Digg This&#8221; with Submit Capability
Simple &#8220;Digg This&#8221; with Digg Count (original version)
Custom Submission-Only Button
<p>I think the 1st option makes the most sense. I want a Digg&#8230; <a href="http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>On <a href="http://digg.com/tools/integrate">Digg.com&#8217;s Tools/Integrate page,</a> there are 3 types of Digg buttons available for us to display on our web sites:</p>
<ul>
<li>&#8220;Digg This&#8221; with Submit Capability</li>
<li>Simple &#8220;Digg This&#8221; with Digg Count (original version)</li>
<li>Custom Submission-Only Button</li>
</ul>
<p>I think the 1st option makes the most sense. I want a Digg voting button on all my WordPress posts. If I only want a Digg submission button, I can simply use <a href="http://sharethis.com/">ShareThis</a>, which takes up less space.</p>
<p><strong>Here&#8217;s How the &#8220;Digg This&#8221; with Submit Capability Digg Button Will Look on Your Web Site&#8230;</strong></p>
<p><img class="alignnone size-medium wp-image-185" title="Digg Button 1" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_101240.png" alt="How to Add Digg Buttons to WordPress" width="62" height="91" /></p>
<p>If your blog post has been submitted to Digg, you should see a Digg number and a &#8220;digg it&#8221; text in your Digg button.</p>
<p><img class="alignnone size-medium wp-image-186" title="Digg Button 2" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/10/2008-10-16_101203.png" alt="How to Add Digg Buttons to WordPress" width="60" height="86" /></p>
<p>If you or someone else has not submitted your blog post to Digg, you won&#8217;t see any Digg number but you will see the option to submit your blog post to Digg.</p>
<p>I would refrain from using another style of Digg buttons because this style is consistent with the Digg buttons on Digg.com. I would not want to confuse my readers by using an Digg button style that they are not used to.</p>
<p><strong>Digg&#8217;s Integration Code</strong></p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #339933;">&lt;</span>script type<span style="color: #339933;">=</span><span style="color: #3366CC;">&quot;text/javascript&quot;</span><span style="color: #339933;">&gt;</span>
digg_url <span style="color: #339933;">=</span> <span style="color: #3366CC;">'WEBSITE_URL'</span><span style="color: #339933;">;</span>
<span style="color: #339933;">&lt;/</span>script<span style="color: #339933;">&gt;</span>
&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;</pre></td></tr></table></div>
<p><strong>WordPress Default Theme&#8217;s index.php Template</strong></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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> --&gt;&lt;/small&gt;
&nbsp;
		&lt;div class=&quot;entry&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
&nbsp;
		&lt;p class=&quot;postmetadata&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p><strong>What We Need to Do</strong></p>
<p>We need to replace Digg integration code&#8217;s <strong>WEBSITE_URL</strong> with WordPress&#8217; <strong>&lt;?php the_permalink() ?&gt;</strong> somewhere within the  <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>Basic Example of Digg Integration with WordPress</strong></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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
		digg_url = '<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>';
		&lt;/script&gt;
		&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&nbsp;
		&lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> --&gt;&lt;/small&gt;
&nbsp;
		&lt;div class=&quot;entry&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
&nbsp;
		&lt;p class=&quot;postmetadata&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>The problem with this basic example is it would look like rubbish in your WordPress blog. A little CSS and HTML is required to display it properly.</p>
<p><strong>Digg Integration with WordPress with HTML and CSS</strong></p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="php" style="font-family:monospace;">&lt;div class=&quot;social_news&quot;&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
digg_url = '<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>';
&lt;/script&gt;
&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/div&gt;</pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.social_news</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.social_news</span>
<span style="color: #00AA00;">&#123;</span>
	<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #933;">10px</span> <span style="color: #933;">0px</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span><span style="color: #00AA00;">;</span>
	<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>Wrap the Digg code with a DIV class. You may choose to align the DIV class left or right but I think it looks better on the right.</p>
<p>Here&#8217;s the full source code:</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
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">while</span> <span style="color: #009900;">&#40;</span>have_posts<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">:</span> the_post<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
	&lt;div class=&quot;post&quot; id=&quot;post-<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_ID<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;
		&lt;div class=&quot;social_news&quot;&gt;
		&lt;script type=&quot;text/javascript&quot;&gt;
		digg_url = '<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>';
		&lt;/script&gt;
		&lt;script src=&quot;http://digg.com/tools/diggthis.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
		&lt;/div&gt;
&nbsp;
		&lt;h2&gt;&lt;a href=&quot;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_permalink<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot; rel=&quot;bookmark&quot; title=&quot;Permanent Link to <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title_attribute<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_title<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/a&gt;&lt;/h2&gt;
		&lt;small&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_time<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'F jS, Y'</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> &lt;!-- by <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_author<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> --&gt;&lt;/small&gt;
&nbsp;
		&lt;div class=&quot;entry&quot;&gt;
			<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_content<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Read the rest of this entry &amp;raquo;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
		&lt;/div&gt;
&nbsp;
		&lt;p class=&quot;postmetadata&quot;&gt;<span style="color: #000000; font-weight: bold;">&lt;?php</span> the_tags<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Tags: '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">', '</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'&lt;br /&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> Posted in <span style="color: #000000; font-weight: bold;">&lt;?php</span> the_category<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">', '</span><span style="color: #009900;">&#41;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span> | <span style="color: #000000; font-weight: bold;">&lt;?php</span> edit_post_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Edit'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">' | '</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>  <span style="color: #000000; font-weight: bold;">&lt;?php</span> comments_popup_link<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'No Comments &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'1 Comment &amp;#187;'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'% Comments &amp;#187;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/p&gt;
	&lt;/div&gt;
&nbsp;
<span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #b1b100;">endwhile</span><span style="color: #339933;">;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>
<p>You may apply this modification to your WordPress theme&#8217;s single.php and page.php or any other template that has the <a href="http://codex.wordpress.org/The_Loop">WordPress Loop</a>.</p>
<p><strong>A WordPress Plugin Alternative: Digg &#038; Reddit Me Plugin</strong></p>
<p>If you don&#8217;t want to edit your WordPress theme files, try using the <a href="http://www.michelem.org/wordpress-plugin-digg-reddit-me/">Digg &amp; Reddit Me plugin</a>. I personally think it would be too much of a hassle to manually insert the code into each post if I were to use this plugin but it really depends on your preferences and needs for your WordPress blog.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/10/16/how-to-add-digg-buttons-to-wordpress.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress CSS</title>
		<link>http://www.maverickwebcreations.com/2008/09/10/wordpress-css.html</link>
		<comments>http://www.maverickwebcreations.com/2008/09/10/wordpress-css.html#comments</comments>
		<pubDate>Wed, 10 Sep 2008 02:56:45 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css alignment]]></category>
		<category><![CDATA[Style sheet]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress alignment]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=115</guid>
		<description><![CDATA[<p>I was wrong about the WordPress CSS stuff being hidden. I actually found the <a href="http://codex.wordpress.org/CSS">official WordPress documentation</a> on the <a href="http://www.maverickwebcreations.com/blog/wordpress-help">WordPress picture alignment</a>.</p>
<p>Apart from the code I mention, WordPress recommends adding this to your style.css too:</p>
<div class="wp_syntax">1
2
3
4
5
6
7
8
9
10
11</div><p>&#8230; <a href="http://www.maverickwebcreations.com/2008/09/10/wordpress-css.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p>I was wrong about the WordPress CSS stuff being hidden. I actually found the <a href="http://codex.wordpress.org/CSS">official WordPress documentation</a> on the <a href="http://www.maverickwebcreations.com/blog/wordpress-help">WordPress picture alignment</a>.</p>
<p>Apart from the code I mention, WordPress recommends adding this to your style.css too:</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #6666ff;">.wp-caption</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #933;">1px</span> <span style="color: #993333;">solid</span> <span style="color: #cc00cc;">#ddd</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">center</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">background-color</span><span style="color: #00AA00;">:</span> <span style="color: #cc00cc;">#f3f3f3</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding-top</span><span style="color: #00AA00;">:</span> <span style="color: #933;">4px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span>
<span style="color: #808080; font-style: italic;">/* optional rounded corners for browsers that support it */</span>
-moz-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
-khtml-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
-webkit-border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
border-radius<span style="color: #00AA00;">:</span> <span style="color: #933;">3px</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span> img <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">border</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #6666ff;">.wp-caption</span> p<span style="color: #6666ff;">.wp-caption-text</span> <span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">11px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">17px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">padding</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span> <span style="color: #933;">4px</span> <span style="color: #933;">5px</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #cc66cc;">0</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/09/10/wordpress-css.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress Picture Alignment Secrets</title>
		<link>http://www.maverickwebcreations.com/2008/08/14/wordpress-picture-alignment-secrets.html</link>
		<comments>http://www.maverickwebcreations.com/2008/08/14/wordpress-picture-alignment-secrets.html#comments</comments>
		<pubDate>Thu, 14 Aug 2008 14:51:06 +0000</pubDate>
		<dc:creator>Vincent</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[Wordpress Help]]></category>
		<category><![CDATA[Cascading Style Sheets]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[css alignment]]></category>
		<category><![CDATA[Style sheet]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[Themes]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordpress alignment]]></category>
		<guid isPermaLink="false">http://www.maverickwebcreations.com/?p=93</guid>
		<description><![CDATA[<p><a href="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853.jpg"></a>This picture is aligned to the left of my content. Usually we display pictures to the left or right and have our sentences wrap around it. Try to make your paragraphs longer or reduce the size of the picture to make it look good when wrapped around the text.<a href="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853.jpg"></a>&#8230; <a href="http://www.maverickwebcreations.com/2008/08/14/wordpress-picture-alignment-secrets.html" class="read_more">Read more...</a></p>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853.jpg"><img class="alignleft size-thumbnail wp-image-94" title="dscn7853" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853-150x150.jpg" alt="WordPress Picture Alignment Secrets" width="105" height="105" /></a>This picture is aligned to the left of my content. Usually we display pictures to the left or right and have our sentences wrap around it. Try to make your paragraphs longer or reduce the size of the picture to make it look good when wrapped around the text.<a href="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853.jpg"><img class="alignright size-thumbnail wp-image-94" title="dscn7853" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853-150x150.jpg" alt="WordPress Picture Alignment Secrets" width="150" height="150" /></a></p>
<p>If not it might mess up the layout of your post. What I am trying to do right now is typing in filler text to illustrate my point. The good thing about WordPress&#8217; built-in media upload function is that it has 3 sizes for you to choose &#8211; thumbnail, medium and full size. The picture on the left is the thumbnail-sized picture, which I further reduced in size to match the content of this post.</p>
<p>This picture is now aligned to the right of my content. The trick in aligning pictures is to have enough space to the left or right. In this case, I have enough space right above this paragraph to squeeze in a picture on the right. I used the thumbnail-sized picture and left the size untouched.</p>
<p>This picture is now aligned to the centre of the page. There isn&#8217;t any room to display text on the left or right if you choose to display your pictures in the centre. The picture below is the medium-sized picture that WordPress generated for me.</p>
<p><a href="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853.jpg"><img class="aligncenter size-medium wp-image-94" title="dscn7853" src="http://www.maverickwebcreations.com/wp-content/uploads/2008/08/dscn7853-300x225.jpg" alt="WordPress Picture Alignment Secrets" width="300" height="225" /></a></p>
<p>If you did something similar in your WordPress blog and it did not align like my pictures above, you must have forgotten to add some WordPress CSS code into your CSS style sheet. WordPress didn&#8217;t tell you that, did they?</p>
<p>Add this code to the style.css of your WordPress template to enable these WordPress alignment features in your blog:</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
</pre></td><td class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* IMAGES */</span>
img<span style="color: #6666ff;">.alignleft</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">left</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
img<span style="color: #6666ff;">.alignright</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">float</span><span style="color: #00AA00;">:</span> <span style="color: #000000; font-weight: bold;">right</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span>
&nbsp;
img<span style="color: #6666ff;">.aligncenter</span>
<span style="color: #00AA00;">&#123;</span>
<span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span>
<span style="color: #000000; font-weight: bold;">margin</span><span style="color: #00AA00;">:</span> <span style="color: #933;">0px</span> <span style="color: #993333;">auto</span> <span style="color: #933;">0px</span> <span style="color: #993333;">auto</span><span style="color: #00AA00;">;</span>
<span style="color: #00AA00;">&#125;</span></pre></td></tr></table></div>
<p>That&#8217;s it! Once you have this block of CSS code in your style sheet, you should be able to align your pictures in WordPress properly.</p>
<p><strong>The WordPress Align Center Bug?</strong></p>
<p>I find this &#8220;bug&#8221; rather interesting. Maybe it isn&#8217;t a flaw in WordPress but it was way this way. Okay, here&#8217;s the thing about this align centre feature&#8230;</p>
<p>When you try to align your picture to the centre the <strong>first time</strong>, WordPress adds some HTML code that looks like this:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;img src=&quot;http://whatever.com/picture.jpg&quot; class=&quot;aligncenter&quot; /&gt;</pre></td></tr></table></div>
<p>If you try to align your picture to the centre for the <strong>second time</strong>, WordPress adds more HTML code and it looks something like:</p>
<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
</pre></td><td class="code"><pre class="html" style="font-family:monospace;">&lt;p style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;http://whatever.com/picture.jpg&quot; class=&quot;aligncenter&quot; /&gt;&lt;/p&gt;</pre></td></tr></table></div>
<p>Notice the extra P HTML tag that is added to your HTML code. Strange isn&#8217;t? Well, if you have added the block of code above, you don&#8217;t have to worry about centre aligning 2 times just to get your picture to align to the centre of the page. It sounds silly but that was what I did before I knew what WordPress actually adds to the HTML code when you try to centre align stuff.</p>
<p>P.S. This picture is really nice &#8220;Kodak&#8221; moment of 3 of my 4 cats. The cat lying down with the back facing the front is Mini. The kitten on the left is Coco and the other kitty on the right is Moca. All my cats have names with 4 letters and I try to give them a cool and &#8220;yummy&#8221; name.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maverickwebcreations.com/2008/08/14/wordpress-picture-alignment-secrets.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
