Solved

getting image to link to a page

Posted on 2014-01-31
3
351 Views
Last Modified: 2014-02-14
Hi Guys,

How can i get the header image here at www.ias.ie to link to another page? I am trying to set it to link to

http://www.ias.ie/?page_id=631

so when i click on the header image t brings me to that page
0
Comment
Question by:jonathanduane2010
3 Comments
 
LVL 25

Assisted Solution

by:Kyle Hamilton
Kyle Hamilton earned 227 total points
ID: 39824037
You can wrap your whole header in the anchor tag. that is allowed in html5.

However, you have some badly constructed html including unclosed tags and multiple ids of the same name. this will cause problems for you. you should try to clean up the html

<a href="http://www.ias.ie/?page_id=631">
	<div class="background-image"></div>
	<div id="header-top-container">
		... othe markup in here ...
	</div>
</a> 

Open in new window

0
 

Author Comment

by:jonathanduane2010
ID: 39824044
Thank you...

will i put in the css or in the header.php
0
 
LVL 43

Accepted Solution

by:
Chris Stanyon earned 228 total points
ID: 39824485
I would have thought you only wanted the Donate button to link to the page. If that's what you want, then remove the button from the background image and create an image just for the button. Then just wrap that image in an A tag and position it absolutely using CSS:

<a id="donateButton" href="/?page_id=631"><img src="button.png"></a>

#donateButton { display:block; height: 60px; width: 160px; position:absolute; left: 600px; top: 30px; }

Open in new window

0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jQuery scrollTop 2 40
iOS 10 iPad Zoom and acroll 4 50
Put shading on half of picture 8 21
Why my select dropdown does not work? 8 21
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Find out what you should include to make the best professional email signature for your organization.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now