Customizing Header

  • eggyman

    #9251

    Hi,

    I’m using the graphene theme and the mqtranslate plugin to make a multilingual website. I have a slight problem with the header. The language on the content changes when I change languages but I also need to change the language on the custom header I made. I’m using a code that would allow me to switch between 2 headers but when I insert it into the header.php it either screws up the location of the site tagline or completely removes it depending on where I put the code.

    here is the code I’m using

    <?php _e('[:en]<img src="http://mysite.com/header-en.jpg"/>
    [:tr]<img src="http://mysite.comheader-tr.jpg"/>'); ?>

    and I am using a child theme

    Please Help!

    Mod

    Kenneth John Odle

    #43143
    Quote:
    when I insert it into the header.php

    Don’t edit theme files directly. You could copy header.php over to your child theme and make the changes there, but the better option is to use a PHP widget and an action hook widget area.

    eggyman

    #43144
    Quote:
    Don’t edit theme files directly. You could copy header.php over to your child theme and make the changes there

    I did that but I forgot to mention it

    Quote:
    but the better option is to use a PHP widget and an action hook widget area.

    I will try doing that

    Edit: I tried doing that, and I am having the same issue. The custom header stays on top of and blocks everything in the header. e.g the site title and tagline and the other widget I have on the header.

    Mod

    Kenneth John Odle

    #43145

    Link to site?

    eggyman

    #43146

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

  • You must be logged in to reply to this topic.