Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



Source: https://css-tricks.com/snippets/wordpress/customize-login-page/ Put them in your theme functions.php or make it a plugin.
0 122 posted 5 years ago by pauloc
To use WordPress 4 Customizer API I'd need just to do 2 steps: define a data in the array, and call a custom registering function.
1 170 posted 5 years ago by micklevin
Thanks to Tom McFarlin for this: https://gist.github.com/tommcfarlin/86e4f040bcc641a86f59
1 103 posted 5 years ago by adambundy
Get parent id of a category in the category template
0 107 posted 5 years ago by cld23
Sometimes it is usefull to hide that you're using wordpress. Rename wp-content folder to "media" and add this un wp-settings.php just before including the settings.
0 98 posted 5 years ago by burnandbass
Put it in functions.php
0 144 posted 5 years ago by burnandbass
https://www.chrisjmendez.com/2014/09/19/wordpress-disable-html-in-wordpress-comments/
0 135 posted 5 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/19/wordpress-replace-a-themes-google-font-with-your-own/
0 134 posted 5 years ago by chrisaiv
This is similar to [example 1](http://snipplr.com/view/77687/wordpress-change-admin-email-to-new-users/) but more portable.
0 120 posted 5 years ago by chrisaiv
enter the full name you want displayed alongside the email address
0 118 posted 5 years ago by chrisaiv
enter the full email address you want displayed
0 141 posted 5 years ago by chrisaiv
The functions here are a compendium of snippets I've posted in the past. I will continue to update this file regularly.
1 131 posted 5 years ago by chrisaiv
Remove all those boxes on the Wordpress Dashboard
0 106 posted 5 years ago by chrisaiv
Gravity Forms by default will write an inline JavaScript call to jQuery on every form you add to a page.
0 94 posted 5 years ago by chrisaiv
Eventually, you're going to need to style this website so here are a few tricks
0 85 posted 5 years ago by chrisaiv
Prevents wordpress back-end from stripping formatting
0 68 posted 5 years ago by chrisaiv
Over the years, wordpress has placed a lot of junk in their system.
0 99 posted 5 years ago by chrisaiv
Disallow HTML in WordPress comments, add this snippet to your functions.php file.
0 130 posted 5 years ago by chrisaiv
You might also consider just installing this Wordpress plug-in. It's way easier https://wordpress.org/plugins/google-typography/
0 95 posted 5 years ago by chrisaiv
Add Login / Logout to your WordPress Menu. You must have UserPro
0 94 posted 5 years ago by chrisaiv
If you make a lot of edits, eventually the revisions will start to bother you or bog down your database. Heres how you can put a cap on the number of recorded revisions.
0 94 posted 5 years ago by chrisaiv
Sometimes you don't want robots snooping around certain files. Here's one example of a custom configuration.
0 107 posted 5 years ago by chrisaiv
These are performance tricks to improve your Wordpress application.
0 115 posted 5 years ago by chrisaiv
To encourage subscribers to visit your website, rather than letting them just consume content through your RSS feed, you might want to display only the excerpt and featured image of posts.
0 97 posted 5 years ago by chrisaiv
If you want statistics about your subscribers, you’ll have to use FeedBurner instead of Wordpress' out-of-the-box feed.
0 115 posted 5 years ago by chrisaiv
If you’d like to show posts from only one category on your homepage, then it’s easy enough to do.
0 104 posted 5 years ago by chrisaiv
If you user logs in and they're on a mobile phone, they might get that annoying black bar on top. This script removes that if they can edit posts or on mobile.
0 102 posted 5 years ago by chrisaiv
Checks if a particular user has a role.
0 111 posted 5 years ago by chrisaiv
It's probably not a good idea to always use this trick but if you need to, you'll be glad you bookmarked this script.
0 92 posted 5 years ago by chrisaiv
Insert a favicon using functions.php
0 62 posted 5 years ago by chrisaiv