WordPress Roots Theme Configuration Tips

I love using the Roots theme as a starting point for many of our custom themes we do for our clients. It’s responsive, lightweight, and comes with Bootstrap built in. However, it can be a bit difficult to get started for WordPress beginners (and even experienced themers alike) due to … Continued

Generate htaccess password (htpasswd) from the command line

When a website is in development, it’s a good idea to password protect the root directory from public access: It prevents unauthorized users from accessing the site It prevents it from being indexed in search engines It prevents other bots (spammers) from attacking your development site There are plenty of … Continued

Loading a Google Font in WordPress

The proper way to load an external font library, such as from Google Fonts, is to use the wp_enqueue_scripts hook. You can use the above sample code in your functions.php code or load it up via a custom plugin. Breaking it down Couple of key points: “wp_enqueue_script” is the … Continued

Clickable Parent Menu Items with Roots Theme and Twitter Bootstrap

Most users are familiar with dropdown menus on websites. Move your mouse pointer over the parent and it shows the dropdown menu with the children links. The Twitter Bootstrap, in order to accommodate mobile devices, has this functionality as “on click” for the dropdown to appear, instead of mouse over. … Continued

Drupal Geofield Map Custom Marker

Custom Geofield Map marker

Easily change the default Google Map marker in the Geofield module with the patch by anou. It introduces a field to enter a path for your custom marker.  

Google Fonts tops 500 Billion Downloads

Google Fonts

Google Fonts has revolutionized fonts on the web. We’re no longer confined to standard system fonts available on each visitor’s computers. It’s an indispensable tool for web designers and I’m glad to see that it’s so popular and growing at an increasing pace.   You can follow Google Font news on their … Continued

Drush Equivalent for WordPress, WP-CLI

Wordpress Command Line Interface

After developing with Drupal for years, we’ve become spoiled having Drush at our disposal. WP-CLI (WordPress Command Line Interface) is the closest thing we’ve found and is just as awesome. Couple of key things we like: Can be installed without sudo permission, so it will work with shared hosting environments … Continued

Easy Responsive Form Fields

Responsive Website Design

Dealing with form fields can be a little tricky when making a responsive theme for a website. You can code your CSS for each device or browser width, which can results in a lot of extra or redundant code, or you can use this simple technique. Set your text fields … Continued