• 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 https://www.adunate.com/portfolio/ to https://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=’https://www.adunate.com/blog/&#8217;;” style=”cursor: pointer;”>

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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.

    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.

    Thread Starter adunate

    (@adunate)

    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.”

    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.

    Thread Starter adunate

    (@adunate)

    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!

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

    Thread Starter adunate

    (@adunate)

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘changed blog name and url: need to find post files’ is closed to new replies.