Welcome To Snipplr
Everyone's Recent Snippets Tagged page
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
744
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
1389
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
949
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
879
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
858
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
807
posted 13 years ago by blueocto
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
766
posted 13 years ago by resting
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
705
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
749
posted 14 years ago by hussong
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
746
posted 14 years ago by hussong
PHP
Wordpress - Show link to the next and previos brother of the current page, and a link to the page parent
Must be placed after the_post()
1
2471
posted 14 years ago by Overdeath
Any link with a hash (#) will scroll to that id on the page. Hat Tip, Karl Swedberg.
1
856
posted 14 years ago by vagrantradio