How to link Header image to external web site

General questions pertaining to how certain issues can be resolved
Forum rules
1. No offensive language and no mocking
2. Please do a thorough search before you post something. Trust us, there is a high probability that the question you are asking has been asked previously.
3. No soliciting. You cannot post here soliciting bids for people offer you quotes, or even offer money to people for some work. You will be moderated if you do so. If you are looking for help, please post your request on http://jobs.wordpress.net or http://codepoet.com
4. Please be reasonable. You are getting software and support. For free. Complicated requests from a general purpose theme are not welcome and some volunteers might lose patience with you.
5. Please do your due diligence. If you posted a query and we answered with a link, take the trouble to go through the link contents.
6. Please post with complete information. Requests for help MUST be accompanied with your URL, particularly if you are asking something like "Why am I seeing a blank space?"

How to link Header image to external web site

Postby mdavid01 » 20 Oct 2009, 19:25

I would like to have my header image hyperlinked to an external site, instead of the main blog page.
Which css/php file do i need to customize to make that happen?
Thank you
mdavid01
 
Posts: 2
Joined: 20 Oct 2009, 19:23

Re: How to link Header image to external web site

Postby sayontan » 20 Oct 2009, 19:49

Currently the header image is displayed in the background, so there is no way to link it to another site. However if you want to change this functionality you will have to modify the actions.php file in the "functions" folder. You will need to modify the function called "suffusion_display_header" (I am assuming that you are using version 2.4.7). You will have to delete the entire "if / else" block there and put in something like:

Code: Select all
         <h1 class="blogtitle"><a href="your-url"><img src='your-image-link'/></a></h1>
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas

Re: How to link Header image to external web site

Postby mdavid01 » 21 Oct 2009, 08:51

Thank you very much, I went with your suggestion and modifed the php function as follows. Works really well now, it seems a pretty normal/common need and using a page as a link looks goofy for navigation. Would love to see this as a theme option eventually.......thanks again.

function suffusion_display_header() {
global $suf_sub_header_vertical_alignment;?>
<div id="header" class="fix">

<h1 class="Genesis Jiu Jitsu"><a href="http://www.genesisjiujitsu.com"><img src='http://www.genesisjiujitsu.com/images/GenesisLogo.blog.jpg'></a></h1>


</div><!-- /header -->
mdavid01
 
Posts: 2
Joined: 20 Oct 2009, 19:23

Re: How to link Header image to external web site

Postby sayontan » 21 Oct 2009, 16:43

I see the value in adding this feature to the options. I had not envisioned people using an image for the header (I had just assumed a header background), hence the gap. I will build this into one of the next few releases.
Sayontan Sinha | http://mynethome.net/blog | http://www.aquoid.com/news
I don't do freelance work (for Suffusion or otherwise), so please don't contact me for quotes or offers.
sayontan
Site Admin
 
Posts: 10159
Joined: 15 Sep 2009, 16:39
Location: Houston, Texas


Return to Support Requests

Who is online

Users browsing this forum: dymnluldefe and 4 guests