WordPress.org

Ready to get started?Download WordPress

Forums

Oxygen
How to change the Oxygen site header depending on Language. (3 posts)

  1. qualalbatroz
    Member
    Posted 11 months ago #

    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

  2. paulwpxp
    Font hero
    Posted 11 months ago #

    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.

  3. qualalbatroz
    Member
    Posted 11 months ago #

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

Reply

You must log in to post.

About this Theme

About this Topic