Keyword

div class="catItemView group , make it clickable

  • Erwin Dicker
  • Erwin Dicker's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 11 months ago #57787 by Erwin Dicker
hi

at this moment category_item.. you can only click on the title/read more button and the link..
i wanna make the hole div clickable..

now after the div class="catItemView group

i add <a href and close it at the end of the dive..

but some how on the front page.. the hole item will not be clickable..
and the </a> is not on the end of the container.. but prices after the a opening..

<a href...></a> and not <a hreft..> <div..<div......../div>/div></a>

it close to early any idea's?

gr.

Please Log in or Create an account to join the conversation.

  • Erwin Dicker
  • Erwin Dicker's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 11 months ago #57788 by Erwin Dicker
Replied by Erwin Dicker on topic Re: div class="catItemView group , make it clickable
whit this add onclick="location.href='<?php echo $this->item->link; ?>';"

it works.. but i don't like the have script there...

other way?

gr.

Please Log in or Create an account to join the conversation.

  • Kannan Naidu Venugopal
  • Kannan Naidu Venugopal's Avatar
  • Offline
  • Platinum Member
  • Aham Brahmasmi
More
12 years 11 months ago #57789 by Kannan Naidu Venugopal
Replied by Kannan Naidu Venugopal on topic Re: div class="catItemView group , make it clickable
Hi Erwin Dicker,

You can see some example code here using both script and css to achieve what you intend to do.

After you add the <a href></a> inside the catItemView
					
K2 Rocks \m/

Please Log in or Create an account to join the conversation.

  • Erwin Dicker
  • Erwin Dicker's Avatar Topic Author
  • Offline
  • Senior Member
More
12 years 11 months ago #57790 by Erwin Dicker
Replied by Erwin Dicker on topic Re: div class="catItemView group , make it clickable
hi

did that but still the </a> move's from the end to the beginnen..

it's really wired..

gr.

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum