Archived

This topic is now archived and is closed to further replies.

  • 0

link Custom Header Image to another page

Question

Posted · Report post

Is it possible to link the Custom Header Image to a different page other than my home page, and how? I'm using the White House Pro v2 for wordpress.

Share this post


Link to post
Share on other sites

8 answers to this question

Posted · Report post

Open your header.php file and look for some code that looks like or similar to this: ` <?php if(pagelines('custom_header')):?> <?php bloginfo('name');?> ` Then change what's inside of the href="" to wherever you want it to link.

Share this post


Link to post
Share on other sites

Posted · Report post

Thanks for getting back so fast! I probably should have started with a more difficult task, this was a good fix to hold me over in the mean time... I am familiar with html a little but not php. Is it possible to have a logo for instance link to my home page and another image link else were. (my goal is to set up two or more images, or areas that link to different places, in the custom header). Has anyone done this for the white house theme. Thank you again for your help!!!!!

Share this post


Link to post
Share on other sites

Posted · Report post

No problem! You will have to hardcode the images into the header using html instead of the custom header function as that only allows one image. If you are familiar with html this should be easy enough.

Share this post


Link to post
Share on other sites

Posted · Report post

I have the code I would like to use, just not 100% sure where to put it in the header php, so I don??™t mess up the file or possible the entire home page: <table width="962" border="0" cellspacing="0" cellpadding="0"> <tr height="115"> <td width="222" height="115">1.png</td> <td width="740" height="115">2.png</td> </tr> </table>

Share this post


Link to post
Share on other sites

Posted · Report post

I don't think you have to use a table to do this, but put it just after this line and see how it works `

`

Share this post


Link to post
Share on other sites

Posted · Report post

Did not work very well, I wonder if you can use table there, I only got a blank space. Any other ideas for similar results? Thanks for hanging in there still!!!

Share this post


Link to post
Share on other sites

Posted · Report post

Well that's because the table was formatted, but if you copied it exactly you didn't actually put any images into the table.

Share this post


Link to post
Share on other sites

Posted · Report post

Now I don't remember what I code i pasted. It may have been linking to my desktop, but no broken links. This worked: <div class="headline"><table width="960" border="0" cellspacing="0" cellpadding="0"> <tr height="115"> <td width="222" height="115">1.png</td> <td width="740" height="115">2.png</td> </tr> </table> <?php if(pagelines('custom_header')):?> <?php else:?> I also used your advices from a previous thread that centered it: "On line 47 of your css stylesheet you need to change the width for #header to 960px. currently it is set at 940px." It's awesome when this stuff actually starts to come together. Now the only problem is my boss might start to think I can do anything :(

Share this post


Link to post
Share on other sites