Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use like this: [[self docsPath] stringByAppendingPathComponent:@"photo.png"]
1
862
posted 13 years ago by yasirmturk
Writes to a text file, test.txt, instead of email for the purposes of testing.
0
748
posted 13 years ago by hotdiggity
Once we login and are in the backend of WordPress, there is another small logo of WordPress displayed on top. It’s small but if you wish to change it, then add below code to the same functions.php file we created in above step.
0
715
posted 13 years ago by jamiebrwr
When a client wants to access the WordPress admin, the first thing they will notice is the login page with a WordPress logo. Wouldn’t it be better if this page had the logo of your client’s company or maybe yours? There are many simpler ways to d...
0
830
posted 13 years ago by jamiebrwr
Change the small logo at the top of the dashboard: Just add to the bottom of your theme's functions.php file
0
750
posted 13 years ago by RainyDayMedia
Developing a form where I had several date and time fields, I came with a jQuery multiselector where I need to get, through the name attribute, if it was a date or time field. So far, jQuery does not have a boolean method to check if an attribute of...
0
879
posted 13 years ago by betacar
A custom class for formatting dates, similar to PHP bult-in function "date". The class also has some other date utils functions, like: dayOfYear, numberOfDaysInMonth, etc..
1
1090
posted 13 years ago by TimoZachi
Removing the generator tag for security purposes... add to the bottom of your theme's functions.php file
0
749
posted 13 years ago by RainyDayMedia
Add to the bottom of the your theme's function.php file. Change to your site's name
0
874
posted 13 years ago by RainyDayMedia
For those of use who use Wordpress as a CMS, this gives you the option of hiding all your dashboard widgets, for all users.
<br>**Open your theme’s functions.php file located in your theme’s folder. Copy this script, paste it at the bottom of y...
0
943
posted 13 years ago by RainyDayMedia
As Google+ API was just released a couple days ago, it is time to have a posts widget for it. So, this widget was created to display your Google+ profile and slides down your recent posts with any attached images.
0
685
posted 13 years ago by mikemore
Get all page names and ids from the DB of pages with content containing '#'
0
776
posted 13 years ago by nielsenrc
Will produce output like this:
<html>
...
</html>
<html>
...
</html>
Target in CSS like this:
html[data-useragent*='Chrome/13.0'] .nav {background:url(img/radial_grad.png) center bottom no-repeat;}
or
html[data-useragent*=...
0
1029
posted 13 years ago by reverend
Paste this code at the top of your .php file. You can choose this new site template when creating a new wordress site.
0
402
posted 13 years ago by rofthedeep