WordPress.org

Forums

[resolved] [NSFW] Using a Splash page, cannot load the css (10 posts)

  1. starrlo
    Member
    Posted 2 years ago #

    So I have been using a "BeautySite" theme and am going to continue using it. I have created another page I've labeled as splashpage.php and also a secondary css which is named splashpagestyle.css For some odd reason the css isn't being read/displayed onto the webpage when I open the splash page. I believe I have all the links in order. I've checked the coding and validated it, I'm even able to run the splashindex.html in Chrome and it shows perfectly! What code might I be missing or is incorrect? I'm fairly new at this so, please dumb-it-down a little. Lol!

  2. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Can you link the webpage with the issue?

  3. starrlo
    Member
    Posted 2 years ago #

    Here is what the splash page looks like at the moment:
    http://starrlobabyy.com/home-page/?preview=true&preview_id=940&preview_nonce=b20e1a50cf

    It's terrible!

  4. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    I'm sorry, we cannot view that page.

  5. starrlo
    Member
    Posted 2 years ago #

    [NSFW] http://starrlobabyy.com/home-page/

    It's kind of an adult site, btw.

  6. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    That's okay, we just mark them at NSFW - Not Safe For Work.

    How are you referencing the stylesheet? See this thread http://wordpress.org/support/topic/proper-way-to-link-to-the-stylesheet

  7. starrlo
    Member
    Posted 2 years ago #

    This what I have in the header section of splashindex.html:

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>★ StarrLo Babyy ★</title>
    <link href="splashstyle.css" type="text/css" rel="stylesheet" />
    </head>
  8. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    Try this instead of your <link> tag:

    <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/splashstyle.css" media="screen" />
  9. starrlo
    Member
    Posted 2 years ago #

    Oh That worked!
    Thank you so so so much!

  10. Andrew
    Nuh uh moderator
    Posted 2 years ago #

    You're welcome :)

Topic Closed

This topic has been closed to new replies.

About this Topic