WordPress.org

Support

Support » Themes and Templates » Oxygen » How to change the Oxygen site header depending on Language.

How to change the Oxygen site header depending on Language.

  • The title may not be brief, but that’s life.

    I’m working on this website: http://www.qualalbatroz.pt
    (Pretty, huh?)

    My problem is thus: I need the website header to change whenever I swich language. the English header image is different than the Portuguese header image.

    I tried to edit header.php, but the imager src is not there.
    I’m using the qtranslate plugin for the language choice thingy.

    If you show me where to find this code…I can probably manage to do the rest:

    <img class=”logo” src=”http://www.qualalbatroz.pt/site_v2/wp-content/uploads/2013/07/QA_logo_LaranjaPT.jpg” alt=”Qual Albatroz”/>

    So my question is: where is the Site header src stored? It’s not in header.php.

    Thanks for your help!

    Marc

Viewing 2 replies - 1 through 2 (of 2 total)
  • paulwpxp

    @paulwp

    Font hero

    I need the website header to change whenever I swich language. the English header image is different than the Portuguese header image.

    You can use this in child theme stylesheet. The width and height is exactly the same with your current logo.

    .en_US #site-title a[rel="home"] {
    	background: url("http://placehold.it/290x71.png") no-repeat scroll 0 0 transparent;
    		display: block;
    		width: 290px;
    		height: 71px;
    }
    
    .en_US #site-title a[rel="home"] img {
    	display: none;
    }

    where is the Site header src stored? It’s not in header.php.

    It’s from WP custom header image support, and you don’t see the function call in header.php because this theme, like most theme frameworks, is hook oriented.

    thanks paulwpxp, you’re a star!
    I’ll try using the css file

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to change the Oxygen site header depending on Language.’ is closed to new replies.
Skip to toolbar