Category Archives: WordPress Hacks

How to Force HTTPS on Your WordPress site

In this tutorial I will explain how you can easily force HTTPS on your WordPress site. I will show you the trick to enabling https on the entire domain, on a sub-domain and on a single page. You don’t even need to use any plugin for this.

This tutorial will be very helpful if you have purchased an SSL certifiate for your WordPress site but you don’t know how to force your webpages to use HTTPS URL.

Continue reading

6 Ways to Speed Up Your WordPress Site

A slow website not only costs you traffic, but also reflects badly in search engine rankings. To avoid any of these issues, you should regularly check your site’s speed and optimize it as needed. There are several free services intended for this, the most popular one being Pingdom. After running a quick test of your URL, you can see how your website ranks on a scale of 100, how its loading speed compares to that of other sites and how much time it takes to load. It’s a good idea to do such checks regularly, especially after new plugins were installed or a lot of image-heavy new content was added. Here are a few ways to optimize your WordPress site, if your speed doesn’t rank as high as it should.

Continue reading

How to Turn Off Automatic/Background Upgrades of Core WordPress

WordPress 3.7 has introduced a new feature where the core wordpress will be automatically upgraded to the minor releases. For example, any site running 3.7 will get automatically upgraded to 3.7.1 when it is released (you won’t have to click the upgrade now link to initiate the upgrade process).

Continue reading

Cleaning up Commentluv Comments

If you ever used the commentluv plugin then you probably have a lot of WordPress comments with lots of links in it.

Manually editing all the comments and removing those links can be very tiresome. In this tutorial I will show you how you can easily clean up all the links from your comments using some PHP code. Continue reading

How to Disable the Admin Bar in Your WordPress Site

In this tutorial I will show you how to disable the WordPress admin bar. The admin bar was introduced in WordPress version 3.1.

wordpress-admin-bar-screenshot

The WordPress admin bar is very helpful for quick access to the admin panel. For example, if you want to edit the page or post you are currently viewing , you can easily go to the edit mode with one click.

However, sometimes you may not want the admin bar on some of your WordPress sites. A perfect example of this is if you are running a membership site. You probably don’t want your members/users to see this admin bar and get confused by it. Continue reading

Force a Digital File Download in the Browser

When you click on a digital file link/URL, the browser will show/play the file if it can understand format of the file in question.

In most cases this browser behavior is fine. However, it can be a little problematic if you are trying to let your users download the digital file. The visitor will just see the file in the browser instead of the download dialogue box popping up. This is more problematic for PDF files (if you are selling an ebook and your customers can’t download the PDF file).

Fortunately, you can apply some techniques to force a file download so your visitors will see the download box when they click on a downloadable file/link.

Continue reading

Remove the URL Field from WordPress Comments Form

If you get a lot of spam comments where users are trying to get back-links to their sites then use this WordPress hack/tip to remove the URL field altogether from your WordPress comments form.

This way no one will be able to leave a site URL with the comment and hopefully it will discourage the spammers and you will get more genuine comments on your site.

Continue reading

How to Disable Auto Paragraph (wpautop) Function in WordPress

What is wpautop

WordPress uses wpautop function to filter the content and the excerpt. This is used by WordPress to change double line-breaks in the text into HTML paragraphs (<p>… </p>).

How to Disable wpautop

If you are having an issue with the wpautop function then you can turn it off in your site with a very simple hack. Continue reading

How to Use WordPress Image Editor to Manipulate Images

WordPress 3.5 is introducing the “WP_Image_Editor” class which developers will be able to use to manipulate images. The image editor will add support for Imagick by default which should help with better quality images. Continue reading