One of the advantages of using a MultiSite in WordPress is that plugins can be shared between sites and enabled on a per site basis. This makes for easier plugin and theme updates for the whole network. But what about cases when you don’t want the plugin to be available for all sites in the …Continue reading
WordPress
A Plea for Separate Functionality in Niche Themes
The idea of “niche themes” has become very popular in recent years. There are themes geared to doctors, real-estate agencies, restaurants, churches, and just about everything else. To me this seems logical. No one wants to have to research how to best set up a WordPress installation for their “niche.” A law firm, for example, …Continue reading
Allow HTML code in WordPress tagline
Maybe its just me but I always feel like the site description or WordPress tagline begs for some styling. Here’s an easy one to use as an example*: The Future’s Bright. The Future’s orange In order to output the Tagline most themes use the get_bloginfo() function, esc_html( get_bloginfo( ‘description’ ) ) or just get_bloginfo( …Continue reading
Responsive Images in WordPress with RICG
UPDATE: This plugin has been proposed to be merged into WordPress core for version 4.4. Please offer your feedback if you use this plugin. We all know by now that responsive web-design is important as there is increased viewing on non-desktop devices… Most of us know that it is not just a question of how …Continue reading
Force SSL for WordPress Media Attachments
Case scenario: you have certain pages on your site that force SSL but not all. You notice that the culprits (i.e. pesky buggers that are still being served using http://) are all coming from the uploads folder and are in the media library. https://gist.github.com/d81af526fa6b6f2808f9 Cheers to the anonymous Ludovic who came up with this seemingly …Continue reading
Cleaning up Formatting Shortcodes
There are many reasons not to like Visual Composer or any other plugin that uses shortcodes for formatting purposes in the WordPress content editor. One of them is that it can be a lot of work cleaning up the mess of shortcodes that they leave if you ever decide to deactivate the plugin. But how …Continue reading
Multisite and the dreaded /blog/ slug base
When dealing with sub-sites in multisite and using sub-folders, individual sites are given the following permalink structure: http://www.mydomain.com/blog/sample-post/ In some contexts this makes a lot of sense but in others the user might want to get rid of the /blog/ in the slug. Where does this “blog” come from? The string “blog” is hardcoded into …Continue reading
Building Custom Forms in WordPress
Whether sent via email or stored in a database, for login, or a subscription to a newsletter, a form is an essential part of every website. For anyone just learning HTML, forms are where it starts to get tricky and PHP without forms wouldn’t be much of a language. The trouble with forms isn’t that …Continue reading
Requiring Plugins for WordPress Custom Themes
One of the chief difficulties in separating functionality and style is that there is no longer a nice “package” to present to a client. When handing off the custom theme there needs to be some detailed explanation about required plugins and installation, and setup of these plugins is a time consuming and onerous task. With …Continue reading
Functionality for WordPress Custom Themes
When I first began working with WordPress my approach to custom themes wasn’t much different from my approach to any single site. My first WordPress custom themes weren’t much different from the HTML/CSS sites I had previously built using php includes. I used WordPress functions to display dynamic elements but rarely used plugins. I’m not …Continue reading