This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Reply To: Mobile-friendly: making featured images clickable (but not entire result area)?

#9557
trw226trw226
Participant

I managed to fix this. Not sure if this is “optimal” for others, and I think it only works with static images (not background images) but posted here in case it is useful for others. Perhaps an “official” version will come out later.

In the isotopic.php file (which should be put in your wp-content/themes/your-theme-name/asp/isotopic.php folder)

you want to replace these lines:
[html]<div class=’asp_item_img’ imgsrc=’<?php echo $r->image; ?>’ style="background-image: url(‘<?php echo $r->image; ?>’);">
<a>link; ?&gt;’&lt;?php echo ($s_options[‘results_click_blank’])?" target=’_blank’":""; ?&gt;&gt;</a>
&lt;/div&gt; [/html]

with these lines:
[html]&lt;div class=’asp_item_img’&gt;
<a>link; ?&gt;’&lt;?php echo ($s_options[‘results_click_blank’])?" target=’_blank’":""; ?&gt;&gt;<img />image; ?&gt;’ /&gt;</a>
&lt;/div&gt;[/html]

  • This reply was modified 8 years, 2 months ago by trw226trw226.
  • This reply was modified 8 years, 2 months ago by trw226trw226.