• Resolved mikeyv

    (@mikeyv)


    I am using the Twenty Eleven theme and I’m happy with it, having just changed the header image. It’s only a blog, and I want it to have a different look to the rest of the web site.

    The header image has an embedded link to the Front Page (Home) of the WP directory and I would like to change that to the home page of my web site. What’s the easiest way of achieving this?

    Under the header image, there is a horizontal bar, with a button for “Home”, once again taking you to the WP Front Page. How can I change this horizontal bar so I have 2 buttons, one that says “Blog Home” and another that says ”Site Home”? I have read about the Static Front Page customization method, but in general I’m happy with the default WP Front Page, with just these very minor tweaks?

    All help appreciated. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi!

    To change the header image, you’ll need to use the Editor (under the Themes menu), to change the code in your Header (header.php) file. Look for this code:

    <a href="<?php echo esc_url( home_url( '/' ) ); ?>">

    Just change it to look like this:

    <a href="https://yourwebsite.com">

    Now it will link to whatever website you put in there.

    Now, onto the “horizontal bar”, which is called the Navigation Menu. Under the Appearance menu (in your admin area), go to Menus. From here you can create a custom menu, with whatever links you want. Make sure to enable it in the Theme Locations box.

    Good luck!

    Thread Starter mikeyv

    (@mikeyv)

    Hello Odai,

    Thank you, good advice and implemented in minutes!

    There are 2 places in the header code where home_url can be set, once for the text (Site Title), and once for the header image. I wanted to change it for the image, but it’s straight forward to differentiate between the two places.

    A warning for new users like me; in the Dashboard->General Settings dialog, there are 2 fields that you might think correlate to these home_url values. Be careful, because if you set both to your html home page instead of your WP directory, you will not be able to use the WP admin facility, as WP is typically installed in its own directory. Thus you will be forced to do a code edit or WP code file restore to resolve this issue.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blog Home Page Tweak’ is closed to new replies.