Add manually a new file / page on theme
-
Good morning Ben,
i have a little problem.
I want to create a page with title “Who we are” that explain some details about my website.
To move, i created a new file.php named WhoWeAre.php with this code:<?php get_header(); get_template_part( 'content/archive-header' ); ?> /*here i want to write all the details of the site */ <?php get_footer(); ?>
The only elements i’d like that appear on my WhoWeAre file are header and footer.
Then in the credit session of the foother.php i added an
<a href="">WHO we are</a>
tag and i would like that it point to the page that i previous created.I added the page-file inside the mission-news theme folder in the database via FTP.
My problem is that i’m not able to link the a-tag to the file. That’s to say i don’t know how to associate a permalink to the file that goes inside the database and catch the page i’ve created.
I tried to write the href in this way: “https://www.italy-press.com/WhoWeAre” but it doesn’t work. He recall 404error.php file.It would be more simple if i had simply created a new page in the backend section.
But i would like to learn how to do it manually, can you help me?
thank you very much, and sorry for inexperience.Christian
The page I need help with: [log in to see the link]
- The topic ‘Add manually a new file / page on theme’ is closed to new replies.