• Hi,

    I am looking to create a custom wordpress page which has nothing to do with the blog’s theme. It is a separate HTML and CSS based page.

    Here’s what I have done so far : –

    1. Created a test.php file with the template code at the top and then the HTML code which has link to the stylesheet.

    2. Uploaded the test.php to the theme folder.

    3. Uploaded the corresponding stylesheet and images folder to the theme folder.

    4. Logged in to WP admin, created a new page with a title and saved it under the test template.

    The template code which I mentioned I used in Step 1 is the following :-

    <?php
    /*
    Template Name: test
    */
    ?>

    Also, since the theme folder already had a folder named ” images ” and a stylesheet named ” style.css ” , I changed the name of the images folder for the test page to images1 and the stylesheet name to style1.css. I also made the corresponding changes in the test page code.

    Now, the problem is that the custom page doesn’t call the stylesheet. It comes up as a plain HTML page without any design or images.

    Can you help me resolve this issue ?

    Thanks,

    Abhijeet

Viewing 2 replies - 1 through 2 (of 2 total)
  • I am looking to create a custom wordpress page which has nothing to do with the blog’s theme. It is a separate HTML and CSS based page.

    Install the Page Links To plugin. Then, create a Page, that ‘redirects’ to your ‘separate HTML CSS based page’.

    Abhim, I was trying to come up with the same result as well with no success. I created a custom page template with html then created a corresponding style sheet but all that published was the html. Michael’s response seems to be a janky fix, so if you have come up with the solution please let me know, thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom WordPress Page Template Problem’ is closed to new replies.