I wrote a small jQuery plugin that gets it’s parameters from html 5 data attributes, so configuration is simple. It needs some cleanup but I’ll do that later You can download a zip of the files You can add 3 html5 data attributes to configure the plugin: data-twitter-username (required / used to set the username) data-twitter-tweet-count (optional / the amount…
A while ago I wanted to scan which email addresses can be found by spambots because that domain received a lot of spam. You can prevent users from capturing your email addresses from your website by encrypting the characters with html or javascript. This tools can encrypt your email address with javascript http://hivelogic.com/enkoder/ and this website http://www.wbwip.com/wbw/emailencoder.html does this through using character entities. To…
When applying css transform on an element with a background image, the edges will appear jagged in Google Chrome. Also the image will appear pixelated. To fix this you can add this to your css selector: (this will only work for webkit browsers)
|
1 |
-webkit-backface-visibility: hidden; |
I’ve added a small demo here The first image in the screenshot below doesn’t use the…
WordPress has a built-in object class for dealing with database queries. It’s called wpdb and it’s found in the includes/wp-db.php file. When you’re running queries you should always use this class to execute them. To use this class you first need to define $wpdb as a global variable before you can use it. Just place this line of code before…
WordPress has a built-in maintenance feature. By adding a “.maintenance” file to your website’s root directory with the piece of code WordPress will trigger its maintenance mode.
|
1 |
<?php $upgrading = time(); ?> |
This file is also used during the auto-update process. By using the maintenance mode, users will not see any error messages while you’re updating your WordPress installation or theme. It will generate…
For each saved edit made to a post or a page, WordPress saves a revision in the database. This can really increase the size of your database when your working with a lot of posts or pages. WordPress has a built-in revisions option which you can set in the wp-config.php file. You can also disable revisions altogether. To disable revisions…
By just going through these steps you’ll be able to see your signal reception of your iPhone in decibels (dBm). Normally the value should be between -60 and -90 dBm. Where I live the strength is only -95. First you need to dial *3001#12345#* and press call. Now you’ll enter “Field test mode“. When you press the home button you’ll see…
visible area in the browser on iPhone portrait320*356 visible area in the browser on iPhone landscape480*208 visible area in the browser on iPad portrait 931*768 visible area in the browser on iPad landscape1024*675
I always use the all-in-one-seo-pack for WordPress websites which is a great plugin for SEO purposes. The only drawback is that it screws up the list of pages or posts in your WordPress admin section by adding three extra colums to it (SEO title, SEO keywords, SEO description). To remove these colums go to the /wp-content/plugins/all-in-one-seo-pack/ folder and look for…
Removing the ‘Screen options’ tab You can remove the ‘screen options’ tab completely from your WordPress admin area by adding this to your theme’s function.php file
|
1 2 3 4 5 |
// Hide 'Screen Options' tab function remove_screen_options_tab() { return false; } add_filter('screen_options_show_screen', 'remove_screen_options_tab'); |
Removing the ‘Help’ tab You can also remove the ‘Help’ tab from the admin area in the same manner:
|
1 2 3 4 5 6 7 |
// Hide Help tab function hide_help() { echo '<style type="text/css"> #contextual-help-link-wrap { display: none !important; } </style>'; } add_action('admin_head', 'hide_help'); |
