WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. taralynnconnelly
    Member
    Posted 1 year 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.
    http://www.ruffnyc.com/landing/index.html
    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.
    http://www.ruffnyc.com

    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
    Forum Moderator
    Posted 1 year ago #

    The <link> URL should be something like,

    wp-content/themes/maya/indexstyle.css

Topic Closed

This topic has been closed to new replies.

About this Topic