saltnpixels / ignition

The Starter Theme that Could
76 stars 13 forks source link

Issues creating a new page template #17

Open EllieMaffio93 opened 3 years ago

EllieMaffio93 commented 3 years ago

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

saltnpixels commented 3 years ago

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/