When on front page, isn't a link to the front page a bit useless? :-)

CommentFileSizeAuthor
#3 zen-925216.3.patch3.51 KBjix_
#2 zen-925216.2.patch3.51 KBjix_
#1 zen-925216.1.patch3.47 KBjix_

Comments

jix_’s picture

Status: Active » Needs review
StatusFileSize
new3.47 KB

It 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_front altogether cannot be done efficiently in page.tpl.php. You'd have to write the whole HTML block for the site name three times, or write ifs 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?

jix_’s picture

StatusFileSize
new3.51 KB

Friggin' tabs.

jix_’s picture

StatusFileSize
new3.51 KB

Sorry, my editor is giving me shit. All tab characters should be gone now.

pfrenssen’s picture

Component: PHP Code » layout.css

It 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.

pfrenssen’s picture

Component: layout.css » PHP code

Didn't mean to change the tags.

anrikun’s picture

@pfrenssen:

It is a convention that the logo and the first link in the main navigation link to the front page.

Even on the frontpage itself???
Can you point a link to a reference about this convention?

pfrenssen’s picture

johnalbin’s picture

Component: PHP code » layout.css
Status: Needs review » Closed (won't fix)

The 6.x-2.x branch is in bug-fix only mode.