Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

getting image to link to a page

Posted on 2014-01-31
3
Medium Priority
?
367 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 25

Assisted Solution

by:Kyle Hamilton
Kyle Hamilton earned 908 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 44

Accepted Solution

by:
Chris Stanyon earned 912 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Originally, this post was published on Monitis Blog, you can check it here . It goes without saying that technology has transformed society and the very nature of how we live, work, and communicate in ways that would’ve been incomprehensible 5 ye…
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn how to dynamically set the form action using jQuery.

618 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