ThemeShaper Forums » Thematic


Differentiate between firefox 3.0 and 3.1+ ?

(5 posts)
  • Started 11 years ago by Lasson
  • Latest reply from em hr
  • This topic is resolved
  1. Lasson


    I have a slight issue with firefox 3.0 (and below). For firefox 2 I can just use

    .ff2 .thing {yadayada}

    but for firefox 3.0 there is no browser detection to differentiate from firefox 3.x, Can I somehow add this?

    Posted 11 years ago #
  2. Hi Lasson,

    Yes it can be added. The ease with which it can be added it the real issue here. If you are using or are willing to use the current svn of the upcoming Thematic 0.9.3 release. You can copy and paste the entire thematic_body_class function into your child theme's functions.php renaming it child_theme_override_body_class() and then make this edit to the copied code.


    preg_match( "/Firefox\/(\d)/si", $browser, $matches);
    				$ff_version = 'ff' . str_replace( '.', '-', $matches[1] );
    				$c[] = $ff_version;

    replace with:

    preg_match( "/Firefox\/(\d.\d)/si", $browser, $matches);
    				$ff_version = 'ff' . str_replace( '.', '-', $matches[1] );
    				$c[] = $ff_version;

    For now, this would be the easiest way in my opinion. There may be a better alternative... I'll look in to it.


    Posted 11 years ago #
  3. Lasson

    Thanks alot. Will look into this very soon (right now even) :)

    Posted 11 years ago #
  4. Lasson

    works fine

    Posted 11 years ago #
  5. Right on! Thanks for marking the thread resolved.

    Posted 11 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.