Categories
Web Development

The Easy Way to Remove the Popular Tab from a WordPress Taxonomy

Wow, that was a long title for this short article. First off, I am assuming that you know how to add JS scripts to your WordPress admin. If not, you need to know that first. So without further ado… if ($ === undefined) { $ = jQuery; } if ($(‘#custom_taxonomy_id-pop’).length) { $(‘#custom_taxonomy_id-pop’).remove(); $(‘#custom_taxonomy_id-tabs’).remove(); $(‘#custom_taxonomy_id-all’).show(); } […]

Categories
Web Development

Track Ad Blocking Software with Google Tag Manager

Ad blocking plugins can easily cut into any website’s revenue. Not sure if it’s happening to yours? You can use this simple method to find out just how much your traffic is being affected by AdBlockers.

Categories
Web Development

Adding the Bootstrap “active” class to a WordPress Menu Item

Working with WordPress and Bootstrap, you might be frustrated with the built in menu options. There isn’t an easy way to tell WordPress to swap out the  current-menu-item class with bootstrap’s active class. Fortunately for you and me, there’s jQuery for that. Just a little dab will do ya. jQuery(document).ready(function () { $(“.current-menu-item”).addClass(“active”); }); This […]

Categories
Web Development

The Ugly Bootstrap File Input Type

Bootstrap has a way making a lot of HTML elements look good, right off the bat. But the day finally came when I had to face to inevitable: The . This is the red headed stepchild of Bootstrap (and browser makers). Browsers render this element differently from each other, making it nearly impossible to look good across the board.

Categories
Web Development

Understanding the WordPress Quick Edit Custom Box

Alright, I have to confess. This took me some time to wrap my head around. It also seemed like a lot of people were having the same problem. The question is “How do I add custom post meta fields to the quick edit function in WordPress?” For some reason, I had a hard time finding […]

Categories
Web Design Web Development

Set a Container to the Window Height with jQuery

A common issue with CSS is finding the best way to set an element, such as a div, to stretch from the top of the screen, to the bottom of the screen. You can do this with positioning. Sometimes, though, you want the div to start from after the banner, navigation, or something else. This creates […]

Categories
Web Design Web Development

Create a SpeedBump with jQuery & the Bootstrap Modal

A speedbump is a essentially a confirmation dialogue when a website visitor clicks a link to leave your site. Speedbumps are actually required by law in some countries for industries such as Credit Unions and banks. There are several ways to create a speedbump, and I’m going to show you just one way. You can […]

Categories
Web Development

Simple PHP+CSS+jQuery Anti-Spam Measure

Today I set out to implement some additional anti-spam measures for some forms on one of my sites. Let me start by saying that this should not be the only thing you do to prevent spam. Nor are these ideas new or unique. This is just a simple technique to help prevent spam.