Grow your CSS skills. Land your dream job.

[Solved] Change WP Theme According to Language

  • # July 20, 2010 at 11:10 pm

    Hi everyone..

    I have a doubt… I would like to know if is possible to set a Theme according to the Language…

    I know there are a couple of Plugins, javascripts and php ways to change Langs in the same theme

    i.e http://wordpress.org/extend/plugins/xlanguage/

    But what if we are using Standard image replacement

    i.e.

    Code:
    .imr { display:block; overflow:hidden; text-indent:-9999px; }

    we need to change every image replaced…

    so Anyone know a way to chage the theme or the style.css according to the selected language ??? or beyond ! according to the IP hahaha…

    thanks

    # August 24, 2010 at 1:54 pm

    well you can pass selected language in the url or store it in session
    and use that variable just before you drop your css



    if($currenttheme=='test'){

    }else{

    }

    # August 24, 2010 at 5:33 pm

    You could probably combine @hardik‘s method with the theme switch plugin to actually switch themes… http://wordpress.org/extend/plugins/nkthemeswitch/

    # August 27, 2010 at 2:42 am

    oh I manage to solve the issue adding cufon to the site and using this plugin: http://www.poplarware.com/downloads/language_switcher .

    You can see live this : http://sektorrd.com

    see’a

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".