My site has a banner image (http://djazz.us) and I want it to have an anchor link back to my site. The banner image is specified in the style sheet but I am having a hell of a time trying to figure out how to wrap the image with an anchor tag to link it back to my page.
When viewing an archive template I want the user to me able to return to the main index by clicking the image.
Why is this so difficult?
Im using one of the default "city" themes that comes with MT4.2x .
Reported on Movable Type 4.261
Does this help ?
http://www.composing-stick.net/2009/01/how-to-make-a-clickable-header-in-movable-type---part-two.html
Thanks for the reply ROb. That doesn't help me. That example is how to make the Blog Title clickable, which is easy because I can see where that is in the template (no problem with that). The problem here is that I want to make my "banner image" clickable and the image is defined in the style sheet rather than a template.
If you want to make the image itself clickable, then you have two main choices:
Rewrite part of the header and CSS to make the background image an <img> tag or use JavaScript to attack an onclick event to the container where the banner is located. Using the jQuery JavaScript toolkit, that would look like this for the Profession Website template set:
$(document).ready(function() { $("#header").click(function() { window.location.href = "<mt:BlogURL/>"; }); });does Moveable Type 4.2x include the jQuery Javascript objects already or do I need to include them myself by hacking the template?
Using the script approach ... Did you get this to work? How do you call the script within the template (i.e banner header)?
Thanks
Using the script approach ... Did you get this to work? How do you call the script within the template (i.e banner header)?
Thanks
Haven't tried it yet but I will look at it soon. I haven't had time but its the next big thing on my list to do.
It turns out that the solution was to Edit the template named "Entry". THen, wrap the MT tag that is labeled as the header with a anchor tag. Its that simple. I'm suprised nobody else was able to tell me this. It took a while to figure out.
I'd say that it would be nice if Movable type , by default, included an anchor back to the main site in the Entry template.
See my site to see how I did it:
http://djangology.net
Just view source while viewing one of the Entry templates.