- Posts: 24
- Thank you received: 0
Disable link on pictures, Enable only on the text
-
xaxier
Inactive member - Topic Author
- Member
Less
More
12 years 23 hours ago #24580
by xaxier
Disable link on pictures, Enable only on the text was created 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
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 22 hours ago #24589
by ivan.milic
Replied by ivan.milic on topic Disable link on pictures, Enable only on the text
You could swap activation to "On mouse click" in module settings
Please Log in to join the conversation.
-
xaxier
Inactive member - Topic Author
- Member
Less
More
- Posts: 24
- Thank you received: 0
12 years 22 hours ago #24592
by xaxier
Replied by xaxier on topic Disable link on pictures, Enable only on the text
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
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.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
12 years 17 hours ago #24598
by ivan.milic
Replied by ivan.milic on topic Disable link on pictures, Enable only on the text
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
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