Forums

[resolved] "home" page doesn't display (7 posts)

  1. barbturner
    Member
    Posted 2 years ago #

    hi. new to this. and not a code poet.
    everything is going fine, except the page i made for "home" in wp, with the web address
    dreamtherapyseattle.com wont overwrite the old landing page that i had up before finding wp.
    my other pages, like the "about" page and the blog page display fine, but if you click on home from one of those two pages, you get the old page, and not the "home" page i've created in wp.

    "home" page in my wp editor has the permalink listed as http://www.dreamtherapyseattle.com which should be correct, but wp does not display, does not overwrite the preexisting material there.

    here's a link to get to the wp functioning part of my site, incase it helps. http://www.dreamtherapyseattle.com/a-to-z.

    i want to overwrite my old landing page with a new wp page.
    what do i do to fix it? thanks! barb.

  2. richarduk
    Member
    Posted 2 years ago #

    Your website under your domain name usually has an index page, perhaps index.php

    This would normally display your front page when someone types in your domain name.

    WordPress however has the following index.php code, which calls wp-blog-header.php which in turn loads up your theme.

    Your theme is buried away in the bowels of wordpress :-)

    It sounds as if the index.php mentioned above hasn't actually been overwritten. The code should look like this:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('./wp-blog-header.php');
    ?>
  3. barbturner
    Member
    Posted 2 years ago #

    ok. so im apparently more illiterate than i thought.

    can i just copy and past all, or which part, of what you offer here someplace? and if so, where? in the code of the "home" page?

    sorry for my ignorance! and thank you for the help!

    or maybe i should just pay someone to help me get it up and running properly?

  4. richarduk
    Member
    Posted 2 years ago #

    If you've got FTP access (i.e. you can upload files) then go to index.php in your root (NOT in your theme) and view it.

    That means you'll have a folder called something like public_html, and in that folder will be wp-config.php, wp-feed.php, wp-load.php and a bunch of other files including index.php

    It's this index.php that you want to look at. It should contain code identical to the code I pasted above, so yes, paste it all in (having saved what was originally there in case it doesn't work and you need to go back to how you were).

  5. barbturner
    Member
    Posted 2 years ago #

    ok! that i can do. thanks richard!

  6. barbturner
    Member
    Posted 2 years ago #

    ok! learning curve!
    code was perfect, same as what you provided, so i deleted old landing page off server, (perhaps i should have done that first?) and now its loading! fab!
    thanks for your help!

  7. machinesleet
    Member
    Posted 1 year ago #

    hello all, this was the closest thread i could find to my problem.

    essentially i would like my domain name 'www.example.com' to display my homepage which is located in 'www.example.com/wordpress'

    my files on the server are located in the web/content/ directory of my server, which is where i am instructed by the server to publish the files.

    one idea i had was to put everything from the wordpress folder in to the web content folder but perhaps the folder 'wordpress' needs to be there for directions etc

    any help much appreciated

    thanks

    mike

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags