<?xml version="1.0" encoding="iso-8859-1"?>
<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>CrankBerry Blog &#187; WordPress</title>
	<atom:link href="http://www.crankberryblog.com/category/wordpress/feed" rel="self" type="application/rss+xml" />
	<link>http://www.crankberryblog.com</link>
	<description>Sharing ideas on web design, development and the internet economy</description>
	<lastBuildDate>Thu, 22 Apr 2010 21:46:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Updating to WordPress 2.8.5 &#8211; Just do it!</title>
		<link>http://www.crankberryblog.com/2009/updating-to-wordpress-2-8-5-just-do-it</link>
		<comments>http://www.crankberryblog.com/2009/updating-to-wordpress-2-8-5-just-do-it#comments</comments>
		<pubDate>Wed, 21 Oct 2009 18:08:23 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=249</guid>
		<description><![CDATA[This morning when I logged into my WordPress I noticed the notification to update to version 2.8.5. I was hesitant as it might change up some of the work and modifications to the version I'm currently using (2.8.4). It turns out it was a small update from 2.8.4 but an essential one. For those of you who are using anything older I strongly urge you to prioritize and update as there has been many major security updates since.]]></description>
			<content:encoded><![CDATA[<p>This morning when I logged into my WordPress I noticed the notification to update to version 2.8.5. I was hesitant as it might change up some of the work and modifications to the version I&#039;m currently using (2.8.4). It turns out it was a small update from 2.8.4 but an essential one. For those of you who are using anything older I strongly urge you to prioritize and update as there has been many major security updates since.</p>
<p>As said there&#039;s not really many updates to the previous version and if it weren&#039;t for the security issues I wouldn&#039;t have updated at all. Owning a store front or website the number priority is security. If that&#039;s not the case for you, make it so! From WordPress themselves here&#039;s the actual list of updates:</p>
<ul>
<li>A fix for the Trackback Denial-of-Service attack that is currently being seen.</li>
<li>Removal of areas within the code where php code in variables was evaluated.</li>
<li>Switched the file upload functionality to be whitelisted for all users including Admins.</li>
<li>Retiring of the two importers of Tag data from old plugins.</li>
</ul>
<h3>Preparations to Updating</h3>
<p>Here&#039;s what I did in preparation to updating, as I am very careful all the times not to lose any previous work for no reason.</p>
<ol>
<li>Backup SQL database where WordPress is located</li>
<li>Re-download the whole WordPress folder from server</li>
<li>ZIP up the updated local copy of my blog files</li>
<li>Commence upgrade</li>
</ol>
<h3>Updating from WordPress 2.8.4</h3>
<p>If you already have WordPress 2.8.4 I recommend not doing the full-from-scratch upgrade as its much easy to update the modified files only. Go the following blog and download the <a href="http://lesterchan.net/wordpress/2009/10/21/wordpress-2-8-5/" target="_blank">modified files since WordPress 2.8.4</a>. Unzip and just drag everything into your WordPress root folder. You&#039;ll notice there&#039;s not updates to the wp-content folder so there&#039;s not changes to your themes and templates. Once you&#039;re done uploading, login and you&#039;ll notice that you&#039;re done upgrading.</p>
<p>If you used my method to <a href="http://www.crankberryblog.com/2009/removing-bullets-from-wordpress-default-theme-menu">remove bullets from WordPress theme menu</a>. You&#039;ll need to redo one or two steps.</p>
<h3>Updating from Other Versions</h3>
<p>If you&#039;re running from any other version I urge you again to upgrade ASAP because of the security flaws in the previous versions. If you have your FTP connection credentials available I suggest you use the WordPress automatic upgrade feature. It&#039;ll prompt you for the login and then automatically upgrade everything.</p>
<p>If you don&#039;t have the FTP login available just go to WordPress.org and download the 2.8.5 pack and upload it to your directory. Then run the upgrade at http://www.yourdomain.com/wp-admin/upgrade.php.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/updating-to-wordpress-2-8-5-just-do-it/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Having WordPress menu elements on non-WordPress pages</title>
		<link>http://www.crankberryblog.com/2009/having-wordpress-menu-elements-on-non-wordpress-pages</link>
		<comments>http://www.crankberryblog.com/2009/having-wordpress-menu-elements-on-non-wordpress-pages#comments</comments>
		<pubDate>Thu, 08 Oct 2009 20:02:59 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=191</guid>
		<description><![CDATA[So you have a WordPress blog but you're also creating pages not through WordPress. You're thinking about how to incorporate your categories menu, archive menu and other elements into the other pages you're making. Well it is very simple and I'll show you exactly how.]]></description>
			<content:encoded><![CDATA[<p>So you have a WordPress blog but you&#039;re also creating pages not through WordPress. You&#039;re thinking about how to incorporate your categories menu, archive menu and other elements into the other pages you&#039;re making. Well it is very simple and I&#039;ll show you exactly how.</p>
<p><strong>Requirements</strong></p>
<ul>
<li>Pages must be in PHP</li>
<li>Pages must be on the same server</li>
</ul>
<p>If you&#039;ve met the requirements then you are half way there. Next thing you need to do is open up the file in which you would like to incorporate the elements in. At the top you just need to add the these two codes:</p>
<div class="dean_ch" style="white-space: wrap;"><a href="http://www.php.net/define"><span class="kw3">define</span></a><span class="br0">&#40;</span><span class="st0">&#039;WP_USE_THEMES&#039;</span>, <span class="kw2">false</span><span class="br0">&#41;</span>;</p>
<p><span class="kw1">require</span><span class="br0">&#40;</span><span class="st0">&#039;wp-blog-header.php&#039;</span><span class="br0">&#41;</span>;</div>
<p>Now the second line: require(&#039;wp-blog-header.php&#039;); you&#039;ll have to have the actual path to the file. The file <strong>wp-blog-header.php</strong> is located in the root WordPress folder, so guide your file to the right path.</p>
<p><strong>Calling the Elements</strong></p>
<p>Now you can call the elements on the page by throwing the following code in your page:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> wp_register<span class="br0">&#40;</span><span class="st0">&#034;</span> , <span class="st0">&#034;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span> <span class="co1">//Registration</span><br />
<span class="kw2">&lt;?php</span> wp_loginout<span class="br0">&#40;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span> <span class="co1">//Logout</span><br />
<span class="kw2">&lt;?php</span> wp_get_archives<span class="br0">&#40;</span><span class="st0">&#039;type=monthly&amp;format=none&#039;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span> <span class="co1">//Archives</span><br />
<span class="kw2">&lt;?php</span> wp_list_categories<span class="br0">&#40;</span><span class="st0">&#039;style=none&amp;show_count=1&amp;title_li=&lt;h2&gt;Categories&lt;/h2&gt;&#039;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span> <span class="co1">//Categories</span></div>
<p>There you have it, now you can add all the menu elements on non-WordPress pages.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/having-wordpress-menu-elements-on-non-wordpress-pages/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to left align text in WordPress post</title>
		<link>http://www.crankberryblog.com/2009/how-to-left-align-text-in-wordpress-post</link>
		<comments>http://www.crankberryblog.com/2009/how-to-left-align-text-in-wordpress-post#comments</comments>
		<pubDate>Mon, 21 Sep 2009 21:02:29 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.crankberryblog.com/?p=87</guid>
		<description><![CDATA[Here I am working in WordPress and posting articles and little did I know articles were being posted justified aligned. This would make sense as blogs tend to have the newspaper/article written feel (sometimes). I did not like this at all as since grade 7 I started liking my writing to be left aligned. So if you're reading this you may have already noticed that the posting is in a left align format. I'll Show you how.]]></description>
			<content:encoded><![CDATA[<p>Here I am working in WordPress and posting articles and little did I know articles were being posted justified aligned. This would make sense as blogs tend to have the newspaper/article written feel (sometimes). I did not like this at all as since grade 7 I started liking my writing to be left aligned. So if you&#039;re reading this you may have already noticed that the posting is in a left align format. I&#039;ll Show you how.</p>
<p>In WordPress the headings and the entry has a mind of its own so you&#039;ll have to modify multiple codes to achieve what you may be looking for. First of all open up your style.css. New to programming? New to WordPress? New to the Internet? Thats ok, the style.css file is located in wp-content/themes/default/styles.css. If you aren&#039;t using the default theme then go into the folder that has your theme. In this case though I&#039;m not sure if the theme comes with a different CSS style. So heads up, I&#039;m actually working in the default Kubrick theme here.</p>
<p>Search for the following:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re1">.widecolumn</span> <span class="re1">.entry</span> p <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">font-size</span>: <span class="nu0">1</span><span class="re1"><span class="re3">.05em</span></span>;<br />
<span class="br0">&#125;</span></div>
<p>Simply just add text-align: left; inside. In my case I&#039;ve added some margin as well so mine looks like:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re1">.widecolumn</span> <span class="re1">.entry</span> p <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">font-size</span>: <span class="nu0">1</span><span class="re1"><span class="re3">.05em</span></span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">margin-bottom</span>: <span class="re3">10px</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">text-align</span>: <span class="kw1">left</span>;<br />
<span class="br0">&#125;</span></div>
<p>For the headings you&#039;ll have to add that in here:</p>
<div class="dean_ch" style="white-space: wrap;">h1, h2, h3 <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">font-family</span>: <span class="st0">&#039;Trebuchet MS&#039;</span>, <span class="st0">&#039;Lucida Grande&#039;</span>, Verdana, Arial, Sans-Serif;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">font-weight</span>: <span class="kw2">bold</span>;<br />
<span class="br0">&#125;</span></div>
<p>Just add the same text-align: left; anywhere inside the squiggly bracket things.</p>
<div class="dean_ch" style="white-space: wrap;">h1, h2, h3 <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">font-family</span>: <span class="st0">&#039;Trebuchet MS&#039;</span>, <span class="st0">&#039;Lucida Grande&#039;</span>, Verdana, Arial, Sans-Serif;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">font-weight</span>: <span class="kw2">bold</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">text-align</span>: <span class="kw1">left</span>;<br />
<span class="br0">&#125;</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/how-to-left-align-text-in-wordpress-post/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Removing bullets from WordPress default theme menu</title>
		<link>http://www.crankberryblog.com/2009/removing-bullets-from-wordpress-default-theme-menu</link>
		<comments>http://www.crankberryblog.com/2009/removing-bullets-from-wordpress-default-theme-menu#comments</comments>
		<pubDate>Mon, 21 Sep 2009 20:42:56 +0000</pubDate>
		<dc:creator>Jerry Low</dc:creator>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://localhost/ctest/?p=17</guid>
		<description><![CDATA[As I was setting up this blog I was disgusted by the bullets that were implemented to the menu on the right (they call it side bar). I thought to myself, no biggie, I'll just remove it when skinning/theming this thing. As I have built many themes for different forums in the past I believe this wouldn't be such a hard task. After some searching I have found <a title="Removing the WordPress sidebar bullets " href="http://www.lancelhoff.com/removing-the-wordpress-sidebar-bullets/" target="_blank">this article</a>, but by editing the CSS it did not work for me. So here I'm sharing a method to <em>hard code</em> out the bullets in the side bar of the default WordPress theme Kubrick.]]></description>
			<content:encoded><![CDATA[<p>As I was setting up this blog I was disgusted by the bullets that were implemented to the menu on the right (they call it side bar). I thought to myself, no biggie, I&#039;ll just remove it when skinning/theming this thing. As I have built many themes for different forums in the past I believe this wouldn&#039;t be such a hard task. After some searching I have found <a title="Removing the WordPress sidebar bullets " href="http://www.lancelhoff.com/removing-the-wordpress-sidebar-bullets/" target="_blank">this article</a>, but by editing the CSS it did not work for me. So here I&#039;m sharing a method to <em>hard code</em> out the bullets in the side bar of the default WordPress theme Kubrick.</p>
<p>Now this method is not recommended for those who are not comfortable or disturbed by the thought of &#034;editing code&#034;. Its really not all that complicated but if you&#039;re really not comfortable stop reading now and quit while you&#039;re ahead, I&#039;m sure there&#039;s other people out there ready to help.</p>
<p><strong>What will you get from this?</strong></p>
<p>In the end you should be able to successfully remove the bullets in the Pages, Archives, Categories, and Bookmarks inner section. These are what I&#039;ve named them, yours could vary. I&#039;m calling it the inner section because I didn&#039;t talk about how to remove the bullets in the title here, at this point I haven&#039;t gone through everything so I&#039;ll update every one when it happens.</p>
<p>So, with that said lets get started. Here is a list of files that we&#039;ll be editing so I recommend you make a backup prior to beginning just in case something goes wrong.</p>
<ul>
<li>wp-includes/classes.php</li>
<li>wp-content/themes/default/sidebar.php</li>
<li>wp-includes/bookmark-template.php</li>
</ul>
<p>Got that? Backed it up? Good! We&#039;ll start from the top, so the first bullets we&#039;ll remove is the Pages section. These are links to pages that you can create outside of your blog postings.</p>
<h3>Removing Bullets from the Pages Section</h3>
<p>Open wp-includes/classes.php, if your editor has a find function use it now. Find the line class Walker_Page. This is the class that we need to work in.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">function</span> start_lvl<span class="br0">&#40;</span>&amp;<span class="re0">$output</span>, <span class="re0">$depth</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$indent</span> = <a href="http://www.php.net/str_repeat"><span class="kw3">str_repeat</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es0">\t</span>&quot;</span>, <span class="re0">$depth</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <span class="st0">&quot;<span class="es0">\n</span>$indent&lt;ul&gt;<span class="es0">\n</span>&quot;</span>;<br />
<span class="br0">&#125;</span></div>
<p>In line 3 you can find the &lt;ul&gt;  we need to remove. So remove it. Now the we removed the opening tag we have to remove the closing tag. Scroll down a little bit and the closing tag is on line 3 of:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">function</span> end_lvl<span class="br0">&#40;</span>&amp;<span class="re0">$output</span>, <span class="re0">$depth</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$indent</span> = <a href="http://www.php.net/str_repeat"><span class="kw3">str_repeat</span></a><span class="br0">&#40;</span><span class="st0">&quot;<span class="es0">\t</span>&quot;</span>, <span class="re0">$depth</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <span class="st0">&quot;$indent&lt;/ul&gt;<span class="es0">\n</span>&quot;</span>;<br />
<span class="br0">&#125;</span></div>
<p>Ok, now stay where you are. Scroll down a little more and you&#039;ll come across the function start_el. Within the function look for a line that looks or is exactly like:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re0">$output</span> .= <span class="re0">$indent</span> . <span class="st0">&#039;&lt;li class=&quot;&#039;</span> . <span class="re0">$css_class</span> . <span class="st0">&#039;&quot;&gt;&lt;a href=&quot;&#039;</span> . get_page_link<span class="br0">&#40;</span><span class="re0">$page</span>-&gt;<span class="me1">ID</span><span class="br0">&#41;</span> . <span class="st0">&#039;&quot; title=&quot;&#039;</span> . esc_attr<span class="br0">&#40;</span>apply_filters<span class="br0">&#40;</span><span class="st0">&#039;the_title&#039;</span>, <span class="re0">$page</span>-&gt;<span class="me1">post_title</span><span class="br0">&#41;</span><span class="br0">&#41;</span> . <span class="st0">&#039;&quot;&gt;&#039;</span> . <span class="re0">$link_before</span> . apply_filters<span class="br0">&#40;</span><span class="st0">&#039;the_title&#039;</span>, <span class="re0">$page</span>-&gt;<span class="me1">post_title</span><span class="br0">&#41;</span> . <span class="re0">$link_after</span> . <span class="st0">&#039;&lt;/a&gt;&#039;</span>;</div>
<p>In this code here you&#039;ll have to remove the following code. Note: Don&#039;t remove the &#039; in the beginning.</p>
<div class="dean_ch" style="white-space: wrap;">&lt;li class=&quot;&#039; . $css_class . &#039;&quot;&gt;</div>
<p>What we just did was remove the opening &lt;li&gt; lets find and remove the closing one. Take a guess at where it is, you&#039;re right! Scroll down a little more and you&#039;ll find the missing piece of the puzzle. Within the func end_el you&#039;ll notice the &lt;/li&gt; in line two.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">function</span> end_el<span class="br0">&#40;</span>&amp;<span class="re0">$output</span>, <span class="re0">$page</span>, <span class="re0">$depth</span><span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <span class="st0">&quot;&lt;/li&gt;<span class="es0">\n</span>&quot;</span>;<br />
<span class="br0">&#125;</span></div>
<p>Instead of just removing this one, replace it with &lt;br /&gt;. This will add a line break between page listing.</p>
<h3>Removing Bullets from the Category Section</h3>
<p>At this point you should have already removed the bullets for the page section. Has it happened? If not you should spend some time in the first part of the article first. Next we will work on the category section, so in the same file find:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> wp_list_categories<span class="br0">&#40;</span><span class="st0">&#039;show_count=1&amp;title_li=&lt;h2&gt;Categories&lt;/h2&gt;&#039;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span></div>
<p>and change that to</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> wp_list_categories<span class="br0">&#40;</span><span class="st0">&#039;style=none&amp;show_count=1&amp;title_li=&lt;h2&gt;Categories&lt;/h2&gt;&#039;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span></div>
<p>Basically what we have done is passed on the argument that the style is none (default is list).</p>
<h3>Removing Bullets from the Archive Section</h3>
<p>If you&#039;ve gotten this far, congratulations you have successfully removed the bullets in the categories section. If you have already guessed it by now yes the next step is pretty much the same but in this case they named it something else. To remove the bullets from the archive list find (also in sidebar.php):</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> wp_get_archives<span class="br0">&#40;</span><span class="st0">&#039;type=monthly&#039;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span></div>
<p>and change it to:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> wp_get_archives<span class="br0">&#40;</span><span class="st0">&#039;type=monthly&amp;format=none&#039;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span></div>
<p>Basically they changed the argument from style to format.</p>
<h3>Removing Bullets from the Links Section</h3>
<p>Now you&#039;re only left with removing the bullets in the links section also known as the bookmark section. This one was hard to pass the argument, maybe somebody could suggest a way, but here&#039;s what I did. Open up wp-includes/bookmark-template.php. Find function wp_list_bookmarks. We&#039;ll remove the &lt;li&gt;&lt;&#47li&gt; tags first since it comes up first. The first thing that comes up in the function is an array.</p>
<div class="dean_ch" style="white-space: wrap;">&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$defaults</span> = <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;orderby&#039;</span> =&gt; <span class="st0">&#039;name&#039;</span>, <span class="st0">&#039;order&#039;</span> =&gt; <span class="st0">&#039;ASC&#039;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;limit&#039;</span> =&gt; <span class="nu0">-1</span>, <span class="st0">&#039;category&#039;</span> =&gt; <span class="st0">&#034;</span>, <span class="st0">&#039;exclude_category&#039;</span> =&gt; <span class="st0">&#034;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;category_name&#039;</span> =&gt; <span class="st0">&#034;</span>, <span class="st0">&#039;hide_invisible&#039;</span> =&gt; <span class="nu0">1</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;show_updated&#039;</span> =&gt; <span class="nu0">0</span>, <span class="st0">&#039;echo&#039;</span> =&gt; <span class="nu0">1</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;categorize&#039;</span> =&gt; <span class="nu0">1</span>, <span class="st0">&#039;title_li&#039;</span> =&gt; __<span class="br0">&#40;</span><span class="st0">&#039;Bookmarks&#039;</span><span class="br0">&#41;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;title_before&#039;</span> =&gt; <span class="st0">&#039;&lt;h2&gt;&#039;</span>, <span class="st0">&#039;title_after&#039;</span> =&gt; <span class="st0">&#039;&lt;/h2&gt;&#039;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;category_orderby&#039;</span> =&gt; <span class="st0">&#039;name&#039;</span>, <span class="st0">&#039;category_order&#039;</span> =&gt; <span class="st0">&#039;ASC&#039;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;class&#039;</span> =&gt; <span class="st0">&#039;linkcat&#039;</span>, <span class="st0">&#039;category_before&#039;</span> =&gt; <span class="st0">&#039;&lt;li id=&quot;%id&quot; class=&quot;%class&quot;&gt;&#039;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;category_after&#039;</span> =&gt; <span class="st0">&#039;&lt;/li&gt;&#039;</span><br />
<span class="br0">&#41;</span>;</div>
<p>The last two lines you&#039;ll see category_before => and category_after =>. Clear everything inside of the single quotes that they are pointing to. So you should be left with &#039;category_before&#039; => &#034; and &#039;category_after&#039; => &#034;. Go down a bit further and you&#039;ll find this piece of code:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span> <span class="re0">$categorize</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="co1">//Split the bookmarks into ul&#039;s for each category</span><br />
&nbsp; &nbsp; <span class="re0">$cats</span> = get_terms<span class="br0">&#40;</span><span class="st0">&#039;link_category&#039;</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;name__like&#039;</span> =&gt; <span class="re0">$category_name</span>, <span class="st0">&#039;include&#039;</span> =&gt; <span class="re0">$category</span>, <span class="st0">&#039;exclude&#039;</span> =&gt; <span class="re0">$exclude_category</span>, <span class="st0">&#039;orderby&#039;</span> =&gt; <span class="re0">$category_orderby</span>, <span class="st0">&#039;order&#039;</span> =&gt; <span class="re0">$category_order</span>, <span class="st0">&#039;hierarchical&#039;</span> =&gt; <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</p>
<p>&nbsp; &nbsp; <span class="kw1">foreach</span> <span class="br0">&#40;</span> <span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#41;</span> <span class="re0">$cats</span> <span class="kw1">as</span> <span class="re0">$cat</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$params</span> = <a href="http://www.php.net/array_merge"><span class="kw3">array_merge</span></a><span class="br0">&#40;</span><span class="re0">$r</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;category&#039;</span>=&gt;<span class="re0">$cat</span>-&gt;<span class="me1">term_id</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$bookmarks</span> = get_bookmarks<span class="br0">&#40;</span><span class="re0">$params</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> <a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$bookmarks</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">continue</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <a href="http://www.php.net/str_replace"><span class="kw3">str_replace</span></a><span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;%id&#039;</span>, <span class="st0">&#039;%class&#039;</span><span class="br0">&#41;</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&quot;linkcat-$cat-&gt;term_id&quot;</span>, <span class="re0">$class</span><span class="br0">&#41;</span>, <span class="re0">$category_before</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$catname</span> = apply_filters<span class="br0">&#40;</span> <span class="st0">&quot;link_category&quot;</span>, <span class="re0">$cat</span>-&gt;<span class="me1">name</span> <span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <span class="st0">&quot;$title_before$catname$title_after<span class="es0">\n</span><span class="es0">\t</span>&lt;ul class=&#039;xoxo blogroll&#039;&gt;<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= _walk_bookmarks<span class="br0">&#40;</span><span class="re0">$bookmarks</span>, <span class="re0">$r</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <span class="st0">&quot;<span class="es0">\n</span><span class="es0">\t</span>&lt;/ul&gt;<span class="es0">\n</span>$category_after<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="co1">//output one single list using title_li for the title</span><br />
&nbsp; &nbsp; <span class="re0">$bookmarks</span> = get_bookmarks<span class="br0">&#40;</span><span class="re0">$r</span><span class="br0">&#41;</span>;</p>
<p>&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> !<a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$bookmarks</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> !<a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span> <span class="re0">$title_li</span> <span class="br0">&#41;</span> <span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <a href="http://www.php.net/str_replace"><span class="kw3">str_replace</span></a><span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;%id&#039;</span>, <span class="st0">&#039;%class&#039;</span><span class="br0">&#41;</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&quot;linkcat-$category&quot;</span>, <span class="re0">$class</span><span class="br0">&#41;</span>, <span class="re0">$category_before</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <span class="st0">&quot;$title_before$title_li$title_after<span class="es0">\n</span><span class="es0">\t</span>&lt;ul class=&#039;xoxo blogroll&#039;&gt;<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= _walk_bookmarks<span class="br0">&#40;</span><span class="re0">$bookmarks</span>, <span class="re0">$r</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <span class="st0">&quot;<span class="es0">\n</span><span class="es0">\t</span>&lt;/ul&gt;<span class="es0">\n</span>$category_after<span class="es0">\n</span>&quot;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= _walk_bookmarks<span class="br0">&#40;</span><span class="re0">$bookmarks</span>, <span class="re0">$r</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
<p>Do not be scared of its ginormous size. You can either go through and remove the two pairs of &lt;ul&gt;&lt;&#47ul&gt; or just comment them out. As I said they occur twice for different situations. Commenting it out will make it look like so:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw1">if</span> <span class="br0">&#40;</span> <span class="re0">$categorize</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="co1">//Split the bookmarks into ul&#039;s for each category</span><br />
&nbsp; &nbsp; <span class="re0">$cats</span> = get_terms<span class="br0">&#40;</span><span class="st0">&#039;link_category&#039;</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;name__like&#039;</span> =&gt; <span class="re0">$category_name</span>, <span class="st0">&#039;include&#039;</span> =&gt; <span class="re0">$category</span>, <span class="st0">&#039;exclude&#039;</span> =&gt; <span class="re0">$exclude_category</span>, <span class="st0">&#039;orderby&#039;</span> =&gt; <span class="re0">$category_orderby</span>, <span class="st0">&#039;order&#039;</span> =&gt; <span class="re0">$category_order</span>, <span class="st0">&#039;hierarchical&#039;</span> =&gt; <span class="nu0">0</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;</p>
<p>&nbsp; &nbsp; <span class="kw1">foreach</span> <span class="br0">&#40;</span> <span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#41;</span> <span class="re0">$cats</span> <span class="kw1">as</span> <span class="re0">$cat</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$params</span> = <a href="http://www.php.net/array_merge"><span class="kw3">array_merge</span></a><span class="br0">&#40;</span><span class="re0">$r</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;category&#039;</span>=&gt;<span class="re0">$cat</span>-&gt;<span class="me1">term_id</span><span class="br0">&#41;</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$bookmarks</span> = get_bookmarks<span class="br0">&#40;</span><span class="re0">$params</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> <a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$bookmarks</span><span class="br0">&#41;</span> <span class="br0">&#41;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">continue</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <a href="http://www.php.net/str_replace"><span class="kw3">str_replace</span></a><span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;%id&#039;</span>, <span class="st0">&#039;%class&#039;</span><span class="br0">&#41;</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&quot;linkcat-$cat-&gt;term_id&quot;</span>, <span class="re0">$class</span><span class="br0">&#41;</span>, <span class="re0">$category_before</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$catname</span> = apply_filters<span class="br0">&#40;</span> <span class="st0">&quot;link_category&quot;</span>, <span class="re0">$cat</span>-&gt;<span class="me1">name</span> <span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//$output .= &quot;$title_before$catname$title_after\n\t&lt;ul class=&#039;xoxo blogroll&#039;&gt;\n&quot;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= _walk_bookmarks<span class="br0">&#40;</span><span class="re0">$bookmarks</span>, <span class="re0">$r</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//$output .= &quot;\n\t&lt;/ul&gt;\n$category_after\n&quot;;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; <span class="co1">//output one single list using title_li for the title</span><br />
&nbsp; &nbsp; <span class="re0">$bookmarks</span> = get_bookmarks<span class="br0">&#40;</span><span class="re0">$r</span><span class="br0">&#41;</span>;</p>
<p>&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> !<a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span><span class="re0">$bookmarks</span><span class="br0">&#41;</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span> !<a href="http://www.php.net/empty"><span class="kw3">empty</span></a><span class="br0">&#40;</span> <span class="re0">$title_li</span> <span class="br0">&#41;</span> <span class="br0">&#41;</span><span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= <a href="http://www.php.net/str_replace"><span class="kw3">str_replace</span></a><span class="br0">&#40;</span><a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&#039;%id&#039;</span>, <span class="st0">&#039;%class&#039;</span><span class="br0">&#41;</span>, <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><span class="st0">&quot;linkcat-$category&quot;</span>, <span class="re0">$class</span><span class="br0">&#41;</span>, <span class="re0">$category_before</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//$output .= &quot;$title_before$title_li$title_after\n\t&lt;ul class=&#039;xoxo blogroll&#039;&gt;\n&quot;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= _walk_bookmarks<span class="br0">&#40;</span><span class="re0">$bookmarks</span>, <span class="re0">$r</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//$output .= &quot;\n\t&lt;/ul&gt;\n$category_after\n&quot;;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span> <span class="kw1">else</span> <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span class="re0">$output</span> .= _walk_bookmarks<span class="br0">&#40;</span><span class="re0">$bookmarks</span>, <span class="re0">$r</span><span class="br0">&#41;</span>;<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="br0">&#125;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span><br />
<span class="br0">&#125;</span></div>
<p>Scroll up a bit in the same file and you&#039;ll find the last piece of the puzzle. Just edit the code in function _walk_bookmarks().</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">function</span> _walk_bookmarks<span class="br0">&#40;</span><span class="re0">$bookmarks</span>, <span class="re0">$args</span> = <span class="st0">&#034;</span> <span class="br0">&#41;</span> <span class="br0">&#123;</span><br />
<span class="re0">$defaults</span> = <a href="http://www.php.net/array"><span class="kw3">array</span></a><span class="br0">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;show_updated&#039;</span> =&gt; <span class="nu0">0</span>, <span class="st0">&#039;show_description&#039;</span> =&gt; <span class="nu0">0</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;show_images&#039;</span> =&gt; <span class="nu0">1</span>, <span class="st0">&#039;show_name&#039;</span> =&gt; <span class="nu0">0</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;before&#039;</span> =&gt; <span class="st0">&#039;&lt;li&gt;&#039;</span>, <span class="st0">&#039;after&#039;</span> =&gt; <span class="st0">&#039;&lt;/li&gt;&#039;</span>, <span class="st0">&#039;between&#039;</span> =&gt; <span class="st0">&quot;<span class="es0">\n</span>&quot;</span>,<br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="st0">&#039;show_rating&#039;</span> =&gt; <span class="nu0">0</span>, <span class="st0">&#039;link_before&#039;</span> =&gt; <span class="st0">&#034;</span>, <span class="st0">&#039;link_after&#039;</span> =&gt; <span class="st0">&#034;</span><br />
<span class="br0">&#41;</span>;</div>
<p>Change the &lt;li&gt;&lt;&#47li&gt; to &#034; or for me I changed the &#039;after&#039; =&gt; &#034; to &#039;after&#039; =&gt; &#039;&lt;BR /&gt;&#039;. Just to have the space in there.</p>
<p>And there you have it you have successfully hard coded the bullets out. If you ever want them back just replace all of your files with the backed up ones. Once again I just want to remind you that I&#039;ve only used this method because the modifying the styles didn&#039;t work for me. Do whatever is easiest and works.</p>
<h3>Bonus: Removing Bullets from the Register Panel</h3>
<p>As a bonus feature I&#039;ll throw in &#034;how to remove bullets from the register panel&#034; for free. Its very simple, in your sidebar.php file find:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> wp_register<span class="br0">&#40;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span></div>
<p>Just put into the brackets &#034;,&#034; like so:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">&lt;?php</span> wp_register<span class="br0">&#40;</span><span class="st0">&#034;</span> ,<span class="st0">&#034;</span><span class="br0">&#41;</span>; <span class="kw2">?&gt;</span></div>
]]></content:encoded>
			<wfw:commentRss>http://www.crankberryblog.com/2009/removing-bullets-from-wordpress-default-theme-menu/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
