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 740 posted 13 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 1386 posted 13 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 945 posted 13 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 877 posted 13 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 855 posted 13 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 803 posted 13 years ago by blueocto
0 692 posted 13 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 762 posted 13 years ago by resting
0 807 posted 14 years ago by jli
0 712 posted 14 years ago by jli
Easy "back to top" scroll link
1 886 posted 14 years ago by benwellby
Quick plugin to paginate a liste.
0 618 posted 14 years ago by Moonsheeld
4 951 posted 14 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 703 posted 14 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 743 posted 14 years ago by hussong
1 840 posted 14 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 743 posted 14 years ago by hussong
Returns the page object of the parent of the current page.
0 926 posted 14 years ago by levinet
Returns the post or page id using the name/slug of a page.
2 2643 posted 14 years ago by levinet
0 671 posted 14 years ago by K2Joom
This will force a page break where this class appears.
0 768 posted 14 years ago by bradless
Any link with a hash (#) will scroll to that id on the page. Hat Tip, Karl Swedberg.
1 854 posted 14 years ago by vagrantradio