There is different ways to do it.
But here is my way. First create a new page. After that you need to create a custom template.
You can read about that here: https://developer.wordpress.org/themes/template-files-section/page-templates/
Simply create a new php file, name it page-landing.php.
Put this at the top of your file:
<?php /* Template Name: Landing Page */ ?>
And start coding your page.
After you done, save your php file and go to page you created. Click edit and choose “Landing Page” from available templates. Click update and you done.
Hi Ipq! I think that’s working for me, but my stylesheet and images aren’t showing up, even though they appear to be correctly linked. Is there a trick to this? Thanks very much for your input.
Can you share some code here, are you sure everything linked fine?
you link your stylesheet with functions.php or straight in header.php?
As mentioned in the original post, I don’t want to use the header.php and footer.php that the rest of the site is using, so I just put a regular <head> section in my custom landingpage.php file. My stylesheet is linked directly from this <head> section in the custom php. Not a good idea? Thanks again for your time.
I just put in <link href=”<?php bloginfo(‘template_url’); ?>/css/style.css” rel=”stylesheet” type=”text/css”> to my header section and it works. Still having issues with images showing up though.
I just put in <link href="<?php bloginfo('template_url'); ?>/css/style.css" rel="stylesheet" type="text/css">
to my header section and it works. Still having issues with images showing up though.
to link images try <img href="<?php get_template_directory_uri(); ?>/your-image.jpg"/>
Ha! I got it. Thanks so much for helping out today. I appreciate your time.