WordPress.org

Support

Support » Themes and Templates » Problem changing header img on a different page.

Problem changing header img on a different page.

  • Hello

    I was trying to create a page with a different header when I came across this code i could not understand. Im using WordPress 3.3.1 and UpStartBlogger Modicus 2-Colum 0.3 Theme. The website is http://www.tallinnlooks.com

    This is the code from header.php:

    [Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]

    I am trying to add a code there that should show a different header on the page “test”.I used the following code:

    if(is_page('test')){
    echo '<img src="http://74.220.219.67/~mappee/tallinnlooks/wp-content/uploads/2011/02/tallinn-looks-logo-white.jpg" />';
    }

    But it does not show properly.
    I am guessing there is something wrong with <a href=""></a> being outside of php code??? When i tried to change that the website didnt display properly. When i wrote that code into the original header code it worked and changed the “test” page header, but then the homepage header dissapeared.

    Could someone please help and point out what i am doing wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem changing header img on a different page.’ is closed to new replies.