Difference between revisions of "Adding a favourite icon to your store"

From Spiffy Stores Knowledge Base

 
Line 7: Line 7:
 
#Log in to your Store Toolbox, and go to the "Design &amp; assets &gt;&gt; Theme editor" section. <br><br>
 
#Log in to your Store Toolbox, and go to the "Design &amp; assets &gt;&gt; Theme editor" section. <br><br>
 
#Upload your favicon.ico file in the theme assets section.  <br><br>
 
#Upload your favicon.ico file in the theme assets section.  <br><br>
#Add the following line right '''before''' the &lt;head&gt; tag.<pre>&lt;link REL="SHORTCUT ICON" HREF="{{ 'favicon.ico' | asset_url }}"&gt;</pre><br><br>Your code should look something like this... <br><pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;                                  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;                          &lt;link REL="SHORTCUT ICON" HREF=""{{ 'favicon.ico' | asset_url }}"&gt;                                          &lt;head&gt;</pre>  <br><br>
+
#Edit your theme.liquid file, adding the following line right '''before''' the &lt;head&gt; tag.<pre>&lt;link REL="SHORTCUT ICON" HREF="{{ 'favicon.ico' | asset_url }}"&gt;</pre><br><br>Your code should look something like this... <br><pre>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;                                  &lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"&gt;                          &lt;link REL="SHORTCUT ICON" HREF=""{{ 'favicon.ico' | asset_url }}"&gt;                                          &lt;head&gt;</pre>  <br><br>
 
#Save your theme.liquid file, and you're done! &nbsp;Note that you may have to empty your browser cache and perhaps restart your browser as well to see your icon appear.
 
#Save your theme.liquid file, and you're done! &nbsp;Note that you may have to empty your browser cache and perhaps restart your browser as well to see your icon appear.

Latest revision as of 08:10, 8 August 2011

A favicon is a small, 16x16 image that is shown inside the browser's location bar and bookmark menu when your site is called up. It is a good way to brand your site and increase it's prominence in your visitor's bookmark menu.

If you don't already have an icon image, you can create your own at http://www.favicon.cc/


When you've got your favicon.ico file, follow the instructions below to add it to your store,

  1. Log in to your Store Toolbox, and go to the "Design & assets >> Theme editor" section.

  2. Upload your favicon.ico file in the theme assets section.

  3. Edit your theme.liquid file, adding the following line right before the <head> tag.
    <link REL="SHORTCUT ICON" HREF="{{ 'favicon.ico' | asset_url }}">


    Your code should look something like this...
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">                                   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">                           <link REL="SHORTCUT ICON" HREF=""{{ 'favicon.ico' | asset_url }}">                                          <head>


  4. Save your theme.liquid file, and you're done!  Note that you may have to empty your browser cache and perhaps restart your browser as well to see your icon appear.