Reputation: 780
A friend asked me to create a webpage for their wordpress website. I've created the page using raw HTML, CSS, and Javascript. However, when I log in to their wordpress account online I cannot figure out how to upload the file or even make a link to it?
Help would be appreciated. Thank you so much.
NOTE I don't know if this helps, but they are also using SEO Yoast
Upvotes: 1
Views: 1682
Reputation: 752
Go to the theme directory: /wp-content/themes/yourtheme/
Create a file here which will be your custom page template, e.g: customtemplate.php
Start the file off with the following, which will allow you to select this template from within WordPress: <?php /* Template name: Custom Page */ ?>
Create the WordPress loop if needed (this will allow whatever you type in the admin to display on the website):
<?php
if ( have_posts() ) {
while ( have_posts() ) {
the_post();
} // end while
} // end if
?>
Now from the page edit screen on the right, select TEMPLATE - and choose your template name, as defined in step 3.
Upvotes: 1