Tracking events can be a bit daunting. If you have to track every event on a page, you could be writing a ton of code to control each event. Well, I have a solution for you! I wrote a small simple script that is 4 lines long. This script will go through all your events,… Continue reading Tracking Multiple Google Analytics Events Dynamically… Like a Boss!
Author: Roberto Mejia
The Easiest Way to Defer Scripts in WordPress Ever!!
Deferring Scripts in WordPress is not the easiest thing to do. Many plugins add scripts to your site, and can become a mess very quickly and easily. Deferring one script at a time is not very efficient. Because of this, I wrote a short function that takes the hassle of deferring scripts. // add defer… Continue reading The Easiest Way to Defer Scripts in WordPress Ever!!
Find What and Where are Each Function in a WordPress Hook (What File & Line)
Ok, This might be the most useful function I’ve ever used for debugging WordPress. This will help out tremendously when you have some ghost tags that you don’t know where it comes from. The idea here is to go through each function in a hook, and find out where that function is. That way, you… Continue reading Find What and Where are Each Function in a WordPress Hook (What File & Line)
The Ultimate Guide for Quick and Easy Page Speed Optimization
Speed optimization is not easy!! A lot of it is over some DIY people’s heads. How do we get coveted 100% in the page speed checkers? Well here are some simple solutions anyone can do to help. First, leverage browser caching is a tough one. Many people don’t even know what that means. What do… Continue reading The Ultimate Guide for Quick and Easy Page Speed Optimization
Simple URL Shortcodes for WordPress
Doing web development on testing servers is a common practice. Many of these servers have addresses that are an ip address with a user name. For example, these development addresses can be something like: http://12.34.56.789/~username/ The problem with this is that it throws off your relative URL structure. You can use /page because it will… Continue reading Simple URL Shortcodes for WordPress
Hackers Deleted My Permissions! (You do not have sufficient permissions to access this page.)
There is nothing more annoying than to find that a site got hacked and that these hackers deleted some important things that make your site works. I’ve ran across several websites where hackers, just to ruin my day, deleted permissions from WordPress. Because of this, every time you try to log into the back-end, you… Continue reading Hackers Deleted My Permissions! (You do not have sufficient permissions to access this page.)
Where are the decent code editors?!
I like to make sure that my code is nicely indented and formatted. There are many places that do this ok, but there are no places that do this perfect. The box below is my attempt to make a decent code editor that take any type of code and formats it properly, and spaces it… Continue reading Where are the decent code editors?!
Easy HTML Sitemaps for Your WordPress Themes
Sitemaps are important for SEO and for users. We already know this. Most people make sure they have an xml sitemap and call it a day. However, most people neglect the HTML sitemap. It is not quite as easy to make, and the plugins that are out there are complicated and are often not very… Continue reading Easy HTML Sitemaps for Your WordPress Themes
Boost SEO with a Quick Shortcode to Display Page Children
We all know that the more links to a page the higher it shows in the search engines. This is also true internally. This is why it is very important to create a well organized interlinking structure. This can be slightly complicated, but here is a quick and dirty little trick you can use. I… Continue reading Boost SEO with a Quick Shortcode to Display Page Children
Epic Breadcrumbs with Rich Snippets Microdata
So, as it turns out, the cool happening kids on the web are all about this new rich snippets craze. They should. This is what Google recommends, and it is one step closer to the semantic web. So, I thought I would put out my version of what a great set of crumbs should look… Continue reading Epic Breadcrumbs with Rich Snippets Microdata