Welcome To Snipplr


Everyone's Recent Snippets Tagged wordpress



Thanks to Tom McFarlin for this: https://gist.github.com/tommcfarlin/86e4f040bcc641a86f59
1 1247 posted 10 years ago by adambundy
Get parent id of a category in the category template
0 1158 posted 10 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 1107 posted 10 years ago by burnandbass
Put it in functions.php
0 1362 posted 10 years ago by burnandbass
https://www.chrisjmendez.com/2014/09/19/wordpress-disable-html-in-wordpress-comments/
0 1254 posted 10 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/19/wordpress-replace-a-themes-google-font-with-your-own/
0 1194 posted 10 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/18/wordpress-change-admin-e-mail-to-new-users/
0 1275 posted 10 years ago by chrisaiv
enter the full name you want displayed alongside the email address
0 1242 posted 10 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/18/wordpress-change-admin-e-mail-to-new-users-example-1/
0 1362 posted 10 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/08/wordpress-clean-up-dashboard-meta-boxes/
0 1091 posted 10 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/13/wordpress-upgrade-an-old-jquery/
0 1049 posted 10 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/13/wordpress-remove-header-junk-from-default-wordpress-install/
0 1240 posted 10 years ago by chrisaiv
Disallow HTML in WordPress comments, add this snippet to your functions.php file.
0 1175 posted 10 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 1139 posted 10 years ago by chrisaiv
Add Login / Logout to your WordPress Menu. You must have UserPro
0 1167 posted 10 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 1106 posted 10 years ago by chrisaiv
https://www.chrisjmendez.com/2014/09/14/wordpress-htaccess-performance-tricks/
0 1347 posted 10 years ago by chrisaiv
Checks if a particular user has a role.
0 1253 posted 10 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 1087 posted 10 years ago by chrisaiv
Insert a favicon using functions.php
0 990 posted 10 years ago by chrisaiv
One thing that can go wrong in WordPress magazine themes is when users include too many words before the more tag.
0 1020 posted 10 years ago by chrisaiv
Add the code below to change the Home & Site URL that is configured in the database (wp-options table) by WordPress. Whenever you copy/move a site to a new hosting and the URL has changed you can use the code below to fix any strange redirects that m...
0 1226 posted 10 years ago by 108Bits
Simply paste the following snippet of code into your theme's functions.php file and adjust the CSS on line 4 as needed.
0 1284 posted 10 years ago by chrisaiv
Thanks to Tom McFarlin for this. http://tommcfarlin.com/wordpress-post-exists-by-id/#more-30264
1 2077 posted 10 years ago by adambundy
Remove Wordpress empty paragraphs form the_content() function.
0 2926 posted 10 years ago by razvanstavila
Add custom header style for Admin
0 1151 posted 10 years ago by razvanstavila
Add a css file to style the visual editor to resemble the theme style.
1 1238 posted 10 years ago by razvanstavila
Add page name slug to Wordpress body class array.
0 1277 posted 10 years ago by razvanstavila
Add Google Lato Font link from Google Fonts to your website. It will add to your admin area also.
0 1093 posted 10 years ago by razvanstavila
Generate The Tiny URL to add to any post
0 1019 posted 11 years ago by daprela