functions.php

Various Functions

How to include javascript or jQuery:

This script loads all javascript and jQuery so that they don’t conflict with each other. You don’t have to include those scripts tags in the footer or header anymore. It is all done here.  You can add more by copying and pasting more where it says.  You just have to change the path to whatever the new file is and the two terms have to match, but can be anything.

Register Nav menus:

 

Custom Post Types:

 

Custom Taxonomies:

Line 9 – Name your taxonomy, and tell it which Custom Post Type to attach it to.

Line 17 – you can name a custom slug/url

 

Adding Custom Image Sizes:

 

Featured Images:

to use featured images, you must have this in the functions file:

 

Login Logo and Link:

 

Leave a Reply

Your email address will not be published. Required fields are marked *

1 + 2 =