-
This is a basic example of how to use AJAX in WordPress in the admin area. It shows how to take a variable from javascript, pass it to a PHP function (altering it slightly), and then pass it back to…
-
You may have code that relies on certain JetPack functions. If so, there’s a simple way to check if the module you need is enabled:
-
I added support for Jetpack Infinite Scroll on a theme of mine that uses Masonry recently. Since I couldn’t find any good code snippets or recommendations for how the callback should work I wanted to share a couple methods I…
-
Images are generally the heaviest assets on a webpage- so if you’re interested in fast load times for users, this is one of the best places to optimize. Lazy Load Your Images One popular technique for speeding up the initial…
-
Visual is a free theme designed to showcase photography, artwork and images in a neat masonry grid layout.
-
Update: Menu items now have the class “menu-item-has-children” that can be used for styling thank to this core ticket. So, the menu walker is no longer needed. I think it’s important to give users a visual cue when menu items…
-
Assuming you don’t want to use the TypeKit plugin, here’s how to enqueue the scripts directly from your theme: https://gist.github.com/devinsays/fb8bee935967cb673c40e854700a1569
-
I’ve built a couple themes where I’ve needed to give users more control over how the featured image is displayed for individual posts. The obvious place to put these options are in the thumbnail metabox itself. Display Thumbnail Landscape In…

