Search Form and Social Buttons

HotThemes Logo and Top Menu

To request a forum account, please login here and open support ticket. Only customers with active order(s) can open forum account!

× Discussion about Hot Designation Joomla module

Topic-icon Possible to link big images?

More
6 years 3 weeks ago #9689 by fuentism
fuentism created the topic: Possible to link big images?
I would love it if I could link the large images in HOTDesignation as well as the read more link but after poking around I can't figure it out - does anyone know how to do this? Thanks!

Please Log in to join the conversation.

More
6 years 3 weeks ago #9706 by ivan.milic
ivan.milic replied the topic: Re: Possible to link big images?
Hi "read more" link is an link ? I do not understand what do you mean by not been able to make it act like link.You simply need to enter links in link fields in module configuration.

To make large image likable you can alter modules\mod_hot_designation\tmpl\default.php


find this:
<?php if ($slot[$loop]) { ?>
    
    <img align="left" src="<?php echo $smallImage[$loop]; ?>" width="<?php echo $smallPicWidth; ?>" height="<?php echo $smallPicHeight; ?>" alt="" />
    <img src="<?php echo $bigImage[$loop]; ?>" width="<?php echo $bigPicWidth; ?>" height="<?php echo $bigPicHeight; ?>" alt="" />
    <h3><?php if($link[$loop] && $linkedTitles) { ?><a href="<?php echo $link[$loop]; ?>"><?php } echo $heading[$loop]; ?><?php if($link[$loop] && $linkedTitles) { ?></a><?php } ?></h3>
    <p><?php echo $text[$loop]; ?> <?php if($link[$loop]) { ?><a href="<?php echo $link[$loop]; ?>"><?php echo $readMore; ?></a><?php } ?></p>
    <hr />
    
    <?php } ?>



First <IMG tag is for thumb , other for big image, and you can apply this to both of them.

You can add onclick="window.location='<loation to navigate to>;'"

so it may look like this:

<IMG onclick="window.location = '<?php echo $link[$loop]; ?>';" ...


bay ucin <?php echo $link[$loop]; ?> as link value , link would be the same as in read more link. You can also use :

<IMG onclick="window.location = ' www.somesite.com ';" ...

Please Log in to join the conversation.

More
6 years 3 weeks ago #9721 by fuentism
fuentism replied the topic: Re: Possible to link big images?
Hi Ivan,

Thanks so much, that did the trick!

I had been trying to wrap the img tag in link tags and that was not the way to go... onclick worked great.

Thank you!

PS The readmore link is fine, I just meant I wanted the image to behave like the readmore link. So now everything's just like I need it :)

Please Log in to join the conversation.

Time to create page: 0.145 seconds

Links, Partners and Social Media