Check If User is on Mobile Device with wp_is_mobile()

check_user_if_is_mobile

In modern world mobile devices are being used widely to browse sites, if you don’t have mobile responsive site then you’re loosing 40% traffic and this ratio increasing dramatically! So here I’ve simple and shortest snippet to detect whether your visitor is on mobile device or not.This returns value in Boolean(true or false), so you ...

Read More »

Disable WordPress Version Update Notification

Disable Update Notifications In WordPress in the Dashboard

Hi guys, Today I’m going to share a short but useful snippet. With this snippet you can disable wordpress version update notification.Although this is not recommended to prevent new updates unless you’ve reason for this or may be you don’t want allow  to other members of your site or clients to mess with ...

Read More »

Add New Image SIZE IN WORDPRESS MEDIA DIALOG BOX

Add New CUSTOM SIZE TO WORDPRESS MEDIA DIALOG BOX

Here is short snippet to add new image size in media insert dialog box.Just copy below code and add in your ‘functions.php’.But remeber after adding this code, you’ve to upload atleast one image via wordpress media upload then this new size will show like this : Screenshot

Read More »

Set Featured Image Automatically

You may have seen some themes which allows this functionality to set Featured Image automatically by garbing first image from post and set that as Featured Image. Here I’m going to share same snippet which will allow you to add same functionality in your existing theme by just copy and pasting same code ...

Read More »

Remove ‘p’ tag from the_content

If you’re a wordpress theme developer then you must have used wordpress function “the_content()” many time. Actually by default wordpress wraps “p” tag around the text. But if you want to remove this due to any reason then just add following line in your ‘functions.php’ file.

Read More »

Remove Image Classes from the_post_thumbnail

You may have used “the_post_thumbnail” function before to show featured image, but sometime it’s mandatory to remove those classes which are being added by default. To achieve this you can use follwing simple but effective code. Open your ‘functions.php’ file of your wordpress theme and paste following snippet at the ...

Read More »