kristarella


Member since 10/12/2008

Location: Sydney, Australia

Website: http://www.kristarella.com

26 snippets

2609 profile views

0 Comment(s) Posted

View their favorites

Profile

Achievement

first submission:submitting first snipplet

kristarella's Recent SnippetsTagged wordpress



« 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 503 posted 13 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 474 posted 13 years ago by kristarella
Needs to be used within the loop.
0 477 posted 13 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 678 posted 14 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 490 posted 14 years ago by kristarella
Completely changed original function, which stopped working around WP2.8.
1 594 posted 14 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 722 posted 14 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 609 posted 14 years ago by kristarella
2 553 posted 14 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 1153 posted 14 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 623 posted 14 years ago by kristarella
Use [short] in a post to insert the text from the function.
2 597 posted 15 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 579 posted 15 years ago by kristarella
6 695 posted 15 years ago by kristarella
4 558 posted 15 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 643 posted 15 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 753 posted 15 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 730 posted 15 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 636 posted 15 years ago by kristarella
You will probably have to hide the medium sized image.
2 693 posted 15 years ago by kristarella
3 645 posted 15 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 772 posted 15 years ago by kristarella
Thanks to LenK on the WP forums.
3 616 posted 15 years ago by kristarella
« Prev 1 Next »