K2 catItemContent linked

Professional Joomla restaurant template comes with a custom animated modules and advanced typography elements.
GK User
Thu Oct 30, 2014 7:06 pm
Hi,

Is there any possibility to make the whole K2 catItemContent a link? I mean I'd like to click on whichever place on catItemContent in order to be redirected to another page. Now I have to click either on an image or on a title.
User avatar
Senior Boarder

teitbite
Sat Nov 01, 2014 10:12 am
Hi

Please tell me the url to the page where I can see this element.
User avatar
Moderator

GK User
Tue Nov 04, 2014 12:48 pm
Hi,

I've just sent you a PM.
User avatar
Senior Boarder

teitbite
Wed Nov 05, 2014 9:55 am
Hi

Please try replace file /html/com_k2/templates/default/category_item.php with the one attached. I have simply put all the content into:

Code: Select all
<a href="<?php echo $this->item->link; ?>"></a>
User avatar
Moderator

GK User
Wed Nov 05, 2014 11:00 am
Thanks for your answer. I've changed the code and now I see that it does link me to the next page, however I still have to click on the header or on the image to be directed there. Is there a possibility to click on the whole catItemContent?
User avatar
Senior Boarder

teitbite
Thu Nov 06, 2014 12:21 pm
Hi

Can You please tell me the page this is working ? I've tried to locate it but cannot find it.
User avatar
Moderator

GK User
Thu Nov 06, 2014 12:45 pm
I've just sent you a PM.
When I'm checking it with the firebug I can see the links but they are not clickable.
I'd like all the area indicated in the screen attached to be a link to the item.
User avatar
Senior Boarder

teitbite
Thu Nov 06, 2014 4:35 pm
Hi

Something is wrong. The <a> tag ends too soon. Have You used my file or added it by Yourself ? Please send me an access to FTP. I'll make it directly on Your website.
User avatar
Moderator

GK User
Fri Nov 14, 2014 10:04 am
Hi,

Sorry for such a delay but I was absent for a week. I've just sent you a PM with the FTP access. Actually, I've got several templates for K2, but I've used your file in the default one.
User avatar
Senior Boarder

teitbite
Sun Nov 16, 2014 10:21 am
Hi

I've removed the previous solution. Honestly I have no idea why it didn't work.

Instead I've added this into <article> layer in the same file:

Code: Select all
<a style="position:absolute;top:0;left:0;height:100%;width:100%;z-index:10;" href="<?php echo $this->item->link; ?>"></a>
User avatar
Moderator

GK User
Mon Nov 17, 2014 12:58 pm
Thanks! It works great!
User avatar
Senior Boarder

teitbite
Tue Nov 18, 2014 12:12 pm
Hi

No problem. Glad I could help.
User avatar
Moderator


cron