July 10, 2020
WordPress Add Leveling Classes to Menu Items

Many times when I am building mega menus and need additional classes to write cleaner CSS I like to add level classes to the WordPress menu items. I like to use a simple PHP function to add classes like .level-0, .level-1, .level-2 to the li depending on its depth from the top most nav item. […]

Read More
June 29, 2020
PHP Get the Distance Between Two Lat/Lng Points

If your building some custom Google Maps and need to get the distance between two points I got the Math done for ya. The function below will return the distance between two Lat/Lng points so for you to use in your code to calculate travel fees or just the distance in miles/kilometers. This is a […]

Read More
June 22, 2020
PHP Convert Hex to RGB

Need a way to convert Hex code to RGB value programatically with PHP? I got your back. There are not a ton of instances that you might need to do this. Most of the cases I had to use this have been for better support for older browsers.

Read More
June 16, 2020
jQuery get Browser name and add it to site body as class

Have you needed to apply specific CSS styles to a particular web browser (Internet Explorer, FireFox, Chrome, Opera...)? I have a Javascript function that I use in all my site to accomplish this. I use this function to identify the browser that is viewing a site and using its name as class that I assign […]

Read More
April 2, 2020
Gravity Forms: Scroll to Confirmation Text After Submission

If you have your form at the bottom of a page and noticed that when you submit the form you don't see your confirmation message right away, it's not your fault. Gravity Forms is meant to be very flexible to any type of user/developer, however not all of the bells and whistles are turned on […]

Read More
January 22, 2020
Gravity Forms Scroll to Error Message after Submit

Filling out forms are the worst. Especially if you have to fill it out cause you have a complaint or if it is mandatory for work. You start tabbing through the form filling out only the necessities just so you can get to the end and submit it. And when you think you are finally […]

Read More

Categories

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram