Menu differences (A Typekit problem?)

frenchfold / 2013-01-20 20:49:50   

Hello!

My site has an odd bug which I can't fix: the sidebar menus behave slightly differently in the index page and the subpages. They all reference the same set of styles (I assume), so I'm a little confused. (Just in case I validated the site but nothing odd came up.)

My site is at frenchfold.com
It's currently password protected. Please use: agoodcurry

It seems like the Typekit faces are properly displayed on the index page, but not elsewhere. Should I put the Typekit script somewhere else? (It's on the index page right now.)

Sorry that this is such a newbie question.

Many kind thanks,
Brian

arsondpi / 2013-01-20 23:16:28   

First of all this is obsolete:

  1. <body BGCOLOR="#ECECEC">

Use css instead - go to Admin/Assets/Theme, style.css and add the background colour to the body tag.

You also added code in your text area.
If I understand well typekit gets activated from a script - add

  1. <script type="text/javascript">
  2.   (function() {
  3.     var config = {
  4.       kitId: 'kep8iuv',
  5.       scriptTimeout: 3000
  6.     };
  7.     var h=document.getElementsByTagName("html")[0];h.className+=" wf-loading";var t=setTimeout(function(){h.className=h.className.replace(/(s|^)wf-loading(s|$)/g," ");h.className+=" wf-inactive"},config.scriptTimeout);var tk=document.createElement("script"),d=false;tk.src='//use.typekit.net/'+config.kitId+'.js';tk.type="text/javascript";tk.async="true";tk.onload=tk.onreadystatechange=function(){var a=this.readyState;if(d||a&&a!="complete"&&a!="loaded")return;d=true;clearTimeout(t);try{Typekit.load(config)}catch(b){}};var s=document.getElementsByTagName("script")[0];s.parentNode.insertBefore(tk,s)
  8.   })();
  9. </script>

just before the ending head tag:

  1. </head>
arsondpi / 2013-01-20 23:20:13   

...I meant just before the ending head tag of the index.php page, found also in Admin/Assets/Theme, index.php

frenchfold / 2013-01-21 16:30:57   

Thank you very much! That worked wonderfully.

This thread has been closed, thank you.