Disable link on pictures, Enable only on the text

  • xaxier
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 23 hours ago #24580 by xaxier
Hi There,

I manage to get the module working but can we actually make only the text will be clickable for the link? The reason I am doing this is that for most smartphones and tablets user, they do not have the mouse-over effect and the moment the user touch the particular pane, it will lead them to the link. I would like to disable the clickable link on the pictures but user can still click on the text to go to the desired link.

Thanks in advance

Please Log in to join the conversation.

More
12 years 22 hours ago #24589 by ivan.milic
You could swap activation to "On mouse click" in module settings

Please Log in to join the conversation.

  • xaxier
    Inactive member
  • Topic Author
  • Member
  • Member
More
12 years 22 hours ago #24592 by xaxier
Hi Ivan,

Thanks for your suggestion. But basically it did not help in this case. For example, even if you change to "on mouse click", the moment the tablet or smartphone user click on the pane, the pane will show but at the same time, the user will be directed to the link location. Most of the time, user just want to open the pane but ended up directed to the link location due to the link provided

Please Log in to join the conversation.

More
12 years 17 hours ago #24598 by ivan.milic
Try this, open modules\mod_hot_accordion\tmpl\default.php

find this line:

jQuery("ul.hot_accordion li a.accordion_block").<?php echo $animateActivation; ?>(

change it to this:

jQuery("ul.hot_accordion li a.accordion_block IMG").<?php echo $animateActivation; ?>(

that will make only image clickable

Please Log in to join the conversation.

Time to create page: 0.159 seconds
Powered by Kunena Forum