[SOLVED] Is it possible to have multiple clickable links in the Header or other graph
Hi Flynn -
Another quick question tonight. I'm used to being able to create graphics with multiple clickable links, using the HTML feature that allows you to define hotzones and their reference links. Is this possible in WordPress? If so, is it also possible to specify this in the Header graphic? By the way, I'm using a single graphic for the Header rather than rotating multiple images. Eric |
To be able to account for both fixed and fluid layouts Atahualpa uses the header image as background image in both cases. Image maps are not possible with background images as far as I know.
If you use a FIXED width, you could include a regular image either by messing with bfa_header_config.php, or, easier, include the image above or below the whole default header area, by putting the image into header.php, around line 877-883: PHP Code:
http://www.w3schools.com/TAGS/tag_map.asp |
I've been working on this for quite awhile now, and nothing seems to be working. I did it exactly how you said in header.php, but for some reason it is not working. Here is my code:
<!-- Header --> <td id="header" colspan="<?php echo $cols; ?>"> <img src="http://www.w3schools.com/TAGS/planets.gif" width="145" height="126" alt="Planets" usemap="#planetmap" /> <map name="planetmap"> <area shape="rect" coords="0,0,82,126" href="http://www.google.com" alt="Sun" /> <area shape="circle" coords="90,58,3" href="http://www.google.com" alt="Mercury" /> <area shape="circle" coords="124,58,8" href="http://www.google.com" alt="Venus" /> </map> <?php bfa_header_config($bfa_ata_configure_header); ?> </td> <!-- / Header --> I used the same code as the example at http://www.w3schools.com/TAGS/tag_map.asp just to be clear. Not sure why this isn't working? |
What is not working, what do you get?
|
My entire page goes blank, like there is nothing there. Is there something wrong with my code?
|
Hi --
I fixed the problem, now everything works great so thanks! One thing though -- now below my header there is a gap between the image and my page menu bar (probably about 3 or 4 pixels tall), and I was wondering how to remove the gap so that they are right on top of each other? |
post the url so I can see it
|
|
Add the red code
<img style="display:block" usemap="#header" ... |
Another, easier place to put the image map is in:
Atahualpa Theme Options -> HTML/CSS inserts -> Body top Putting it there keeps you from messing up the code. Also... that trick allows you to have a header image that extends past the body container (example of this at the top of http://socialbootstrap.com) Or a header image that is clickable only on the image, rather than across the whole banner (example at http://vividmargin.com) On vivid margin, that also allowed us to push the page menu bar up into the same horizontal space as the title image, without covering their hrefs under the clickable header. And.... The (as of this writing, empty) portfolio section at vivid margin is a separate install of WP on a subdomain. Rather than creating redirect pages, we just recreated the page menu bar in a div in the same html inserts area. (Didn't even have to write it- we just copied it out of the created source-code). The CSS that controls it still works (with some tweaking). It's a great place for all of you who want more control over the header area- I don't know why nobody mentions it as an option. |
Hello:
I've tried the code above, and it works like a charm in all browsers other than IE 8.0. In that browser part of my header is being cut off, and the weird thing is that it only does this on the pages where my sidebar is showing. I have a homepage where I am hiding the sidebar, and I can see the whole header. On subsequent pages that have sidebars, my header is being cut off on the right side where the main content window would begin. Kinda weird, any thoughts? I could really use some cause this site is being launched in 24 hours and I have worked out most of my other headaches other than this one. :) Thanks! PHP Code:
|
I noticed one other thing about my issue that I posted, if I shrink the sidebar then more of the header disappears. It appears like the main content area is overlapping the header, and hiding it, but again this is only happening in IE. I've been tearing my hair out about this, so any help would be wonderful. I don't want to lose the links in the header, just to make this go away, if there might be another solution.
Thanks.... |
:o
I fixed the issue. Wow, it was something that was so silly...and staring at me, and I could not see it. I've been up for almost 20+ hours working on this site (and another) to get ready for their launches and I guess it was just eluding me. I just needed to set the colspan to account for the header to go across (2) columns (sidebar and main content). Wow. Very cool! Hope this helps anyone else that comes across the same issue. |
I want to bring this dead thread back to life just to see if anything changed in a new version of the theme. I was trying this, following the same code that worked in another site for me, but my page menu disappears. The header shows up perfectly fine, but I lose the menu. Here is the code I was using, in the header.php file.
HTML Code:
<!-- Header --> |
check out this thread http://forum.bytesforall.com/showthread.php?t=5774
|
I might be missing something, or I might have not explained my problem correctly.
Should I be using the %logo area for my header and not the %image? Or, can I place the img src and map information all within the ATO area mentioned in that thread? Hmm, I never knew that. Will that work for the %image, like it does for that person and the %logo area? Sorry just trying to clarify as I read the thread you referenced but it talked about adding a logo into the blog and I am trying to add a whole header, make it clickable (which I know how to do) and have it not remove my page menu bar at the same time. Thanks. I really do appreciate your assistance as always! |
there are two seperate areas in teh header (actually there are more but let's talk about %logo and %image) %image controls weither Atahualpa will create an area that will show the image(s) that is in the images/header folder. If you use %image you can also have the blog title and tagline float over the image.
The %logo is for displaying your logo, the blog/tag lines and/or the rss feeds. You can use eithor or both. If you want to use an image source and map pick one, or have two maps and use bot or toss them both out and do it like the other thread talks. It's your choice. I personally like the idea of doing it like the other thread because you don't have to change any code and it's stored as an option |
I am working to ad multiple href links into the header image. I think I have this worked out except for to lines about 10 px each that are showing above and below my image.
Is this because of a style or class issue? I added the code in ATA->Header Area-> Configure Header Area the url for viewing is: http://www.thaddeusfonck.com/GenWood/ HTML Code:
%bar1 |
Every miss the forest because of the trees.
Found my error. <p> That was it, staring me in the face. |
All times are GMT -6. The time now is 11:13 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.