Custom Page Template Not Loading Images or CSS (2 posts)

  1. taralynnconnelly
    Posted 3 years ago #

    I am in the process of customizing a WordPress ecommerce theme and want to use a custom HTML home page until the site is done.

    I created the HTML file and uploaded it here to test.
    And everything worked beautifully.

    Then I created comingsoon.php, using the exact same html, only specifying the Template Name in the introduction php. I changed the home page to use this template and everything worked great, except it did not load any of my images or my style sheet.

    I figured it was something to do with my file paths, so I tried using the full URL of the image. No luck. Then I tried specifying its location in the theme folder using <?php bloginfo('template_directory'); ?> but still had no luck.

    What's especially weird is that using inline CSS does not work. In fact, when I view my page source in Chrome or Firefox this inline CSS does not even display. But it is there in the theme editor.

    How can I correctly link to these images and get my style to work???

  2. Andrew Nevins
    Forum moderator
    Posted 3 years ago #

    The <link> URL should be something like,


Topic Closed

This topic has been closed to new replies.

About this Topic