• Hi!

    I was wondering how to add a custom page template to an existing theme. I am currently using the SinglePage 1.3.7 Theme and I want to add a Landing Page which I have built. The landing page consists of the Index.html file, JS and CSS.

    I am confused about how to add it to my theme. Can I do it online or do I have to do it offline and then upload it with ftp client?

    Thanks in advanced!

Viewing 1 replies (of 1 total)
  • Hello!

    Here’s one way to add your custom page to your theme:

    • First create a child theme
    • Create a custom page template in your child theme and put your HTML code in it
    • Copy header.php and footer.php from your parent theme into your child theme
    • Put your stylesheet and javascript files in your child theme
    • Link the stylesheet in header.php and your javascript in footer.php. (These php files will override the corresponding parent files.)
    • Activate your child theme
    • Create a new page in WordPress and set its template to your new custom page template

    Ideally you would have your WordPress site running locally and perform all of the above steps locally before copying to the server. But you can do the same thing directly via FTP. You just run the risk of making a mistake and causing your site to crash. ??

    Hope that helps! ??

Viewing 1 replies (of 1 total)
  • The topic ‘Adding Single Page to Theme’ is closed to new replies.