Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Make whole summary item div clickable


Roxyjee
Go to solution Solved by tuanphan,

Question

Site URL: https://www.susanchalkermassage.com/

Hi Circle,

I want to make my whole summary item div clickable. You'll see on the website its the summary items under modalities. (summery item png attached)

I have tried the following

<script>
  Y.on('domready', function(){
Y.one('.sqs-block-summary-v2 .summary-item').on('click', function(e){
  window.location = $(this).find("a").attr("href"); 
  return false;
});
</script>

and this

$(".summary-item").click(function() {
  window.location = $(this).find("a").attr("href"); 
  return false;
});

nothing is happening!

Thanks for reading. 

summary item.png

Link to post
  • Answers 2
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Posts

use above code (code 2)  + add this to Code Injection Header <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>  

Posted Images

2 answers to this question

Recommended Posts

  • 0
20 hours ago, tuanphan said:

use above code (code 2) 

+ add this to Code Injection Header


<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>

 

Thanks so much! It worked.

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...