- This topic has 2 replies, 2 voices, and was last updated 8 years, 9 months ago by .
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
I want to create a custom landing page which has a different header than all the other pages.
I found this tutorial: Add Unique Header Image To Custom Landing Page Template for Genesis
in Point 1 it says:
Create a new file named page_landing.php using a code editor like Notepad++ and copy the PHP code from the view raw link into your new file. You can then upload the file to your child themes root directory and select it from the drop down menu in the Page Attributes when creating a new page.
I did create the file, pasted the code & uploaded it. But I still have the same 3 Template choices like before when creating a Site "Standardtemplate, Archive & Blog".
So I already fail at step 1... can anybody help?
Oh and by the way I use the Genesis Sample theme as a child theme
I am sure you must forgetting following code under <?php tag
<?php /* Template Name: Landing */
Add the above comment in your page_landing.php and then save the file and upload. After that go to you pages, and Page template and you will notice there 1 more Page template named "Landing"
thank you 🙂
Get free and premium Genesis Child Themes
Thank you for your answer.
It turns out I actually uploaded it to the wrong child theme, I had 2 in my folder and confused them.
So yes, in fact the code is working as described.
© 2023 WPEngine, Inc.