Have you noticed that when you browse many popular sites on mobile, the color of the address bar in your browser changes to their brand color? Take a look at GitHub on your phone, the address bar in your browser will be black. Head over to the BBC News website and the address bar will be their iconic deep red. If you're reading this post on your phone you'll probably notice … [Read more...] about Change the Mobile Browser Address Bar Color to Match Your WordPress Site
Snippets
Add Custom CSS to the WordPress Admin Area
We all know that adding custom CSS to the WordPress frontend is easy - you can just add it in the customizer or in the style.css file of your child theme. You may have noticed though, any CSS you add in these ways isn't applied to your WordPress backend. So how do we style the admin area of our site? Well, it's pretty darn easy, and just requires a little snippet, which … [Read more...] about Add Custom CSS to the WordPress Admin Area
Allow SVG Upload in WordPress Media Library
Out of the box, WordPress doesn't allow you to upload SVGs through the Media Library. This is mainly because SVGs can pose a security risk, as it's possible to hide malicious code in an SVG file. However, as long as you know that any SVGs you want to upload are safe, there won't be any risk. It's really easy to allow SVG uploads in your WordPress Media Library, and all it … [Read more...] about Allow SVG Upload in WordPress Media Library
Limit Number of Post Revisions in WordPress
You may have noticed whilst writing posts on your WordPress site that WordPress automatically saves old versions of your post, called post revisions. These post revisions allow you to basically undo changes, by reinstating an older version of the post. Pretty handy! However, by default WordPress saves an unlimited number of revisions, meaning that if you edit a post often, you … [Read more...] about Limit Number of Post Revisions in WordPress
Change the WordPress Author Permalink Base
By default, WordPress sets the URL for author profiles as: yoursite.com/author/name But what if you want to change "author" to something else, like "profile"? So that it looks like this: yoursite.com/profile/name The good news is, you're just a little code snippet away from achieving just that: function snippetpress_author_slug() { global … [Read more...] about Change the WordPress Author Permalink Base