Mai Lifestyle Pro, a popular Genesis child theme, supports banner areas after the header. Banner areas with banner images — much like featured images — can add interest to a post and provide subliminal context. However, the default behavior of the banner area presents a potential problem. Namely, if you want to display the banner area on only some posts, there’s no quick and easy way to hide the banner area from the posts on which you don’t want it to appear. But there’s a solution, involving just a few lines of code.
Code snippets I want to have handy. You might, too.
This is a repurposing of an earlier blog article, First Look at Foo Gallery. I wanted to make it easy for people to find this solutions for making FooGallery and Responsive Lightbox by dFactory work together.
Instructions for displaying a tag cloud as a list in WordPress and WooCommerece.
Sometimes I want to see all the constants I have defined. Here is some diagnostic PHP I use for displaying all user-defined constants.
Sometimes I want to see all the user-defined functions that are in memory when a page loads. Maybe the page doesn’t need certain functions and I can realize performance improvements by removing them. And sometimes — I’m being candid here — I copy functions from one application into a library file for another and don’t need any of them for the current application. This function, offering some diagnostic PHP, helps.
Sometimes when developing, it’s helpful to echo some diagnostic information to the screen. Here’s some simple diagnostic PHP I use for displaying all included files.
If you’re a developer like me who builds custom database-driven Web sites and Web applications, you don’t necessarily create a user-maintainable content management system (CMS) for absolutely everything you build. In this article, I’m going to show you a simple and practical low-tech solution for adding content from your clients for database-driven content for which you did not build a CMS. The only tools you need for this solution are Microsoft Excel and SQL (in my case, the MySQL flavor).
In this article, I’ll share a custom PHP shortcode function I use for my non-WordPress Web sites to improve their maintainability. This function mimics the WordPress shortcode feature.
CSS3 supports multiple backgrounds for an element. There are lots of resources on the Web that tell you how to do it. It’s actually remarkably easy and intuitive. And most modern browsers support multiple CSS backgrounds.
What I want to do here is show you why and when you might want to try this.