WordPress.org

Ready to get started?Download WordPress

Forums

changed blog name and url: need to find post files (8 posts)

  1. adunate
    Member
    Posted 4 years ago #

    I needed to change the URL of my blog, therefore had to change the name of the file folder in my root directory. I changed the folder name from http://www.adunate.com/portfolio/ to http://www.adunate.com/blog/.

    In Dreamweaver, which I use as my ftp, I did a find/replace for the word "portfolio" and replaced it with "blog." After a lot of headache, this now seems to work, with two exceptions:

    The image coding in each post is still trying to draw from "portfolio." It would be a lot of work to manually change each of them to "blog." I'd like to do a find/replace of the posted files like I did the other files. Anyone know where I can find these?

    Also, I have the header linked as the blog homepage. I changed the URL in the header.php (see below), but it still is trying to draw from the "portfolio" file. Do I need to change this in another place as well?

    <div id="header" onclick="location.href='http://www.adunate.com/blog/';" style="cursor: pointer;">

  2. Taylor Dewey
    Member
    Posted 4 years ago #

    The biggest thing that needs to get changed is your SQL file -- where all your posts are kept. WordPress "hard codes" the paths to your images.

    Probably the most user-friendly way to do this is through the use of a plugin. Search WordPress extend for "database search and replace" or similar.

    your header image seems to be fine, when I look at it.

  3. Taylor Dewey
    Member
    Posted 4 years ago #

    I'm pretty sure I've used this plugin before. You can also export a copy of your SQL file using phpMySQL, do a find and replace, then restore the database.

  4. adunate
    Member
    Posted 4 years ago #

    Thanks Taylode for the plugin suggestion. I'll give it a try.

    As for my header, yep, it's there. But when you click on it, it doesn't take you back to the home page. It takes you back to "portfolio."

  5. Taylor Dewey
    Member
    Posted 4 years ago #

    It doesn't look like your "onclick" got changed everywhere. On the home page the "onclick" takes you to /blog (which is moot since you are already there) and on internal pages it takes you to /portfolio -- means you need to change the code somewhere else too.

  6. adunate
    Member
    Posted 4 years ago #

    Yep, that's what I'm asking. Where do I need to change the code? I already changed it in the header.php but there must be somewhere else I need to as well.

    On the other hand your Search and Replace plugin is a charm! It worked so easily. After installing the plugin, you can make changes right from WP Settings. Thanks so much!

    Now I just need to fix that header and I'm set. This turned out to be an all day thing. But it's coming now, thanks to you!

  7. Taylor Dewey
    Member
    Posted 4 years ago #

    Check your theme files, specifically archive.php, category.php, and single.php to ensure that the header isn't duplicated there for some reason.

  8. adunate
    Member
    Posted 4 years ago #

    Thanks Taylorde for your diligence in trying to help me. I'm at a total loss. I did a search for "portfolio" through the whole blog file and it came up with nothing.

    I also deleted and reinstalled the header but it only affected the homepage. The subpages still had their header. Ach. I'm going to post this as a separate question.

    Thanks for your help otherwise. I'll consider my search/replace question resolved.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.