In my wordpress theme my logo is built into my background, how can I make part of the background (where my logo is) a link?
Any help would be greatly appreciated
Tom
With some CSS you could place a link over that area. If the container has relative position, then you can use position:absolute
, for example:
a.logo {
position:absolute;
top:10px;
left:10px;
display:block;
width:100px;
height:100px;
text-decoration:none;
text-indent:-9999px;
z-index:100;
margin:0;
padding:0;
border:1px solid red;
color:red;
}
<div id="header">
<a href="/" class="logo">Company Name</a>
</div>
then, when you have placed the link, you can remove the border and the color attributes. If you want to get better support, then paste the code here.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.