Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Use like this: [self showConfirmation:@"May we send you information and offers by Email?" withMessage:@"1 email per week maximum"];
1
1094
posted 13 years ago by yasirmturk
Use like this: [[self docsPath] stringByAppendingPathComponent:@"photo.png"]
1
1018
posted 13 years ago by yasirmturk
Writes to a text file, test.txt, instead of email for the purposes of testing.
0
863
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
817
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
942
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
852
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
1007
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
1279
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
846
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
1024
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
1078
posted 13 years ago by RainyDayMedia
You just need to configure the width, columns, and gutter
3
1082
posted 13 years ago by firewalker06
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
792
posted 13 years ago by mikemore
Get all page names and ids from the DB of pages with content containing '#'
0
883
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
1169
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
484
posted 13 years ago by rofthedeep