WordPress Plugin: Home Page Link

Posted on July 31, 2007 by Garrett Murphey
WordPress

I received an email this evening from Dan, who uses the Page Link Manager, wondering how to get a home page link to show up in his site navigation. I had never really thought about the problem, or even realized it was a problem until I started my search for a solution. There’s not much out there covering the issue besides a few forum posts at WordPress.org. But it’s an issue, nevertheless. I understand that the blog’s heading is supposed to link to your home page, but I believe there’s a large audience of Internet users, and potential readers, that wouldn’t think to look to a heading for a shortcut back to your home page.

And so we have the Home Page Link plugin.

The Plugin

v0.15 Release Changes (August 12, 2007)

This is a bug release.

Better Compatibility
The plugin now works whether your using the Pages widget or wp_list_pages.

The plugin does just what you think - adds a Home link to your site navigation (wp_list_pages). And it’s very easy to use.

  1. Download and unzip the plugin archive.
  2. Place the plugin file under wp-content/plugins directory on your Wordpress Installation
  3. Log in to your admin interface and activate Home Page Link under the ‘Plugins’ tab

That’s it! You should now be able to view your site with its shiny new Home link.

Like my other plugins, I hope to keep this going as a work in progress, and work along with the WordPress community to make it more useful and efficient. If you have something you’d like to see in an upcoming version, please don’t hesitate to add a comment or contact me.

Requirements

The current release requires a server running at least PHP4. The plugin has been tested on Wordpress 2.x. If anyone has gotten it working on older versions of Wordpress, please let me know.

Resources

If you’re interested in writing plugins, the Wordpress Plugin article is an excellent resource.

Download the Plugin

All source code is provided under the Creative Commons Attribution-Sharealike License. If you agree to these terms, please download the plugin now.

43 Responses to
“WordPress Plugin: Home Page Link”

Thanks man you’re a huge stud. I was looking for a way to do this forever.

[…] Home Page Link - This quick and easy plugin does exactly what the name indicates. It adds a link to the home page of your blog under the “Pages” category. This can be a lifesaver for many who have been searching for a way to do this. Quick and easy! […]

Garrett, thanks a lot for this. I was hugely impressed by your lightning fast response to my email. All the best!

Dan

Hi, I don’t want to be a pain, just want to make sure that you haven’t forgot about me. Have you been able to sort out why the Home link shows above the ‘Pages’ title?
Thanks a lot!

Hi Keith:

Your issue should be fixed in the latest release.

Happy blogging!

[…] Download Home Page Link and follow the installation instructions on the same page. […]

This is great, i was looking a long time for this. Thanks man, appreciated!

Nice job, dude!

Peter Lurie

Thanks for the Plugin…

may I add my name to the List requesting that there is an option to list the “Home” link ABOVE the Pages List.

Many thanks

Peter Lurie

Garrett!

My Home Link has somehow nested itself in a Sub Page section!

how can I be sure it will at least be in to top level (until the ability to separate it from the Pages Widget exists)?

Thanks
Peter

Thanks for the plugin! It´s just what I needed!

Clever way to solve a problem I was having.

Keep on deleloping!

greetings from Argentina!

Thank you so much for an excellent plugin - I was going mad trying to resolve the issue of having a home page and yet use the h1 tag for SEO. I cannot thank you enough - kind regards - David

Voice of Reason G.k.W

Wow another perfect little plugin that shouldn’t be necessary but is.

The more I use wordpress, the more amazed I am at how much customising it requires to bring it up to a useful level, but then it was probably conceived for people who wanted a simple plug-and-play cms and don’t ask too many questions. Not for people like me who desire individuality.

Think I might have to look into other cms packages soon though :(

Thanks again Garrett (”,)

I have been trying to find a way to do this for some time now. I searched on wordpress.org and found this plugin. It took all of two minutes to get it working. Thanks Thanks Thanks

Garrett, Garrett, Garrett. I swear to God if I knew you I would hug you.

I’m not computer illiterate. I don’t know coding too well, but I know computers. But it has taken me TWO MONTHS to figure out how in the heck I can add “Home” under my pages.

NO documentation supports this!!! It’s either too hard to understand or it’s not what I was looking for… until I came across your post in a Wordpress Support blog.

THANK YOU. You literally made my year. Happy New Year!

Hi all,

Sorry to be out of touch lately. The problem some of you are experiencing with misplaced “Home” links is due to a change in WordPress’ wp_list_pages filter, especially in newer versions. I’m confident that the new version I’m working on will fix the issue and continue to work with older WP installations.

Expect a new release in the next 24 hours!

Thanks for your enthusiasm and support,
Garrett

Hi Garrett,

Is there a way I can use the home plugin to point to my home page http://www.wind-power-generator.com and not to http://www.wind-power-generator.com/blog/

Thanks and regards

[…] أحد حلولي المقترحة لهذه المشكلة هو باستخدام إضافة Home Page Link التي ستضيف لمدونتك رابط صفحة البداية, […]

Caroline

oh you’re the best

Hi, great plugin.. but I am having the same issue with it putting the ‘Home’ link in a sub category while using the widget ‘Pages’. The issue can be seen at http://www.ryderantiques.com . many thanks in advance..

Craig

re: my above comment..

i changed line 24 return $preContent . $homeItem . $postContent;

to

return $homeItem . $preContent . $postContent;

and that seems to have fixed my issue with the Home link being in amongst the subs.

Hope this helps.

Craig

element

just what I needed, thanks!

Hinbada

Exactly what I was looking for! Thank you!

Thank you. Thank you. Thank you!

Thanks for the Plugin !
Could not find it on wordpress.org/extend/plugins/. You should submit it :)
cheers

really thankssssssssssss!!!!!!!!!!

Thanks, was looking for this everywhere and couldn’t believe that no one had it!

Good lord, how simple. This is an obviously much needed fix. Why the folks at WP haven’t figured out that it isn’t nice to futz with the common user interface fundamentals — like a home page link or button — is beyond me. Thanks!

Amazing, thanks. I can’t believe this isn’t an option in Wordpress.

Thank you! Agree with all others, seems like an admin knob that should be readily available no matter what theme!

How good are you!
I have a flash file in my header where you can click on individual words to enlarge them, therefore It isn’t clickable to get back to the home page… this handy little plugin fixed all my problems. Thanks!

Check it out: http://www.artsmartdesign.com.au

Garrett, you rock and saved the day! Works like a charm in 2.5.1!

Thanks man! ;-)

At your service,
Judith

Thanks much for this! You created a simple solution to a problem that was becoming not-so-simple for me to fix!

Your the man. This fixed an issue I had been messing with for months… and how simple! I only wish I would have found this sooner. Thanks so much!

To Peter Lurie & anyone else who wants to display their Home link ABOVE the Pages list. Create a text widget using the following code:

HTML:
  1. <a HREF="/tikun_olam/" title="Home" rel="nofollow">Home</A>

It worked for me. But what I really wanted was Garrett's plugin so the Home link would nest among all the other pages. So my thanks Garrett for solving a simple, but thorny issue.

(Fixed HTML to show up as source. - Ed.)

Oh my, this is a wonderful plugin! Why isn't this a default feature in Wordpress anyway?

It worked for me. You should submit it to Wordpress! :)

Thank you!

Richard Silverstein,

Could you please explain step by step how to put HOME above PAges

Thank you sooo much

hey thx a lot for this....
i never thought it was so easy....

Hello

Thank you for this small but great plugin.

I test it in my future theme and i had a problem with Firefox. In html source send to Firefox i have home and the next without line feed. I add \n in your plugin at the end of the line ...."' title='Home'>Home" like this "' title='Home'>Home\n" and all is working find.

Regards

Thanks! This is just what I needed!

dude, I LOVE YOU!!!
I was trying FOR EVER to edit it... and your one simple plugin is a life saver... thank you soo much!

you. rock. sir.

Thank you so much! Like you said, a lot of visitors don't seem to realise that the header image is often a link back to the home page, and I don't want to alienate those visitors. Finding a method to simply slot in a link for homepage was incredibly difficult, until I stumbled upon your plugin. It works like a wonder, so simple but it does its job!

Leave a Reply

If you'd like to post a code snippet in your comments, please surround the code with code language tags (e.g. [php][/php], [html][/html], [javascript][/javascript]).