Results 1 to 4 of 4

Thread: unable to publish

  1. #1
    Join Date
    Mar 2013
    Posts
    2

    Default unable to publish

    I tried to buid a page with WP, but then decided to see what could be done by writing some simple code myself (with a lot of online help...,

    I've vacked up the WP page, and uploaded my 4 files. Renamed the front page index.html, placed it in the public_html root folder, and renamed the WP index.php index phpOLD

    Nothing works: the style.css is not being used; of 3 images only one shows.

    I guess that I should have got rid of WP altogether (temporarily) and split up the main page (now index.html) which is below.

    Help!!!

    <!DOCTYPE html>
    <html>
    <head>

    <meta charset="utf-8">
    <title>Page Title</title>

    <link rel="stylesheet" href="/public_html/Pinto/style.css">

    </head>


    <body>

    <div class="page">

    <header>
    <img title="Pyramids" alt="Egypt" src="public_html/Pinto/images/egypt.jpg">
    <h1>The title that is to come</h1>
    </header>

    <div class="maincontent">
    <section>

    <h2>Page Title</h2>
    <p>Lorem ipsum dolor sit amet, me naufragus ait est cum unde ascendit. Christe in rei finibus veteres hoc puella mihi esse in rei finibus veteres hoc. Stet consequat eiusdem ordo quos ducem. Bene dictis voce clamore fit ecclesiam consuetudinem viginti. Denique laetare quod tamen ait mea vero non dum!</p>
    <img title="Llamas" alt="Llamas" src="public_html/Pinto/images/llamas.jpg">
    <img title="Sydney" alt="Sydney" src="public_html/Pinto/images/sydney.jpg" style="float:right">
    <p>Lorem ipsum dolor sit amet, scio haec vidit ad nomine Maria non dum miror puella. Lorem ipsum dolor sit amet, est se vero rex Dionysiadi Apollonius mihi cum. Litus Ephesum iube meae sit audivit per, vestem deprecata dum est Apollonius in rei exultant deo.</p>
    <br><br><br><br><br><br><br><br><br><br><br><br>
    </section>
    </div>

    <div class="sidebar">

    <nav>
    <ul>
    <li class="lh">Menu</li>
    <li><a href="#">Privacy Policy</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    </ul>
    </nav>

    <div class="loginarea">

    <form>
    <div>
    <label for="IATA">IATA number or acceptance code *</label>
    <input name="IATA" id="username" type="text">
    <label for="username">Username:</label>
    <input name="username" id="username" type="text">
    <label for="password">Password:</label>
    <input name="password" id="password" type="password">
    <input type="submit" value="Login">

    <a href="#">Forgot Password?</a><br>
    <a href="#">Sign-up</a>
    </div>
    </form>

    </div>

    <nav>
    <ul>
    <li class="lh">Something</li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    <li><a href="#"></a></li>
    </ul>
    </nav>


    </div>

    <footer>
    <ul>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    <li><a href="#">Link</a></li>
    </ul>
    </footer>

    </div>

    </body>
    </html>

  2. #2
    Join Date
    Apr 2007
    Posts
    11,500

    Default

    It looks like you've tried to take a static HTML page and use it as a WordPress homepage. That's not going to work since WordPress is written in PHP. If you check the WordPress Codex site, they teach you how to write individual pages for WP.

    It's not reading the stylesheet because the path is incorrect. Remember WordPress themes are installed in a different place on your server so the file path would need to be altered.

    Here's an article that may help you understand how WP files are generated.

    http://codex.wordpress.org/Templates

    You're trying to treat WordPress as an HTML site and it's not really best used for that. Any reason you don't want to just use the WordPress interface to create your pages? You can still create static pages, but it's best to use the "Pages" feature.

  3. #3
    Join Date
    Mar 2013
    Posts
    2

    Default

    Thanks

    In fact, what I am doing now has nothing to do with WP, and I've found where the problem was.

    Thank you

  4. #4
    Join Date
    Apr 2007
    Posts
    11,500

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •