• Hi There!
    I’d like to incorporate a custom page into my WP site, but I do *not* want to pull the regular header and footer, as I don’t want the navigation and design associated with it. How do I create a special header and footer to use just for this landing page? Thanks very much for your time!
    Bill

Viewing 9 replies - 1 through 9 (of 9 total)
  • 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.

    Thread Starter roadstardesign

    (@roadstardesign)

    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?

    Thread Starter roadstardesign

    (@roadstardesign)

    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.

    Thread Starter roadstardesign

    (@roadstardesign)

    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.

    Thread Starter roadstardesign

    (@roadstardesign)

    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"/>

    Thread Starter roadstardesign

    (@roadstardesign)

    Ha! I got it. Thanks so much for helping out today. I appreciate your time.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Alternate Header & Footer’ is closed to new replies.