Comments on Speaker

GK User
Sun Nov 02, 2014 9:51 am
How can i add comments on speaker page?
User avatar
Fresh Boarder

GK User
Sun Nov 02, 2014 10:11 am
Hi,
in theory it's possible. because those are K2 items.
User avatar
Platinum Boarder

GK User
Sun Nov 02, 2014 12:01 pm
Yes and this option is enabled in category view, but in practice there's no comment form on speaker page. How can i add this form?
User avatar
Fresh Boarder

GK User
Sun Nov 02, 2014 12:50 pm
As I thought,
In our template each K2 category uses different subtheme (for K2 only)
and in "Speaker" case comments had to been removed from, for example, this file:
templates\gk_events\html\com_k2\templates\speakers\item.php

so it mean that if you want comments back, you have to add comments code from
templates\gk_events\html\com_k2\templates\default\item.php
User avatar
Platinum Boarder

GK User
Mon Nov 03, 2014 12:29 am
Thanks for help! After changing php file ive add some custom css, it looks fine on speaker page, but ugly on other pages, so for speaker template ive created new id "itemCommentsAnchor_speakers".

Code: Select all
#itemCommentsAnchor_speakers {margin: 0px 20%; width: 55%;border-top:none;}
@media (max-width: 640px) {
#itemCommentsAnchor_speaker {margin: 0px 5%; width: 90%;}
}
User avatar
Fresh Boarder

GK User
Mon Nov 03, 2014 7:37 am
You have also alternative solution.
Use this same K2 theme as was before and , for example, additional social comments under those K2 items only.
If request only installation extra extension which you can find on JED.

So you'd have both theme + comments without customization php or css code :mrgreen:
User avatar
Platinum Boarder


cron