Great theme, really appreciate the effort.

I'm working on a site using Danland as the basis & I'd like to include some text on each banner image that is then a hyperlink through to different pages on the site. Any suggestions of how to do it?

I know that the preface blocks can be used to place text on the banner image, but that only loads when the page loads, not each time the image changes. Is there a way of linking those?

Comments

danpros’s picture

Hi,

You can try the following code

<a href="your-url"><img src="<?php print $base_path . $directory; ?>/images/banners/sea.jpg" width="950" height="355" alt="Banner 1"/></a>
Dubber Dan’s picture

Oh yeah, that was obvious! Thanks Dan.

Would it be fairly simple to replace the current banner that's hardcoded in, to use a rotator/slider module (http://drupal.org/node/418616) instead?

danpros’s picture

Glad I can help :)

Of course you can do that, try creating your own slideshow using the modules you choose and replace the current slideshow.

danpros’s picture

Status: Active » Closed (fixed)

The problems is solved. I'm gonna close this.

Thanks,

michaelway’s picture

I get a delay between images with IE when I add a link to the images. Firefox and chrome work just fine. Any ideas?

oemer’s picture

I also get a delay between images with IE 8 when I add a link to the images.

danpros’s picture

Hi,

What version you are using 2.x?

Try change the script to this in page-front.tpl.php

  <script type="text/javascript">
jQuery(document).ready(function($) {
    $('.slideshow').cycle({
		fx: 'fade' , timeout: 8000, delay: 2000});
});</script>
oemer’s picture

Hi,

I'm using the latest version 6.x-2.0.
I replaced the script with yours, cleared cache, no change.

URL:
http://www.guppy-online.com/guppyfarm

Regards
Oemer

danpros’s picture

Hi Oemer,

Its strange behavior in IE8.

How about wrap the <a> tag with <div> like this:

<div class="slideshow">

<div>
<a><img/></a>
</div>

</div> 
oemer’s picture

Hi Dan,

nope. Doesn't have any effect... :(
Ömer