Big Grid Title + comment count

Posted in: Newspaper
Post count: 14

Hello!

I have one question at the moment about adding comment count at the end of post title. How could I do that?
I edited file td_module_mx18.php and edited line 24 to “<?php echo $this->get_title() . $this->get_comments();?>” but still it doesn’t add at the end of the title.

What would be the best solution for that?

Best wishes!

Post count: 20688

Hi,

That module does not have a comment count by default
https://www.screencast.com/t/Lvu9bnCc2
You could edit the file like this
https://www.screencast.com/t/jJFZseen
The comment count should be displayed on that module after this modification
https://www.screencast.com/t/Q2KYpYbEus

Thanks

Post count: 14

Hello, that’s where I got too but how to get that comment bubble at the end of the article line. There where characters end and then it’s comments box. Like “TagDiv is nominated for best 2017. [59]” 59 are comments.

Post count: 14

Or there must be done some css? Because I need in all blocks and modules to get that comment number after the title. I can change that but I need just to know what to do, as 1 block as example 🙂

Post count: 20688

Hi,

Please provide a link to your website and I will try to give you a solution. It may prove difficult positioning it based on the article title.

Thanks

Post count: 14

Hi.

http://bit.ly/2rDyr1e

Yes but can’t it be automatically? Just + comments number after title. Like other news sites “Page title (55)”

Post count: 20688

Hi,

This is proving to be quite difficult to do. Please make the modification like this
https://www.screencast.com/t/6NSClQWt
And then enter this code in Theme Panel->Custom Css
https://www.screencast.com/t/yHpRXDUeWqzf
It should display it like you want

.td_block_big_grid_fl_1
.td-module-comments,
.td_block_big_grid_fl_1
.entry-title {
float:none;
display:inline-block;
top: -5px;
}

Thanks

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.