WordPress.org

Forums

[resolved] Reset site url and lost front page (3 posts)

  1. therealjb
    Member
    Posted 6 years ago #

    New to wp...

    Installed a few days ago, modified theme, uploaded content - jobs a good 'un.

    Today, trying to change the 'home' link to go the my actual site home, not blog hom - changed wrong setting! (woops!)

    So I added this to my theme functions.php

    'update_option('siteurl','http://example.com/blog');
    update_option('home','http://example.com/blog');
    '

    and reset itto the correct URL, and now everything works except for the front page...

    http://www.mother-ship.com/blog

    even the right hand navigation doesn't load.

    Can anyone help?

  2. therealjb
    Member
    Posted 6 years ago #

    ps - when i reset the theme to default or classic, the content is there -

    so i tried uploading the theme again, and using that one but the content is still missing...

  3. therealjb
    Member
    Posted 6 years ago #

    Thanks any way guys,

    I uploaded each file over a new theme installation one by one, it was my index.php, I'd put a piece of code in the wrong place (and looks like I hadn't noticed it fail til after the loss of the url)

Topic Closed

This topic has been closed to new replies.

About this Topic