<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr - kristarella</title>
<link>http://snipplr.com/users/kristarella</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Fri, 24 May 2013 19:38:39 GMT</pubDate>
<item>
<title>(PHP) Fix bbPress pagination</title>
<link>http://snipplr.com/view/65249/fix-bbpress-pagination/</link>
<description><![CDATA[ <p>For some reason bbPress seems to use the base domain name (rather than the current forum) as the URL to which it appends /page/2 (for example) in its pagination. This seems to fix it.</p> ]]></description>
<pubDate>Tue, 29 May 2012 19:48:28 GMT</pubDate>
<guid>http://snipplr.com/view/65249/fix-bbpress-pagination/</guid>
</item>
<item>
<title>(PHP) Widgetised home page</title>
<link>http://snipplr.com/view/49874/widgetised-home-page/</link>
<description><![CDATA[ <p>With this CSS to make the page 2 main content columns:
.custom #content .sidebar {width:48%; margin-right:2%; float:left;}</p> ]]></description>
<pubDate>Wed, 02 Mar 2011 01:04:15 GMT</pubDate>
<guid>http://snipplr.com/view/49874/widgetised-home-page/</guid>
</item>
<item>
<title>(jQuery) Prevent clicking on parent nav links</title>
<link>http://snipplr.com/view/43012/prevent-clicking-on-parent-nav-links/</link>
<description><![CDATA[ <p>This javascripts stops you from clicking on a nav link when there's a submenu below it, and it adds a class of "noclick" to the link, which you can use with CSS to change the cursor and background colour etc.
.menu a.noclick:hover {cursor:default;}

You could change the anchor tag to a span, but that requires more CSS to match the other links.</p> ]]></description>
<pubDate>Wed, 27 Oct 2010 10:18:45 GMT</pubDate>
<guid>http://snipplr.com/view/43012/prevent-clicking-on-parent-nav-links/</guid>
</item>
<item>
<title>(PHP) Fallback Thesis Thumbnail</title>
<link>http://snipplr.com/view/38972/fallback-thesis-thumbnail/</link>
<description><![CDATA[ <p>The code to call the normal Thesis Thumb is at http://snipplr.com/view/38971/thesis-thumbnail/\r\n\r\nTo test whether there is a thumbnail, and if not use another one, use this code in custom_functions.php.\r\n\r\nYou can change the class alignleft to alignright, or aligncenter and you can add the class frame to give the thumbnail a border.</p> ]]></description>
<pubDate>Thu, 12 Aug 2010 14:43:12 GMT</pubDate>
<guid>http://snipplr.com/view/38972/fallback-thesis-thumbnail/</guid>
</item>
<item>
<title>(PHP) Thesis thumbnail</title>
<link>http://snipplr.com/view/38971/thesis-thumbnail/</link>
<description><![CDATA[ <p>Needs to be used within the loop.</p> ]]></description>
<pubDate>Thu, 12 Aug 2010 14:26:55 GMT</pubDate>
<guid>http://snipplr.com/view/38971/thesis-thumbnail/</guid>
</item>
<item>
<title>(PHP) Add search bar to Thesis nav</title>
<link>http://snipplr.com/view/30098/add-search-bar-to-thesis-nav/</link>
<description><![CDATA[ <p>Add the PHP to custom_functions.php and the following CSS to custom.css

.custom ul.menu li.search {float:right;}
	.custom ul.menu li.search form {padding:0.3em;}
		.custom ul.menu li.search form input {padding:0.4em;}</p> ]]></description>
<pubDate>Sun, 21 Mar 2010 18:41:29 GMT</pubDate>
<guid>http://snipplr.com/view/30098/add-search-bar-to-thesis-nav/</guid>
</item>
<item>
<title>(PHP) Display extra posts on pages following home</title>
<link>http://snipplr.com/view/30097/display-extra-posts-on-pages-following-home/</link>
<description><![CDATA[ <p>This is designed to show 10 posts on each of the pages after the home/blog page when the home page only shows 5  (because if you just use posts_per_page=10 without the offset you will lose the most recent posts numbered 6-10 in between the first and secon home/blog paged).

You can tweak it to different numbers, but you'll need to change the maths (10 * ($page - 1) - 5) to suit.</p> ]]></description>
<pubDate>Sun, 21 Mar 2010 18:28:15 GMT</pubDate>
<guid>http://snipplr.com/view/30097/display-extra-posts-on-pages-following-home/</guid>
</item>
<item>
<title>(PHP) Reset Thesis</title>
<link>http://snipplr.com/view/17542/reset-thesis/</link>
<description><![CDATA[ <p>These lines delete the Thesis options from the database.
To use:
*insert lines in custom_functions.php
*load site once
*delete lines from custom_functions.php
*visit options pages to resave new options</p> ]]></description>
<pubDate>Mon, 27 Jul 2009 20:12:03 GMT</pubDate>
<guid>http://snipplr.com/view/17542/reset-thesis/</guid>
</item>
<item>
<title>(PHP) Exclude child categories from category archive</title>
<link>http://snipplr.com/view/16530/exclude-child-categories-from-category-archive/</link>
<description><![CDATA[ <p>Completely changed original function, which stopped working around WP2.8.</p> ]]></description>
<pubDate>Tue, 30 Jun 2009 22:29:32 GMT</pubDate>
<guid>http://snipplr.com/view/16530/exclude-child-categories-from-category-archive/</guid>
</item>
<item>
<title>(PHP) Header replacement in Thesis</title>
<link>http://snipplr.com/view/16133/header-replacement-in-thesis/</link>
<description><![CDATA[ <p>This creates a custom HTML header in Thesis with a logo and an advert section (to be used instead of CSS image replacement).

Example CSS to use with it:

.custom #header:after {content:"."; display:block; height:0; clear:both; visibility:hidden;}

.custom #header #logo {width:320px; height:90px; float:left;}

.custom #header #header_ad {width:728px; height:90px; float:right;}</p> ]]></description>
<pubDate>Fri, 19 Jun 2009 21:32:18 GMT</pubDate>
<guid>http://snipplr.com/view/16133/header-replacement-in-thesis/</guid>
</item>
<item>
<title>(PHP) Archives listing posts by category</title>
<link>http://snipplr.com/view/15223/archives-listing-posts-by-category/</link>
<description><![CDATA[ <p>This used to be code adapted from Z'Oc, but I decided to start again and write it fresh with WP_Query instead of get_posts.</p> ]]></description>
<pubDate>Thu, 21 May 2009 23:55:10 GMT</pubDate>
<guid>http://snipplr.com/view/15223/archives-listing-posts-by-category/</guid>
</item>
<item>
<title>(CSS) Restore normal button look</title>
<link>http://snipplr.com/view/14748/restore-normal-button-look/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 06 May 2009 00:22:27 GMT</pubDate>
<guid>http://snipplr.com/view/14748/restore-normal-button-look/</guid>
</item>
<item>
<title>(CSS) Sticky Footer in Thesis</title>
<link>http://snipplr.com/view/14588/sticky-footer-in-thesis/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Wed, 29 Apr 2009 22:49:34 GMT</pubDate>
<guid>http://snipplr.com/view/14588/sticky-footer-in-thesis/</guid>
</item>
<item>
<title>(PHP) Thesis custom page template with category posts</title>
<link>http://snipplr.com/view/14524/thesis-custom-page-template-with-category-posts/</link>
<description><![CDATA[ <p>This turns the about page into a featured category post page. The principles for just a regular custom page template with sidebars is there too.</p> ]]></description>
<pubDate>Tue, 28 Apr 2009 03:55:49 GMT</pubDate>
<guid>http://snipplr.com/view/14524/thesis-custom-page-template-with-category-posts/</guid>
</item>
<item>
<title>(PHP) Custom Thesis teasers</title>
<link>http://snipplr.com/view/14521/custom-thesis-teasers/</link>
<description><![CDATA[ <p>This provides a teaser, with content from a custom feild, or the excerpt if no field exists. Everything except the title and edit link need to be turned off in the options.</p> ]]></description>
<pubDate>Tue, 28 Apr 2009 02:48:21 GMT</pubDate>
<guid>http://snipplr.com/view/14521/custom-thesis-teasers/</guid>
</item>
<item>
<title>(PHP) WordPress Shortcode</title>
<link>http://snipplr.com/view/14045/wordpress-shortcode/</link>
<description><![CDATA[ <p>Use [short] in a post to insert the text from the function.</p> ]]></description>
<pubDate>Tue, 14 Apr 2009 18:34:52 GMT</pubDate>
<guid>http://snipplr.com/view/14045/wordpress-shortcode/</guid>
</item>
<item>
<title>(CSS) Rounded corners</title>
<link>http://snipplr.com/view/14007/rounded-corners/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 13 Apr 2009 20:58:54 GMT</pubDate>
<guid>http://snipplr.com/view/14007/rounded-corners/</guid>
</item>
<item>
<title>(PHP) Target specific post on home page</title>
<link>http://snipplr.com/view/13596/target-specific-post-on-home-page/</link>
<description><![CDATA[ <p>This example is adding a feature box after the first post. You can apply it to any of the hooks inside the loop.</p> ]]></description>
<pubDate>Mon, 30 Mar 2009 20:43:03 GMT</pubDate>
<guid>http://snipplr.com/view/13596/target-specific-post-on-home-page/</guid>
</item>
<item>
<title>(PHP) Filter Thesis body classes</title>
<link>http://snipplr.com/view/13530/filter-thesis-body-classes/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Sat, 28 Mar 2009 08:20:29 GMT</pubDate>
<guid>http://snipplr.com/view/13530/filter-thesis-body-classes/</guid>
</item>
<item>
<title>(PHP) Rearrange Thesis nav</title>
<link>http://snipplr.com/view/13373/rearrange-thesis-nav/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 23 Mar 2009 01:49:53 GMT</pubDate>
<guid>http://snipplr.com/view/13373/rearrange-thesis-nav/</guid>
</item>
</channel>
</rss>