Welcome To Snipplr


Everyone's Recent Snippets Tagged page



I use this every time I start a fresh, blank page. This way I can guarantee consistency across all my pages (and it reminds me to put in all the appropriate meta tags that are often forgotten).
0 64 posted 9 years ago by r2cgroup
This function allows you to pass any div anchor tag as a parameter to scroll to. You can easily add easing after the 'duration' parameter in the jQuery animation function.
8 181 posted 9 years ago by ksnagra
This snippet could be useful if you use an div based design eg. with a slider or something similar. it grabs variables from the base url splitted by "#". So you can browse to your site like "http://www.example.com/#1#2" and use the first and secon...
0 130 posted 9 years ago by disas
A LESS class which can be included to easily allow for a page-curl/shadow on element. *NOTE: Still needs work to allow for consistency at various sizes...* **Usage Instructions** * To remove reliance on javascript, setup the LESS compiler:...
6 89 posted 9 years ago by bdiddymc
This works cross browser. Merely using onclick on a submit button to show a preloader/ please wait dialog doesn't work in IE since it doesn't show images once the page is being unloaded.
1 80 posted 9 years ago by housecor
With this line of code you can control places where you want your pages to break when printing a document.
0 66 posted 9 years ago by blueocto
0 68 posted 9 years ago by AaronFenwick
Only this portion needed // Add page template suggestions based on node type, if we aren't editing the node. if ($vars['node'] && arg(2) != 'edit') { $vars['template_files'][] = 'page-nodetype-'. $vars['node']->type;...
1 71 posted 9 years ago by resting
0 81 posted 9 years ago by jli
0 60 posted 9 years ago by jli
Easy "back to top" scroll link
1 75 posted 9 years ago by benwellby
Quick plugin to paginate a liste.
0 52 posted 9 years ago by Moonsheeld
4 110 posted 9 years ago by sb_01
This function build page navigation links.\r\nParameters legend:\r\n- $items = total number of rows to be paginated\r\n- $perpage = how many rows to be displayed on a page\r\n- $maxlinks - how much page links to be build and shown for navigation ( <...
0 59 posted 9 years ago by stz184
Appends a custom more-link to all excerpts, regardless of whether they're auto-generated or pulling manual excerpts from the excerpt field. Note: Automatic excerpts still show the default […] at the end (before the more-link). Found here: http:/...
1 64 posted 9 years ago by hussong
1 71 posted 9 years ago by bobbym245
Adds support for excerpts in WordPress pages. Great for using WordPress as a CMS. A text field appears in the admin panel and you can pull the excerpt from your template files (for teaser texts etc.)
0 56 posted 9 years ago by hussong
Returns the page object of the parent of the current page.
0 90 posted 9 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 106 posted 9 years ago by levinet
0 49 posted 10 years ago by K2Joom
This will force a page break where this class appears.
0 64 posted 10 years ago by bradless
Variables not dependant on the loop, can be used as GET params
0 104 posted 10 years ago by LuckyShot