I’ve been using this plugin for a while now and thought I should share what I’ve come to learn is an absolute treat of a plugin! I don’t often use plugins, let alone endorse them but for me metabox.io is an essential tool when creating complex customer WordPress sites, it’s really easy to use and…
So I know this has a ton of coverage on Google, but I thought I would add my own post on the subject as I use this blog as my own reference (which is the entire reason I created this site) with a few examples. Let me give you a quick breakdown of how a…
First select the wp-content folder and give it your chosen name (assets, stuff, content…) For this example I’m going to name it stuff. With that done, open your wp-config.php file and add the four lines below, above the require_once(ABSPATH . ‘wp-settings.php’); line at the bottom of your file. With this done all files uploaded will…
To add some custom styles to individual category pages you can use this snippet to add a body class to our posts. functions.php
So you want to customize the look of the default wordpress login page, first thing to do is add this to your functions.php Then create a new CSS file and save it within your theme folder in a folder called login. custom-login-styles.css Now you’ll just need to add a few images to complete the transformation.…
When you’re making a site responsive you don’t want images to have a set width and height, so to remove these from your them you will… Add this to your functions.php
So you’ve created your theme and you would like to switch to using a CDN for your scripts and CSS… Add this to your functions.php and replace the YOUR-SITE with the urls of the website and the CDN.
Lets create a folder called /meta/ and place it within our theme folder. This will hold our meta.php, meta.css and any cpt meta file. So I’m going to presume you’ve got your custom post type created and you need to add some meta boxes which will hold specific content for the cpt. This is how…
I use this a lot, using a body class to insert stuff is awesome. Whether I’m using it to insert some HTML, control some CSS or including a relative file to a existing page. This also helps when having sites with multiple plugins can effect the performance so by simply adding a body class to…
Adding Widgets to your theme Open your functions.php then find or add the register_sidebar function. Then to display the widget area in the theme, because we’ve created a footer widget let’s include this call where it should be displayed. Adding new image sizes: In your funcions.php To display these in our theme. For example if…