Support » Themes and Templates » Custom Page Template Not Loading Images or CSS

  • taralynnconnelly

    (@taralynnconnelly)


    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???

Viewing 1 replies (of 1 total)
  • Moderator Andrew Nevins

    (@anevins)

    The <link> URL should be something like,

    wp-content/themes/maya/indexstyle.css

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Page Template Not Loading Images or CSS’ is closed to new replies.