According to some blogs, WordPress automatically compress your JPEG images to 90% quality, but this information is false.This only happens on the resized images WordPress creates. The original uploaded image is saved unaltered, as the "full" size.Anyways, you can stop compressing of JPEG images by putting following code into your functions.php file:
add_filter('jpeg_quality', function($arg){return...
Home All posts
Thursday, 31 October 2013
Google: How Fast Is Our Hummingbird
15 years have past since Google Search first appeared on the stage. Back in 1998 the searching process was far from perfection: the huge machine called computer is on, the user type in keywords into the search system and the system manages to find several websites with the required information. Now it sounds funny, but at that time it was a miracle!
The whole process and the devices have...
Tuesday, 29 October 2013
Remove Author Prefix From Slug In WordPress
Earlier this month I shared an article about changing WordPress Author URL Slug. That code will change the default yoursite.com/author/name to yoursite.com/profile/name.
Now this trick will remove the author prefix from the author slug. To clarify, this snippet will help you turn: yoursite.com/author/name/ into: yoursite.com/name/.
Just add following snippet to your functions.php file:
// The...
Detect And Redirect Android Users With .htaccess
Last night I shared a trick to redirect Android users to your Android/mobile website with a simple PHP snippet. It's time to do the same with .htaccess file. Android is the most used smart phone platform right now, and is a hot topic for developers.Add this following code to your .htaccess file to redirect users with Android User Agent to a specific address:
RewriteCond %{HTTP_USER_AGENT} ^.*Android.*$RewriteRule...
Monday, 28 October 2013
Detect And Redirect Android Users With PHP
Here is a simple trick to redirect Android users with some simple PHP script. It's a useful snippet if you have an Android version of your website.Add following PHP to your document to search and redirect Android user agents:
$ua = strtolower($_SERVER['HTTP_USER_AGENT']);if(stripos($ua,'android') !== false) { // && stripos($ua,'mobile') !== false) { header('Location: http://android.yourwebsite.com'); ...
Allow Contributors To Upload Images In WordPress
Are you running a WordPress website with bunch of contributors who are willing to post on your website? If yes then this article contains a great tip for you.
As I mention on previous articles, every post on your blog must contain at least one image related to the article. It's really great for SEO and other things.
This code will help us to allow users with contributor role to upload images on...
Thursday, 24 October 2013
How To Disable Smart/Curly Quotes In WordPress
There are lot of word processor programs which itself converts all yours simple quotes to curly quotes (aka s mart quotes). It looks like small figures six and nine raised above the baseline (like 6...9 and 66...99).It's a huge problem if you're writing codes in your posts as WordPress automatically converts all quote symbols to smart quotes. So if anyone is copying a snippet from your blog post...
Wednesday, 16 October 2013
Send Email Notifications When User Submit A Post In WordPress
Are you running a multi-author WordPress blog or a blog with guest posters with contributor role to submit the post directly from the WordPress dashboard? Then you must be looking for a way to get email notification when someone submit a post or when you publish or reject their post.
We previously shares some great scripts to get email notifications for a couple of events, but this time it's a...
Sunday, 13 October 2013
Prevent Directory Browsing With .htaccess
I recently shared several articles about .htaccess file, and as you may know by now, it's a great file if you're working on the security of your site. Today we'll disable the directory browsing in our website with some editing in .htaccess file.
You know how you can change a few characters in a URL and continue browsing the website. Sometimes, it could be very dangerous for our website, so it's...
How To Remove Footer Credits From Jetpack Mobile Theme In WordPress
Jetpack is a great plugin for WordPress to connect your blog to WordPress.com. It also gives us dozens of crappy great plugins for our blog, such as mobile module, social share, wp.me short links, and more.
Jetpack's Mobile module is great plugin to create a mobile version of your website for mobile users, but it comes with a footer credit: Proudly powered by WordPress.
Giving WordPress their...
Subscribe to:
Posts (Atom)
Popular Posts
-
Just a quick news before I start the stuff. Google Code has suspended my code account & all repositories I hosted there, so all my c...
-
Earlier this week, I wrote about installing CFW on your PSP to do some extra-ordinary PSP stuff. Playing ISO and CSO games in one of it. ...
-
Many PSP gamers wants to capture screenshots of their PSP games to share them with their friends and on tutorials. Even the above picture...
-
BWidgets is a blogsite about blogging, but why we're sharing PSP tutorials here? The answer is very simple. I recently bought a PSP 1...
-
Blogging world is getting large everyday as so many peoples are creating blogs and it's hard for all of them to capture their targets...
-
Overview A flash card is a data storage device with a flash memory, A USB flash card is a flash card with integrated Universal Serial ...
-
In this tutorial, I'm going to show how you can easily hide login errors in WordPress. It's a great way to protect from WordPress ...
-
Hi guys! I haven't published anything on this blog for at least an year now. All the posts that you see here are guest posts, and not by...
-
Creating a strong, specific and informational law blog is an excellent means of drawing potential clients to your website and keeping curr...
-
By default, WordPress only allows us to login to WordPress powered sites only with our username. But most of us prefer to enter our email ...