Quantcast
Channel: Web Design Weekly
Browsing all 10 articles
Browse latest View live

Text Input Non-Editable

If you ever need to make an input field or text area non-editable the readonly attribute comes in very handy. When the readonly attribute is present in the markup, it specifies that the user will not...

View Article


Lazy Loading Images for Flexslider

Flexslider is one of the most used sliders, for good reason. This snippet helps lazy load your images. In order to create a perceived performance for users, we as authors shouldn’t allow the loading of...

View Article

Load a Different Header in WordPress

This little snippet can come in handy when you need to serve a different header on a per page basis. All you need to do is create a new header file – header-yourfilename.php and then put in some logic...

View Article

URL as a Sass Variable

Do you ever find yourself trying to remember the URL path of you images directory? Well with Sass you can quickly add the path to the desired location and just use the variable throughout your code....

View Article

Linking to an Image Folder Within a WordPress Theme

During WordPress theme development you will more then likely need to display some images that are located within your theme directory. The location of the images folder can vary greatly. It really...

View Article


Sass Clearfix Mixin

There are a few ways to implement the clearfix hack but the following Sass Mixin has been in my toolbox for the last year thanks to this article on Nicolas Gallaghers blog. Usage: The post Sass...

View Article

How to change the Input Font Size based on Text Length

Recently I had a great conversation with an outstanding User Experience designer about a few interactions on a project we were working on. One of the points we talked about was, what should happen when...

View Article

Force Up and Down Arrow for Number Input

Those with a keen eye will notice that the up and down arrows for the number input doesn’t show up in Chrome (and some other WebKit based browsers) until you hover or are focused on the input. To force...

View Article


Recent Post Shortcode

WordPress shortcodes are a simple way to set up functions to create macro codes for use in post content. For instance, the following shortcode (in the post/page content) would add your recent posts...

View Article


Add Class To Body If JavaScript Is Enabled

This snippet is super small but is super handy. It detects to see if JavaScript is enabled on the users browser. If yes, a class will be added to the <body> tag Adds the class yourClassName to...

View Article
Browsing all 10 articles
Browse latest View live