gk comments widget

January 2012 WordPress Theme
GK User
Tue Sep 16, 2014 6:48 pm
Hi,

another question:
I am using gk comments widget in sidebar area - down at "Kommentare":
http://work.luftschubser.de/zenokopf-zw ... amsknogel/

Do you see the huge space between each comment?

How could I decrease that space?

Searched wp.css and template.css, but didn't found the right part.

And:
Is it possible to delete "time" of the comment?
I like the date. But I do not like the time of comment.
Guess, there are a lot of visitors, that would like to have more privacy.


thanks!!!

cheers
Alex
User avatar
Senior Boarder

GK User
Tue Sep 16, 2014 9:51 pm
Oh and because it's about the sidebar:
Where can I change the background color of sidebar area?

Thanks!
User avatar
Senior Boarder

GK User
Wed Sep 17, 2014 9:00 am
Hi,

Please add this code into css/override.css file:
Code: Select all
.widget_gk_comments li {
   margin-bottom: 5px;
}


If you want to remove the time, you'll have to edit widget source code: Game/gavern/widgets.comments.php file and remove this fragment:
Code: Select all
echo '<small>' . $comments[$i]->comment_date_gmt . '</small>';
(around line 92).

Regarding the sidebar color - it will be difficult because of the structure (paddings etc).
You can try this code, but it won't be good:
Code: Select all
#gk-mainbody-columns > div > aside {
background: #aaa;
}
User avatar
Moderator

GK User
Sat Nov 01, 2014 7:22 pm
Hi,

I deleted this entry:
echo '<small>' . $comments[$i]->comment_date_gmt . '</small>';

Now Comments are showen this way: Alex 02. August 2014 at
Could you just tell me, where I could delete the word at from comments?
Couldn't find it in comments.php or other php-files.

Thanks!

Alex
User avatar
Senior Boarder

GK User
Mon Nov 03, 2014 9:22 am
Hi,
I can't see this "at" word on your comments here: your_website.de/zenokopf-zwiesel-gamsknogel/
Generally after this modification, only coments author should be visible.

You can also use this code to display only date:
Code: Select all
echo '<small>' . date('F j, Y', strtotime($comment->comment_date)) . '</small>';

and date format may be changed in this case (F j, Y)
User avatar
Moderator


cron