This was a snippet I grabbed off of tutsplus! I’ve found this super useful when I’ve been creating customer themes to give a menu item a higher priority in regards to it’s use in the theme. functions.php
Because we’re using the sticky posts for the carousel we’ll need to create a new page template with a loop that’ll exclude the sticky post from the output. So… Lets begin by creating a new page template for the blog posts. Blog-page-template.php Create a new document and call it blog-page-template.php with that done we’ll need…
I’m using the built in mail function that wordpress has, so this will use the default email set in the “General Settings” the email used for the receipt of notifications. So to begin we need to add our mail script to a new file “mail-function.php” then use an includes(); above everything else in the header.php…
In part 3 we’re adding our second CPT and we’ll also add some more of those handy metaboxes. The portfolio functionality is provided by code supplied by codrops which I’m modding to work with WordPress. That article covers adding a “thumbnails grid with expanding preview” , which is similar to the image gallery that google…
I’m going to show you how easy it is to build a single page portfolio theme for WordPress. Something I’ve been meaning to do for a while now, I thought that since I’ve recently released my starter theme on GIT it would be a perfect time to finally complete this post! So without further ado…
Sticky headers have been popular for quite a while now, I think this is due to the increase in mobile traffic to websites. As pages become narrower they also become much longer, so a sticky-nav is quite a nice thing. I’m sure that there are quite a few of these tutorials online, but for me…
A nice way of adding next and previous post navigation with thumbnails and a short excerpt. I’ve created a file that you can just add into your theme folder and call in your actual theme with this include snip; If you want to download my file then click here, otherwise you can copy and paste…
So there are plenty of plugins available if you just want to add breadcrumbs to your theme, but if you want something a little lighter then you could just add this to the theme functions.php. This adds a simple breadcrumb to your theme. THIS HAS BEEN RECENTLY UPDATED, I WISH I COULD REMEMBER THE ORIGINAL…
I often want to use a custom excerpt length in my themes. Custom excerpts can be really useful whether they are being used for the archives, home page or even when being used in meta description! Being able to add just the right amount of copy to a section is easy with this snippet. New…
Since WordPress version 3.4, there has been a rather underused theme customizer, which allows the end user to view any changes made to the theme in a window next to the customizer! Now that’s super cool. You can grab this options.php page from the WPtricks starter theme on GitHub, along with a contact page template,…