This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

WPML – changing logo while viewing pages in a different language

  • Creator
    Topic
  • #888
    dbs1
    Member

    Hi Jason,

    Great theme and plugins!

    I’ve recently bought the WPML through your referral. Do you have any advice regarding changing the logo’s picture source while viewing pages in the other language.

    Thanks in advance for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #894
    Jason Bobich
    Keymaster

    Hello,

    Are you talking about the main logo of your website that the theme places in? You’re just wanting a different logo to display for each language?

    Are you using the WPML bridge plugin? — http://wordpress.org/extend/plugins/theme-blvd-wpml-bridge/

    If so, then you have a different set of theme options for each language, and since the logo image is part of your theme options, you can set a different one for each language.

    http://wpml.themeblvd.com/documentation/theme-options/

    #896
    dbs1
    Member

    The problem is that It’s a custom made logo and defined in the child theme:

    #header_content
    {
    width:100%;
    height:150px;
    background:url(assets/images/header_960x150.png) no-repeat scroll 0 0 transparent;
    }

    Only in a later stage we installed WPML plus the bridge but because of the custom child usage the bridge doesn’t really function.

    Is there any quick fix we can add the styles or do we need to hire a professional for this modification?

    #898
    Jason Bobich
    Keymaster

    I would contact WPML support and tell them you’re trying to apply different CSS based on the current language and see if they have any tips for you.

    #899
    dbs1
    Member

    Thanks!

    #1281
    dbs1
    Member

    Any updates regarding the above?

    #1289
    Jason Bobich
    Keymaster

    Apologies, but I think you may have misunderstood what I saying. — I was telling you that you should contact WPML support, as this is a WPML matter. I am not aware of a way to style things based on the specific language.

    #1297
    Jason Bobich
    Keymaster

    A google search brought me to this thread from the WPML support forums. —

    http://wpml.org/forums/topic/body-class-based-on-language/

    This is how you’d add a body class based on the language.

    add_filter('body_class', 'append_language_class');
    
    function append_language_class($classes){
    
      $classes[] = ICL_LANGUAGE_CODE;  //or however you want to name your class based on the language code
    
      return $classes;
    
    }
Viewing 7 replies - 1 through 7 (of 7 total)
  • The forum ‘Akita Responsive WordPress Theme’ is closed to new topics and replies.