Archive for the ‘code’ Category

Atom Custom File Type Detection

In this example I will show you how you can set OpenCart’s .tpl file extension to read as PHP when opening in Atom Editor. Open your config.cson file. Underneath core: add: customFileTypes: 'text.html.php': [ 'tpl' ] text.html.php is the “source” and the tpl is the file extension. Now when you open a .tpl file it […]


Mar
12
2019

Gulp, SCSS and WordPress

Ive been using gulp and live reload for many years now. It’s super efficient. Gulp, SCSS aka (sass) and WordPress can be a bit tricky though. Mostly because the typical SCSS structure is to put the final files in directories that aren’t necessarily WordPress friendly or WordPress structured. Also if you are trying to compress […]


Feb
08
2019


Remove meta-generator tags from WordPress using PHP

WordPress is one of the most popular CMS on the web today. But there are a few really bad practices that both WordPress core and plugin developers have, which is putting the version number of their software in the html code. With the ever growing vulnerability database that is WordPress, please stop helping people with […]


Feb
23
2017

Backup Buddy on GoDaddy hosting

So I have a few hosting accounts with various companies. Plus I have had many clients with all kinds of hosting accounts. I do love GoDaddy’s customer support, and their hosting is generally a little more affordable than most as they are consistently running specials. But the one bad thing is that Backup Buddy doesn’t […]


Feb
08
2016

XAMPP OS 10048 Error

How to fix XAMPP’s OS 10048 Error Only one usage of each socket address (protocol/network address/port) is normally permitted. AH00451: no listening sockets available, shutting down. So Ive been dealing with this message when running a CLI script that executes the start of xammp. I searched and searched online but couldn’t really find a quick […]


Feb
08
2016

Cloak Front End Email v1.3 – WordPress Plugin

Cloak Front End Email v1.3 Cloak Front End Email just got better! You can now have multiple email addresses to display on the front end of your website and the plugin will cloak them and display them via javascript. It’s a super simple admin interface.   How to add your email via shortcode Once you […]


Dec
19
2015

2016 Wix.com Review

On October 14, 2015 Search Engine Land wrote an article that Google had dropped Wix.com pages out of their index. Google officially confirmed that they were working on getting Wix sites back into their search engine. This is no surprise, I have been saying this back in May 2012 blog post about how Wix sucks for a […]


Nov
15
2015

Contact Form 7 – Select drop down dates format

Contact Form 7 is great, but the format is slightly different than traditional forms. They wrap everything in quotes and it runs horizontal. So when it comes to dates, it can be quite tedious adding all that info in a format that isn’t easily accessible through a Google Search. In case you don’t want the […]


Sep
12
2015

How to enable explicit_defaults_for_timestamp?

After upgrading my xampp with mysql to 5.6 I started getting an error when creating a new database. I looked everywhere for the answer. They kept saying put explicit_defaults_for_timestamp=1 but it wasn’t working. Turns out you have to put it in the right spot! Open your my.ini file, present at “C:\xampp\mysql\bin”, find “[mysqld]” (without quotes) in next […]


Sep
10
2015