• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add support for custom header-Conditional WPML

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Add support for custom header-Conditional WPML

This topic is: not resolved

Tagged: Custom header, wpml

  • This topic has 3 replies, 3 voices, and was last updated 9 years, 2 months ago by laflamme3e.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 14, 2014 at 3:34 am #94820
    Treefungus
    Member

    Hi

    I was wondering if its possible to conditionally add support for custom header based on WPML language?

    Right now I cannot have 2 different logos unless I remove the support for custom header and add the logo manually in the CSS and target the French logo using WPML body class. However this is not so user-friendly for the website owner.

    I have googled and found many solutions however these all include changing the header.php which is not great to do in a Genesis theme.

    Appreciate any help I can get

    March 14, 2014 at 5:33 am #94836
    Brad Dalton
    Participant

    Is there any conditional tags for languages?


    Tutorials for StudioPress Themes & WooCommerce.

    March 14, 2014 at 7:24 am #94854
    Treefungus
    Member

    I am using this to add a body class. Can this be used as a conditional tag?

    function wpml_lang_body_class($classes) {
    if(defined('ICL_LANGUAGE_CODE')) {
    $classes[] = "" . ICL_LANGUAGE_CODE;
    }

    return $classes;
    }
    add_filter('body_class','wpml_lang_body_class');

    March 18, 2014 at 6:42 am #95432
    laflamme3e
    Member

    I have the same problem... Does anyone know a solution for this?

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2023 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble