Tag: wordpress tips and tricks

New section Layout added to Theme Customizer

Comprehensive Guide to make WordPress Theme Options with Customization API

After install a high quality WordPress theme, you find it has a Theme Option page. Per theme, developer will make their own Option page (functions, features, layout …) so it can not be compatible with your theme or others.  Let’s me know what’s you feel when changing to new WordPress theme then you start learning again to re-configure WordPress and you’ll see why that’s a bad thing for WordPress publishers. That’s why I always disliked about theme settings pages was how vastly different they would get.

The Theme Customizer was introduced since WordPress version 3.4 then it’s become a relatively new way of WordPress Themes to provide you with options. It allows for an editing environment where theme options can be tried by the administrator before being applied to the live site. Currently, I’m using WordPress Theme Customizer as my default theme options instead build my own or using other theme options way.
In this tutorial, we will look at exactly how this feature can be added to a theme and I show you how to create your own classes to extend the controls to make your own Customizer Custom Controls, since not all fields and requests are in the core already. You can access existing solutions of the community or create your own classes.
Continue reading

WordPress Dashboard keyboard shortcuts

Navigate & Control Your WordPress Dashboard with Keyboard Shortcuts

Today, my wireless mouse’s battery empty, but I found that I left backup battery at home. So I must find the way to control WordPress Dashboard with keyboard instead mouse. I printed all the keyboard shortcuts and start becoming familiar with keyboard shortcuts. Using keyboard shortcuts on WordPress, my hands don’t have to leave the keyboard to use the mouse and click on the icons. If I need to make a text bold/italics, or insert a link/image or wrap a text in quotes all I need to do is perform the keyboard shortcut. Not only does this enable me to save time but it also helps me to blog more efficiently.

Now, without wasting much time I’ll go to the list of shortcuts available from your WordPress dashboard. Of course, I’m not talking about Ctrl+C and Ctrl+V, and other basic stuff. I’m talking about WordPress specific shortcuts. And there’s a truly wide selection of those.
Continue reading

Your theme doesn't support Infinite Scroll

How to make your theme support Jetpack’s Infinite Scroll feature

As you known, JetPack is one of most popular installed plugins. I’ve recommended JetPack as must active plugins after start new WordPress blog. The Infinite Scroll module in JetPack detecting when a user gets to the bottom of a page that contains a list of posts and automatically checks for and loads in the next  lot of posts instead pagination. Unlike many of the modules already in Jetpack, Infinite Scroll only works with themes that support it.
Continue reading

Best FeedBurner Alternative Services after its shutdown

Top Best FeedBurner Alternative Services after its shutdown

Why are we looking for Best FeedBurner Alternative Services?

Since July 1st, 2013 Google Reader has been shutted down. What’s about FeedBurner? Will FeedBurner shuting down after Google Reader is gone? If you run a blog there are a lot of things to know about and consider doing with this change coming up that you’ll want to take care of in the next couple months.
After your FeedBurner feed is not working anymore, you’re not alone and you basically have two choices – switch to your blog platform’s atom feed for free (no analytics), or switch to the alternative services like: Feedblitz, FeedPress, FeedCat …
Continue reading

Prevent Hidden Causes by Clean up WordPress Database Bloat Issues

Prevent Hidden Causes by Clean up WordPress Database Bloat Issues

After running your WordPress website more than 2 years, you will find your database size bigger than your thoughts. Over time WordPress saves a ton of information to its database, which can become bloated with unnecessary values, thus slowing down your site and putting more stress on your server setup. WordPress database bloat may be the hidden cause of a number of issues your blog may be experiencing!
Just like anything, your WordPress blog also needs some maintenance, servicing and cleaning every now and then to keep it running smoothly, speedily and effectively. In this post we’ll look at 10 ways you can give your WordPress install a spring clean to trim the fat and put everything in its place. So then, it helps you prevent hidden causes may occurring to your WordPress website.
Continue reading

WordPress Smart Backup

How to Schedule Daily Backup of WordPress Database

Do a schedule backups of your WordPress MySQL database is the most important thing to do when running your own WordPress website, it is required to restore your blog, it needs to urgently migrate to another host or restore your database from a crashed server.

From official WordPress guidline – The WordPress Codex, you will find some excellent ways to back up database using phpMyAdmin, MySQL commands, and MySQL administrator. But are you willing to backup your site daily, weekly, monthly and everyday of the year by yourself? There are too many methods, plugins, tools which help you done this job by automatically back up your MySQL database for you and send it across to a safe storage space such that the latest backup is there whenever you need it, wherever you need to restore database from across the world.

There are several ways to backup MySQL data. In this article I will show you how to backup your databases using different methods, we will also learn how to achieve an automatic backup solution to make the process easier, including the backup of your database to a file, another server, and even a compressed gzip file and send it to your email.
Continue reading

Display WordPress post excerpt instead full content

The WordPress Excerpt is an optional summary or description of a post; in short, a post summary. After published your post, the excerpt will be display in RSS feeds (if you choose it’s not display your full post), Search results, Tag archives, Category archives, Monthly archives and Author archives. Don’t confused between excerpt and teaser (the part of a post that appears on the front page when you use the More tag). While both are related to the manual excerpt, they are different from it.
Continue reading

Remove comment-reply.js from WordPress header

Remove comment-reply.js and .recentcomments from WordPress Header

Have you ever seen the following code inside the HEAD section of your WordPress blog source code like image above? (It’s appear in single post page only). Now let’s view the css code below, it’s appear in the HEAD section too, when the Recent Comments Widget used

.recentcomments a{display:inline !important;padding: 0 !important;margin: 0 !important;}

Ever wonder how it got there, and how to get rid of it?

Remove or Disable Recent Comments Widget CSS code

Why they did not just drop this altogether is a mystery. This leaves a bad taste in my mouth because:

  • the style is automatically forced into any page that embeds the widget
  • it uses !important to override any existing styles
  • it cannot be configured from the widget
  • this is a core WordPress widget and not some widget added by a random plugin. WordPress should not contain such bad practices.
  • It is something that should be handled via a style sheet.

Remove comment-reply.js from WordPress header
Fortunately, we can remove or disable it by adding a filter via the WordPress add_filter() method. In fact, if you look at the TwentyTen theme that comes with the later versions of WordPress 3.0 and on, you will find that theme addresses this issue with the following snippet of code in their functions.php file:

Drop this code into your functions.php file and the styling will be removed from your HEAD section.

Remove or Disable comment-reply.js code

Let’s see what is place above in header.php

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
        <?php wp_head(); ?>

Now, we can remove or disable this script more easily by delete this direct from header.php or use wp_deregister_script() function

function clean_header(){
	wp_deregister_script( 'comment-reply' );


Almost parts of WordPress template codes is modifiable or removable by add or remove filter methods in functions.php file. Let’s think about it before hacking to WordPress core sources or create your own WordPress child themes.