WordPress.org

Support

Support » How-To and Troubleshooting » header on-click for subpages

header on-click for subpages

  • I needed to change the URL to which my header on-click is linked. I did so in header.php. It changed the homepage header fine. But it didn’t change the subpage header on-click. They still link to the old URL.

    I’ve done a search for the old URL through my WP folder and cannot find it in any files. Does anyone know where else I need to make this change?

Viewing 7 replies - 1 through 7 (of 7 total)
  • anybody have any ideas?

    This almost sounds like you have two headers, as most themes have only one — and if you’d linked to a page in the header file, then that would be applied to the entire site.

    Otherwise, without more information, we’d just have to make guesses here.

    Here’s my blog.

    This mixup happened when I changed the name of my URL from “…/portfolio/” to “…/blog/.” This meant I had to change the the name of the WP folder. I used the Search/Replace plugin to find all the “portfolios” and replace them with “blog.” This actually worked pretty swift.

    However, there’s this one last portfolio hanging in there somewhere and I can’t seem to find it. I’ve removed the header photo and then put it back in. I’ve taken out the link and put it back in. But these changes only affect the homepage. The subpage hearder seems to be working from somewhere else.

    I’ve checked the subpage URLs. They use “blog.” However, the header does not. When I click on it, it takes me back to a “portfolio” URL.

    Diane, you’re right. There obviously are two headers set up. Do you know how/where I can find the subpage header?

    It seems like this would be in header.php … no?

    Seems like it. Yes. But apparently it’s not. When I make any changes in header.php it only affects the homepage header. It does not affect the subpages.

    I finally found the elusive “portfolio” name. It was in the .htaccess file, which I needed to fix for another glitch.

    To do so: I went into my ftp program (in my case Dreamweaver), revealed my hidden files and found the .htaccess. I actually had to do a search for it because it doesn’t show up.

    Then I replaced all the contents in this file with the following, which is listed here, under “creating and editing .htaccess.”

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    </IfModule>
    # END WordPress

    In my case, “blog” is the new name of my WP file folder and replaces the old “portfolio.”

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘header on-click for subpages’ is closed to new replies.
Skip to toolbar