SitePoint Sponsor

User Tag List

Results 1 to 11 of 11
  1. #1
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Headline changes font by itself???

    Hi

    I have a rather unique problem. The site is located at http://www.locomotivemarketing.com If you take a look at the headline in the hero section on the home page you see a big font if you click the about page and then go back to the home page you see that the font on that hero section has actually changed. Now here is the thing. The correct font is the one it's supposed to be after the font changes itself.

    Where have I gone wrong here and why is the font changing and I should add. This is a Firefox only issue. In Chrome is does not do this.

    Thanks

  2. #2
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Maybe it relates to this code being in the body rather than the head.

    Code:
    <link rel="stylesheet" type="text/css" href="http://locomotivemarketing.com/wp-content/plugins/slidedeck-lite-for-wordpress/skins/slidedeck-classic/skin.css?v=1.0" media="screen" /><!--[if lte IE 8]><link rel="stylesheet" type="text/css" href="http://locomotivemarketing.com/wp-content/plugins/slidedeck-lite-for-wordpress/skins/slidedeck-classic/skin.ie.css?v=1.0" media="screen" /><![endif]-->

  3. #3
    Sploghm bronze trophy Victorinox's Avatar
    Join Date
    Nov 2008
    Posts
    749
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Also, that stylesheet does not appear to be loaded in the About Us page, and as there is one for the Slidedeck already in the head, the one in the body may be redundant.

  4. #4
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Headline font changes by itself??? *Updated*

    Hi All,

    To update the post it's actually all headline on the front page if you take a look at the bottom 3 column layout of the page you see the font changes after you have gone to another page and you go back to the homepage. here is the css in question. And this still seems to be a Firefox only issue. I have also attached a 2 photos so it's eaiser to see what I'm referring to.example1.jpgexample2.jpg The second photo is the way it should look

    Code:
    h1.hd_txt1 {
        border-bottom: 1px solid #CBCBCB;
        color: #545454;
        font-family: 'HelveticaNeueLTStd47LtCn';
        font-size: 26px;
        line-height: 26px;
        padding-bottom: 14px;
    }
    Also here is the code that pulls in these fonts.

    Code:
    @font-face {
     font-family: 'HelveticaNeueLTStd47LtCn';
     src: url('fonts/helveticaneueltstd-ltcn-webfont.eot');
     src: url('fonts/helveticaneueltstd-ltcn-webfont.eot?#iefix') format('embedded-opentype'), url('fonts/helveticaneueltstd-ltcn-webfont.woff') format('woff'), url('fonts/helveticaneueltstd-ltcn-webfont.ttf') format('truetype'), url('fonts/shelveticaneueltstd-ltcn-webfont.svg#HelveticaNeueLTStd47LtCn') format('svg');
     font-weight: normal;
     font-style: normal;
    }
    What would cause Firefox to do this?
    Your Websites Your Way!!
    www.clhdesigns.com

  5. #5
    Chopped Liver bronze trophy imaginekitty's Avatar
    Join Date
    Aug 2007
    Location
    Pennsyltucky
    Posts
    1,494
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    As stated above, the style sheet LINKs belong in the head.

  6. #6
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    After totally deactivating the plugin all of that code is removed as well as the slider. Same problem back to square one. Is it an issue with how firefox calls imported fonts
    Your Websites Your Way!!
    www.clhdesigns.com

  7. #7
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,343
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Hi,

    I'm not sure if this is the issue but this page (http://www.locomotivemarketing.com/) doesn't work and this page (locomotivemarketing.com/) does work. If they are different domains then Firefox won't serve the font files (font files must be on the same domain as the page using them).

  8. #8
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi Paul,

    Thanks for showing that example. I did see the difference right away. Would a simple redirect be in order here?
    Your Websites Your Way!!
    www.clhdesigns.com

  9. #9
    The CSS Clinic is open silver trophybronze trophy
    Paul O'B's Avatar
    Join Date
    Jan 2003
    Location
    Hampshire UK
    Posts
    40,343
    Mentioned
    179 Post(s)
    Tagged
    6 Thread(s)
    Quote Originally Posted by capples3 View Post
    Hi Paul,

    Thanks for showing that example. I did see the difference right away. Would a simple redirect be in order here?
    This really isn't my area so you would be better looking at the official documentation for a solution using access control headers.

    Others have had similar problems.

  10. #10
    Non-Member bronze trophy
    Join Date
    Nov 2009
    Location
    Keene, NH
    Posts
    3,760
    Mentioned
    23 Post(s)
    Tagged
    0 Thread(s)
    To be brutally frank, the code for that page is rife with everything WRONG with web development today; endless massive div's wrapping elements for nothing, unique CSS being loaded willy-nilly all over the place, endless ID's for NOTHING, jumping the gun with the HTML 5 lip service doctype when it doesn't even use any of that HTML 5 nonsense -- you'd almost think it was a turdpress template. Debuggging anything in that train wreck would be so much effort, it would probably be faster to throw it all away and write it over from scratch.

    ... and that's before we talk the accessibility train wreck of absurdly undersized fixed metric fonts, annoying fixed width that's not even 1024 friendly, and non-graceful degrading scripts.

  11. #11
    SitePoint Addict
    Join Date
    Apr 2003
    Location
    canada
    Posts
    213
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Deathshadow: OUCH!!!! But in all seriousness I just took this over from a development firm in India and it's been nothing but issues. Guess you hate Wordpress lol.

    Paul: Thanks for the links I'll check them out and see how everything goes from there and I'll report back on a fix.
    Your Websites Your Way!!
    www.clhdesigns.com


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •