David Lohmeyer's Blog

An example of a Bootstrap affixed menu

Twitter's Boostrap framework is great for making affixed menus that stay with you as you scroll down the page.  I recently needed to do this and got it working pretty well.  It's also responsive, so the mobile dropdown menu scrolls with you as well.  This is my favorite navigation design pattern.  I've taken the liberty of making an example that has a fade-in effect so it isn't so jarring when the menu affixes.

Here's the JSFiddle of it in action:

Bootstrap affixed menu with fade-in.

Why hasn't SASS taken off in mainstream web development?

Today I'd like to talk about a point that has bothered me for the past year or so as I've integrated SASS into my typical frontend development pattern for websites.  Why hasn't the preprocessor, a tool that so drastically improves how CSS is written, taken off in the mainstream yet?  Look at the countless "Bootstrap template bundles", ThemeForest, and other sites for examples of what frontend designers are churning out to the masses.  They aren't SASS, or even LESS (most of the time).  With how fast the web moves, I'm fairly shocked at how slow this adopt

Theming Drupal 7 Webform fields with Bootstrap

Bootstrap is a great Drupal theme that makes it so your form elements and other Drupal things get output with proper Twitter Bootstrap CSS attributes.  One downside to it is that the popular Webform module has elements that don't get styled by the Bootstrap Drupal theme and then they look like unstyled form fields.

Breakpoint Slicer and Bootstrap for SASS, two fine front end tools

As a front end design fan I like to constantly improve my toolsets.  Two of the tools I use on new projects these days include Bootstrap for SASS and Breakpoint Slicer.  Both can be added to your SASS project with a 'require' line in the config.rb file and then @imported into your scss file.

Here's how each helps you:

Drupal 7 Panels Template Suggestion Tips

If you're doing any theming with Drupal, you'll undoubtedly want to implement template suggestions for some of your fields at some point.  Usually you'll have some undesirable formatting, especially in Panels panes.  This post at Drupal.org has a method of how to find the appropriate template suggestion for your panel pane by working in your template.php file with the Devel module and dpm().

Thoughts on building email templates

I've been making email templates in one way or another for about three years now.  At Acton Institute, we send out a lot of mailings to engage and inform followeres of our nonprofit.  In fact, sending emails is such a routine task for us that I helped automate our process back in early 2013 with a Newsletter Maker app.  The app's sole purpose is to create WYSIWYG content areas as text fields or text areas in a predefined HTML template.  Since it's coded in Rails, fun things can be done like iterating through header CSS in the template and putting it into t

Format Wordpress posts from the last week with better excerpts

At work we send a weekly newsletter that has a summary of our blog posts from the last week.  As our blog has grown, this task has started to take a lot more time to manually format each post title and excerpt.  Seeking to automate this process was a goal of mine, as our main post listing is not easily formattable into a newsletter text block without editing.

Making Wordpress and Drupal configuration files easier for development and production environments

At last year's Drupalcon in Denver there was an excellent session called Delivering Drupal.  It had to do with the oftentimes painful process of deploying a website to web servers.  This was a huge deep dive session that went into the vast underbelly of devops and production server deployment.  There were a ton of great nuggets and I recommend watching the session recording for serious web developers.

Keeping healthy as a gamer, computer programmer, or someone with a desk job

To begin, I would describe myself as all three of the things in the title of this post.  In the past I’ve struggled with weight and food cravings.  The main problem isn’t usually overeating if you have a sedentary lifestyle, but rather the fact that you aren’t moving, exercising, or eating as well as many others do.  If you’re active, you can usually eat a larger amount of food without gaining weight.

VirtualBox and creating virtual servers for web development

If you've heard of VMWare and virtualization, you might be confused when you visit VMWare and see 100 different products offered.  I know I am.  If you're a web developer and want to easily cut through the noise, use VirtualBox by Oracle.  It's an open source alternative for virtualization and it does pretty much anything you need as a web developer that wants to spin up an environment for testing on your own computer.  It also works on both Windows and Mac computers.