kristarella


Member since 10/12/2008

Location: Sydney, Australia

Website: http://www.kristarella.com

29 snippets

328 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

kristarella's Recent Snippets



« Prev 1 Next »
With this CSS to make the page 2 main content columns: .custom #content .sidebar {width:48%; margin-right:2%; float:left;}
1 62 posted 9 years ago by kristarella
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;}...
2 54 posted 9 years ago by kristarella
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 t...
0 53 posted 9 years ago by kristarella
Needs to be used within the loop.
0 44 posted 9 years ago by kristarella
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;}
0 89 posted 10 years ago by kristarella
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...
0 71 posted 10 years ago by kristarella
Completely changed original function, which stopped working around WP2.8.
1 73 posted 11 years ago by kristarella
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;...
5 93 posted 11 years ago by kristarella
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.
3 89 posted 11 years ago by kristarella
2 62 posted 11 years ago by kristarella
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.
3 209 posted 11 years ago by kristarella
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.
3 74 posted 11 years ago by kristarella
Use [short] in a post to insert the text from the function.
2 68 posted 11 years ago by kristarella
This example is adding a feature box after the first post. You can apply it to any of the hooks inside the loop.
2 75 posted 11 years ago by kristarella
6 85 posted 11 years ago by kristarella
4 75 posted 11 years ago by kristarella
This example adds tags and categories to the Thesis byline, each on a new line, and with the needed classes to match the other byline items. The byline is generated in thesis/lib/functions/content_functions.php (v1.4.2 at the time of writing) look...
5 69 posted 11 years ago by kristarella
This is a bit of jQuery within a PHP function that you can dump into your Thesis custom_functions.php file to hide comments upon page load and add a link to show them.
2 77 posted 11 years ago by kristarella
An example of how to write your own navigation with dynamic "active" classes.
3 115 posted 11 years ago by kristarella
Use with (in custom.css) .sidebar_box {margin-bottom:2em; text-align:center;} You may have to adjust the width for your sidebars.
2 83 posted 11 years ago by kristarella
The function content should work in any theme, it's just wrapped in a function wrapper for insertion into the Thesis theme.
2 83 posted 11 years ago by kristarella
This CSS is nice to use with this function: .custom .avatar {float:left; border:3px solid #ddd; margin-right:1em;}
2 70 posted 11 years ago by kristarella
You will probably have to hide the medium sized image.
2 77 posted 11 years ago by kristarella
3 79 posted 11 years ago by kristarella
This shows how to add content (in this case a linked image) to the end of a post using WordPress custom fields and the Thesis theme.
6 120 posted 11 years ago by kristarella
Thanks to LenK on the WP forums.
3 101 posted 11 years ago by kristarella
« Prev 1 Next »