alexmansfield

Enabling SmartSlider3 Support for the Editor Role

By default, the SmartSlider3 plugin only allows administrators to create/edit/delete sliders. In many cases, administrators may want to grant editors the ability to manage sliders. To do that, the following code can be placed in the active theme’s functions.php file (or in a plugin). /** * Give editors access to SmartSlider3 * * @see: https://developer.wordpress.org/plugins/users/roles-and-capabilities/ […]

Enabling SmartSlider3 Support for the Editor Role Read More »

CSS Hover: Targeting Mouse Input and Ignoring Touch Input

CSS hover states are pretty obviously targeted at mouse inputs, but are applied in strange ways to touch inputs as well. Thankfully, all modern browsers now support input-based media queries. This allows us to apply our hover states only to devices that truly support hover states. Here is the code that makes it work: @media(hover:

CSS Hover: Targeting Mouse Input and Ignoring Touch Input Read More »