ignition icon indicating copy to clipboard operation
ignition copied to clipboard

Issues creating a new page template

Open EllieMaffio93 opened this issue 5 years ago • 1 comments

Hi! I started working with your theme a few days ago. I read the documentation, but it seems I can't make WP recognize my homepage template. I created _homepage.php into the parts folder, but Ignition doesn't seem to notice it. When I go into the new page's backend and try to select my template in the "page attributes" section, I don't find it there. All I can see is Default, Sidebar Left and Sidebar Right. Same thing happens for mi sccs file which I named _homepage.scss (in parts folder). It's like Ignition doesn't see it.

I really appreciate your help in solving this issue, I'm sure there must be something stupid I'm missing!

Many thanks,

Eleonora

EllieMaffio93 avatar Nov 17 '20 10:11 EllieMaffio93

Underscored php files are just auto included into functions.php

To create a page template you need to make a regular php file, no underscores, with the Template name attributes. See the sidebar left or right files for examples on how that works.

Read up on WordPress on how to make page templates. https://developer.wordpress.org/themes/template-files-section/page-template-files/

saltnpixels avatar Nov 20 '20 16:11 saltnpixels