When on front page, isn't a link to the front page a bit useless? :-)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | zen-925216.3.patch | 3.51 KB | jix_ |
| #2 | zen-925216.2.patch | 3.51 KB | jix_ |
| #1 | zen-925216.1.patch | 3.47 KB | jix_ |
When on front page, isn't a link to the front page a bit useless? :-)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | zen-925216.3.patch | 3.51 KB | jix_ |
| #2 | zen-925216.2.patch | 3.51 KB | jix_ |
| #1 | zen-925216.1.patch | 3.47 KB | jix_ |
Comments
Comment #1
jix_ commentedIt is! Here's a patch that only links the site logo and name when we're not on the frontpage.
I had to move some of the code to template.php.
if $site_name,if $title,if $is_frontaltogether cannot be done efficiently in page.tpl.php. You'd have to write the whole HTML block for the site name three times, or writeifs around the<a href="">and</a>; yikes.Also, as the
<a>around the logo is now conditional, you can't really rely on the ID being on the<a>, so I wrapped it in a<div id="logo">.One thing that does get lost in the patch currently is the
<span>inside the site name's<a>. I personally don't think it needs to be there in the first place, but I'd like some feedback on it. Should we keep the span? If so, where should we add it?Comment #2
jix_ commentedFriggin' tabs.
Comment #3
jix_ commentedSorry, my editor is giving me shit. All tab characters should be gone now.
Comment #4
pfrenssenIt is a convention that the logo and the first link in the main navigation link to the front page. These should not be removed or altered under any circumstances. If they are not clickable they are broken in the user's view.
Comment #5
pfrenssenDidn't mean to change the tags.
Comment #8
anrikun commented@pfrenssen:
Even on the frontpage itself???
Can you point a link to a reference about this convention?
Comment #9
pfrenssenAlexa top 500 global sites
Comment #10
johnalbinThe 6.x-2.x branch is in bug-fix only mode.