was successfully added to your cart.

Category Archives: Our Blog

How to find quality Public Domain images for commercial use

By | Our Blog | No Comments

Pixabay Images is a WordPress plugin that let's you pick CC0 (Creative Commons Zero) public domain pictures from Pixabay and insert them with just a click anywhere on your blog. The images are safe to use, and paying attribution or linking back to the source is not required. The plugin lets you choose photos, clipart, or both. It also lets you search for horizontal or vertical images.

The plugin will put a new button next to your Add Media button (if you choose that in the settings). Clicking on it will let you search Pixabay and choose the image size.



Once you choose an image there, you are taken to another screen that will let you review and change things such as the title, caption, link, size, and alignment.

If you want public domain images of very good quality, this plugin is a great choice.

Add Facebook and Twitter “Share” Buttons to Your WordPress Blog

By | Our Blog | No Comments

Social bookmarking buttons are essential for any blog these days. They are vital to helping people share content that they find useful and interesting. And with WordPress of course, you have a lot of plugins to help you add social sharing buttons to your site. However, many of these plugins either use Javascript, or a whole host of external references, which are a burden on your server and really slow down your site load time.

As title mentions in this tutorial we will go over steps on how to set up Facebook and Twitter buttons on your blog without using any plugins.

Go to your theme’s single.php file and paste below code after template tag „the_content()“ . This will add sharing button at the bottom of the post

[code] <div class="sharebuttons">
<a href="http://www.facebook.com/sharer.php?u=<?php echo urlencode(get_permalink($post->ID)); ?>&t=<?php echo rawurlencode(get_the_title()); ?>" target="_blank">Post this article in Facebook posten</a>
<a href="http://twitter.com/home?status=<?php echo rawurlencode(get_the_title()); ?> - <?php echo urlencode(get_permalink($post->ID)); ?>" target="_blank" title="Tweet this article">Tweet this article</a>
<a href="mailto:?subject=Artikel auf <?php echo rawurlencode(get_bloginfo('url')); ?>: <?php echo rawurlencode(get_the_title()); ?>&body=<?php echo urlencode(get_permalink($post->ID)); ?>" title="Send article via mail">Send article via mail</a>
</div><!-- .sharebuttons" -->


Open style.css file of your WordPress theme and put below code for better styling.

[code] /*Sharebuttons*/
.sharebuttons {
margin: 15px 0;
clear: both;
.sharebuttons a {
padding: 5px;
background: #ddd;
border: 1px solid #333;
text-decoration: none;

Your result will be like this


How to Limit Comment Length in WordPress

By | Our Blog | No Comments

If you have used Twitter, then you already know that you are only allowed to type 140 characters in a single Tweet. It would be nice to have this feature for WordPress comments too. Comments below a certain length or above a certain length are not very helpful. By setting comment length limits in WordPress, you can improve the quality of your comments. In this article, we will show you how to limit comment length in WordPress.

We will add a filter hook to preprocess_comment. This filter is applied to the comment data prior to any other processing of the comment's information when saving a comment data to the database.

[code] add_filter( 'preprocess_comment', 'minimum_comment_length' );

function minimum_comment_length($commentdata) {
if ( strlen( $commentdata['comment_content'] ) > 5000 ) {
wp_die('Comment is too long. Please keep your comment under 5000 characters.');
if ( strlen( $commentdata['comment_content'] ) < 60 ) {
wp_die('Comment is too short. Please use at least 60 characters.');
return $commentdata;

Alternatively you can also use plugin. I recommend Greg's Comment Length Limiter. This plugin provides a configurable limit on the length of comments left in the comment form, with a character countdown displayed for the user and dynamically updated with each keypress.

Show an under construction page for your WordPress

By | Our Blog | No Comments

If your WordPress-powered website is currently under construction and you may not want others to be able to see your site until it’s complete.

You can use a plugin to do this, but it’s pretty simple to include this functionality within your theme. Add the following code in the functions.php of the theme:

[code] function maintenance() {
if ( !current_user_can( 'edit_themes' ) || !is_user_logged_in() ) {
wp_die('<h1>Maintenance Work<h1> Coming Soon. We are working hard.',
'Here we are working');

add_action('get_header', 'maintenance');


This function turns on a holding page for all non-admin users that visit your website.

How to Clean a Hacked WordPress Site

By | Our Blog | No Comments


Don't panic. Don’t erase anything, don’t restore from backup, don’t do anything until you do and understand what follows next. Anything you do at this point may destroy vital information. Take the site down, immediately. Most admin panel of Web Hosting offer the possibility to take the site offline. This prevents showing spam to the world, then Google is sure to notice. If you’re down for a time, then Google can understand that.


Use FTP or a backup plugin to download a copy of your entire website. The reason you need to do this is because many hosting providers will immediately delete your entire site if they detect this. Backing up your files and database should be your first priority. Get this done, then you can safely move on to the next step of cleaning your site comfortable.


Here are the guides of the road when cleaning your site:

1) If there is anything like the following in your file, you have definitely been hacked, and you MUST remove it ASAP:

[code] <!--?php eval(gzinflate(base64_decode('dVRtb6NGE.....')));?-->

2) Make always a copy of any uploaded files, such as images. It is usually a good idea to grab a copy of all the images in your uploads folder so as to avoid broken images in posts later.

3) Secure your wp-config.php file and edit your wp-config.php to change the password.

4) You can usually delete anything in the wp-content/plugins/ directory and you won’t lose data or break your site. The reason is because these are plugin files that you can reinstall and WordPress will automatically detect if you’ve deleted a plugin and will disable it.

5) You can delete all theme in the wp-content/themes directory. Make sure that you have and can download a new copy of your theme from the original source.

6) You can delete the wp-admin and wp-includes directories and the other WordPress files.

7) Now install a new fresh copy of WordPress and then your theme and plugins.


Change all passwords (FTP, Database and WordPress Logins) on the site, especially admin/root passwords.


Congratulations if you have managed to clean your site. Then you need to take steps to prevent it from happening again. Here’s how:

1) Install some security plugins (like Wordfence) and run regular scans on your WordPress site.

2) Make sure WordPress and all plugins and themes are kept up to date. This is the most important thing you can do to secure your site.

3) Make sure you use strong passwords that are hard to guess.

Protecting Email Address against Spambot

By | Our Blog | No Comments

The Spambots work by scanning the source code of your site, looking for your email addresses and following links to other pages. Email addresses are fairly easy to pick out due to their formatting and their use of the “mailto” URL function. So, how do you deter the majority of bots?

Use the following formula in the template/theme:

<?php echo antispambot('max.musterman@example.com'); ?>

Obviously you need to replace with your email address.

If you want to use it in the editor area, you have to write function which allows shortcode insertion.
Copy the following code in the functions.php of the theme:

* Hide email from Spam Bots using a shortcode.
* @param array $atts Shortcode attributes. Not used.
* @param string $content The shortcode content. Should be an email address.
* @return string The obfuscated email address.
function wpcodex_hide_email_shortcode( $atts , $content = null ) {
if ( ! is_email( $content ) ) {
return '<a href="mailto:' . antispambot( $content ) . '">' . antispambot( $content ) . '</a>';
add_shortcode( 'email', 'wpcodex_hide_email_shortcode' );
add_filter( 'widget_text', 'shortcode_unautop' );
add_filter( 'widget_text', 'do_shortcode' );

To use this in your WordPress Content area, posts and widgets all you have to do is wrap your email address in a short code.


Change WordPress Login URL

By | Our Blog | No Comments

If will here explain how to change the default login url in WordPress from /wp-login.php to /login. You can change wp-login.php to anything you want.
Open your .htaccess file, and add this code before any WordPress rewrite rules,

[code] RewriteRule ^login$ http://yoursite.com/wp-login.php [NC,L] [/code]

This code will redirect any one visiting to http://yoursite.com/wp-login.php to http://yoursite.com/login, and you can then login at this new login url.

Increase Max Upload File Size in WordPress

By | Our Blog | No Comments

Sometimes, you need to upload a large file to your site, and the default limit in WordPress isn’t enough. This isn’t directly a WordPress configuration, but is a limit set by your web hosting provider. You can see the current limit by going to Media → Add New in your WordPress dashboard.  In this article, we will show you how to increase the maximum file upload size in WordPress. Change the values to limits that best suit your needs.

1. Create or Edit an existing PHP.INI file
All you need to do is create a php.ini file and upload it into your /wp-admin folder. Then add the following code:

[code] memory_limit = 64M
upload_max_filesize = 64M
post_max_size = 64M
file_uploads = On

This method is reported to work for many users.

2. Editing Your .htaccess file
Open or create the .htaccess file in the root folder and add the following code:

[code] php_value memory_limit 64M
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_flag file_uploads 1

If none of these options work, you can’t access the areas mentioned or you have troubles along the way, get in contact with hosting provider for a definitive answer that will work for your situation.

How to create phpinfo page

By | Our Blog | No Comments

PHP has many environmental variables that you are able to configure as needed. For example, you may need to update your php memory_limit to prevent certain scripts from running out of memory. In order to change these values, you must first be able to see what they are. You can get specific server configuration by making and running a phpinfo file from your server.

With a simple text editor (such as Notepad++), create a new phpinfo.php file containing only this following code:

[code] <? phpinfo(); ?>

Upload this page to your httpdocs (public_html) folder on your server, and call it with your Internet browser http://YourDomain.com/phpinfo.php.
Now a page should be displayed telling you the PHP version installed on your server, server information and environment (if compiled as a module), the PHP environment, paths, master and local values of configuration options, HTTP headers, and the PHP License etc.

IMPORTANT! For security reasons, you should not leave this file in place after you have retrieved the information, nor should have it accessible (linked) to the general public.

Click to Get Full Access to our entire collection for only $69! Get Access Today