Ready to get started?Download WordPress


header on-click for subpages (8 posts)

  1. adunate
    Posted 4 years ago #

    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?

  2. adunate
    Posted 4 years ago #

    anybody have any ideas?

  3. DianeV
    Posted 4 years ago #

    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.

  4. adunate
    Posted 4 years ago #

  5. adunate
    Posted 4 years ago #

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

  6. DianeV
    Posted 4 years ago #

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

  7. adunate
    Posted 4 years ago #

    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.

  8. adunate
    Posted 4 years ago #

    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]
    # END WordPress

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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.