Return to Support

Customizing Header

Home Forums Graphene WordPress theme Support Customizing Header

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #9251
    eggyman
    Member

    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!

    #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.

    #43144
    eggyman
    Member
    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.

    #43145

    Link to site?

    #43146
    eggyman
    Member
Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.