Creating new page types in a theme

Re: Creating new page types in a theme

by Richard Oelmann -
Number of replies: 0
Picture of Core developers Picture of Plugin developers Picture of Testers
I don't think you can create a new page type, but what I have done in the past is to use a conditional statement based on the page type
If pagetype = enrol-index { do this code }
else { do standard incourse layout code }

OR
If the changes can be done in css, rather than needing html/php changes, then you can just use the body class created by the page type. You can do a lot with bootstrap by overriding the css, including layouts smile