myPortfolio – Responsive, Stylish, User-Friendly & SEO-Ready Portfolio Theme

Perfect WordPress theme for showcasing your work. With a beautiful and highly customizable layout and lots of options, you’ll be able to keep visitors on your site and wow them with examples of your services and products!

Lazy Load Facebook Comment to Speed Up your website

Many WordPress bloggers prefer to use a third comment plugins instead of default WordPress comment system no matter they are pissed of spam comments or just feel cool. I’ll take the Facebook Comment widget as an example to show how to load the scripts only after user clicking the button. By defer loading the scripts, … Continue reading “Lazy Load Facebook Comment to Speed Up your website”

Display post views count with code, supporting cache plugins

I’ve found that most code snippets to display/track post views are just not working well if users are activating cache plugins like WP Super Cache on their sites. The reality is that nowadays you are less likely to catch any website not using this kind of cache plugins for speed improvement. So I’ve put together … Continue reading “Display post views count with code, supporting cache plugins”

Attach an image to a post with code

If you look at the media library you probably notice that all attachments are attached/unattached to a post. If the attachment is attached to a certain post, actually it’s just set as a child of that post, or its post parent is that post. Since both attachments and posts are post and they are only … Continue reading “Attach an image to a post with code”

AJAX Frontend Upload Image in WordPress

In a previous post I’ve showed how to upload images from frontend in WordPress. As requested by many of my readers, today I am going to put it further to show you how to make it with AJAX. Before moving on, I recommend you to read that post because we’ll use many concepts mentioned there … Continue reading “AJAX Frontend Upload Image in WordPress”

Create a Circular Progress Bar with SVG

This post is actually not a tutorial. It’s more than an bookmarked method for my later use to create a circular progress bar with SVG. You can give it a test in http://codepen.io/JMChristensen/pen/Ablch. The original codes should be written by Jon Michael Christensen. The HTML markup View the code on Gist. The CSS View the … Continue reading “Create a Circular Progress Bar with SVG”

Add Unlimited Custom Sidebars

More themes nowadays give site owners the ability to add their own unlimited sidebars. So the site owner can create as many sidebars as they want and assign a specific sidebar to a specific page. In this tutorial I’ll go through with you the while process to get this feature done. Please note that this post … Continue reading “Add Unlimited Custom Sidebars”

Broken Image Fix with jQuery

Now and then we’ll find broken images in our websites, it may because we linked to an image URL that is now invalid, or the file path was incorrect. We can manually replace the broken images one by one, but what if your site has hundreds or thousands of posts? That could be a lot … Continue reading “Broken Image Fix with jQuery”

Complete Guide to WordPress Admin Notices

Dig WP has just published a post “Complete Guide to WordPress Admin Notices” and I am sure it’s helpful for you guys. There are 4 types of admin notices in WordPress: Success – displayed when something good happens, like settings updated successfully Error – displayed when an error or something bad happens Warning – displayed … Continue reading “Complete Guide to WordPress Admin Notices”

“Update Notice” for Self-hosted Themes

You’ll get a “update notice” for each theme hosted in wordpress.org theme directory if there is a new version. For some reasons, your themes are not hosted in wp.org but what if you still want to add the notice to your users? I’ll show you how. Before going to the dirty part, we’ll first need … Continue reading ““Update Notice” for Self-hosted Themes”