WordPress uploader won’t let you upload some filetypes. If you need to upload other file types this will allow you to do it. Paste the code in functions.php file. If needed, you can add more file types by adding them on line 4, separated by a pipe (|) <?php function addUploadMimes($mimes) { $mimes = array_merge($mimes, […]
Articles Tagged: Detection
Detect mobile visitors
First have to get the code from detectmobilebrowsers.mobi and upload it to your theme directory. Once done, simply open your header.php file and place the following at the top of the file. Don’t forget to edit line 5 according to the page where you’d like to redirect mobile users. include(‘mobile_device_detect.php’); $mobile = mobile_device_detect(); if ($mobile==true) […]