Marah Marie ([info]marahmarie) wrote in [info]s2_bloggish,
@ 2008-10-28 13:55:00
Previous Entry  Add to memories!  Tell a Friend  Next Entry
Entry tags:favicon, tutorial

[paid] Really Simple Tutorial: Adding a Favicon in s2 Bloggish

This tutorial is in response to questions to me this morning from [info]orexisbella about how to add a favicon to your journal in s2 Bloggish.

  1. Follow Carrie's instructions for creating a theme layer.
  2. If you're only using your custom theme layer to add a favicon, the following code is all you need for it display correctly:
    layerinfo "type" = "theme";
    layerinfo "name" = "My Peppermint Star";
    set base_theme = "__none"; *(see note below)
    function Page::print_custom_head(){"""
    <link rel="shortcut icon" href="http://www.oogletoogle.com/files/x0r1ucw78rjubasjl5qh.ico" />
    """;}
  3. When you're done adding the above code to your theme layer hit the "Save & Compile" button, make sure your code "compiled without errors", then refresh your journal to make sure your favicon shows up.

If you're only using your custom theme layer to add a favicon you can copy and paste the code above in it's entirety into your theme layer, then just change the layer info name and the URL so it points to your own favicon.

oogletoogle.com hosts favicons for free and is the easiest web host by far to use for hosting them. Bravehost and Ripway also offer free web space with favicon hosting.

*Note If your custom CSS calls for Bloggish "Unstyled", you will set your base theme to "__none". Otherwise you will remove this entire line of code before you compile [more specific info here].




(3 comments) - (Post a new comment)


[info]orexisbella
2008-10-29 06:25 am UTC (link)
Hi there,

Thanks so much for this! The favicon works now, but I still can't get the theme layer to work right with my custom css. :( My style sheet does use base weblog, so I eliminated that line from the code.

Here are the links:

Theme layer code

What it looks like

What it's supposed to look like, without the favicon theme layer

The original template that I modified

Thanks so much for your help!

(Reply to this) (Thread)


[info]marahmarie
2008-10-29 09:03 am UTC (link)
Add the CSS to your theme layer exactly the way this tutorial describes:

http://community.livejournal.com/s2_bloggish/8637.html

Add this line directly under the layerinfo "name":

set base_theme = "__none";

I screwed up some of my tutorial. I'll fix it [done - updated OP with correct information on when to set base theme to "none"].

Edited at 2008-10-29 09:17 am UTC

(Reply to this) (Parent)(Thread)


[info]orexisbella
2008-10-29 11:25 am UTC (link)
It works perfectly now! Thank you!

(Reply to this) (Parent)


(3 comments) - (Post a new comment)

Create an Account
Forgot your login or password?
Login w/ OpenID
English • Español • Deutsch • Русский…