Solved

getting image to link to a page

Posted on 2014-01-31
3
352 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

813 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

12 Experts available now in Live!

Get 1:1 Help Now