How Can We Help?

Attach custom header and footer for custom post type

You are here:

The feature is available in Marmot PRO version only. If you still do not have it you can upgrade your plan or get the premium version.

If you have created custom post type for your website you have the ability to assign and display header and footer sections different than the main ones, created specially for the custom post type.

 

 

Firstly you have to create the particular header and/or footer templates, then you need to assign that templates to the custom post type’s settings. In order to assign the templates simply navigate to admin dashboard -> Appearance -> Customize.

In the main customizer menu find your custom post type section. In our example we have created custom post type for Projects. Click on it and you will find two inner sections – for listing and single pages. In order to assign a particular header and footer for custom post type archive pages (main listing, taxonomies listing) click on the Listing section and assign Header and Footer template. 

If you want to assign a particular header and footer for custom post type single pages (details page) click on the Single section and assign Header and Footer template. 

Related Articles​

Next Create archive and single page templates for custom post type

Leave a Reply

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

Table of Contents