Adding a custom post type icon


show more Adding a custom post type icon provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress show less
please wait ...

Adding a custom post type icon

By default all new custom post types have the same default icon as the regular posts, but they don't have to. Using a simple batch of code along with some graphics, we can change the icons for each of the post types to further identify them as separate and different entities. To do this we first need some new icons. You can go online and you can find a free icon set and use that or you can make your own icons. The sizes change a little bit between the icons that are on the sidebar here and the icons that are larger in the actual view.

So you basically need to create one icon for the sidebar and one for the main view. If you gave access to the full set of assets for this course, I've created some icons for each of these three new post types and that's the ones we're going to hook in, but like I said you can use any icon you want. You just have to create the graphics for it. First we need to place the images that we're going to use into our themes folder. So I'll go t...

Adding a custom post type icon
Video duration: 5m 10s 3h 13m Advanced

Viewers:

Adding a custom post type icon provides you with in-depth training on Design. Taught by Morten Rand-Hendriksen as part of the Create an Online Portfolio with WordPress

Subjects:
Design Web
Software:
WordPress
Author:
please wait ...