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 385 posted 11 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 801 posted 11 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 564 posted 11 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 484 posted 11 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 446 posted 11 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 393 posted 11 years ago by blueocto
0 358 posted 11 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 418 posted 11 years ago by resting
0 447 posted 11 years ago by jli
0 392 posted 11 years ago by jli
Easy "back to top" scroll link
1 481 posted 11 years ago by benwellby
Quick plugin to paginate a liste.
0 313 posted 11 years ago by Moonsheeld
4 501 posted 11 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 365 posted 11 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 386 posted 11 years ago by hussong
1 452 posted 11 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 360 posted 12 years ago by hussong
Returns the page object of the parent of the current page.
0 506 posted 12 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 593 posted 12 years ago by levinet
0 349 posted 12 years ago by K2Joom
This will force a page break where this class appears.
0 403 posted 12 years ago by bradless
Any link with a hash (#) will scroll to that id on the page. Hat Tip, Karl Swedberg.
1 450 posted 12 years ago by vagrantradio