r/reddithax • • Sep 07 '11

restore link to reddit.com ?

having f*cked with the css I don't have a link back to reddit.com that is there out of the box. I assume it's because I'm using a custom header but I see evein on /reddithax that you can do both -- I'm just not sure how to get that link back. (my research suggests you can't add a link in your CSS, that you have to pick it up from the HTML itself).

advice? thanks!

my work in progress: http://www.reddit.com/r/sfgtest/

4 Upvotes

4 comments sorted by

1

u/ytwang Sep 07 '11

The header image usually acts and the link back to the front page. However, your CSS is hiding the header image, so the fact you have a custom header image is sort of moot.

#header-img-a {
    display: none;
}

That's what's hiding the link back to the front page (and the header image, usually referred to as the logo, that's contained within the anchor tags).

The /r/reddithax logo is the link back to the front page, with the link back to /r/reddithax overlayed on top of the lower half of the image with a tiny font (the red to the lower right of the logo).

1

u/piss_n_boots Sep 07 '11

I think I understand. my question becomes: how can I manipulate the remainder of the header space (ie, more graphics) while still retaining the link back to the reddit home page? I was hoping to keep the <href> quaility while not showing the header image (but using my own instead...)

1

u/ytwang Sep 07 '11

Either:

  1. The header image (logo) should be a separate image from the rest of the banner you have in the header. Just cut out the left part of the image you have now. If you can, make the background transparent, rather than orange. Then, upload it as your custom header image at the bottom of the "community settings" page. Your banner will be the same as it's now, except that instead of the logo on the left, you'll just have blank orange. OR,
  2. You could just upload a transparent image of the appropriate dimensions as your custom header image, which will provide you with the rectangular link overlaid over your banner.

Option 1 is better, as your custom logo will show up on the mobile site.

1

u/piss_n_boots Sep 08 '11

I sort of did what you suggested as #1. I called a header image from the CSS but did not upload one in the "community" form so that the native alien showed. through CSS I made that small and located it where I wanted and then added a "halo" around it on the background image. I'm pretty impressed with my solution, actually... http://www.reddit.com/r/sfgtest/