Have a trending section on the homepage but hide post counter

Posted in: Newspaper
Post count: 65

Hello,

I have a trending section on my homepage: https://gadgetgang.com/
This is sorted by popularity over 7 days, in order for this to work I need to have the “SHOW POST VIEWS” enabled in the theme panel.

I don’t like people seeing how many views the post has, is there any way to disable this option and still have my trending section?

Thanks,
Regards,
Dan

Post count: 35449

Hi,

You can use some custom css to hide the the view counter on blocks and and posts
https://www.screencast.com/t/i1SgtyraLhVQ
.td-post-views {
display: none;
}

Add this custom scc in Newspaper>Theme panel>Custom code>custom css

Hope this will help you to achieve what you need.
Thanks.

Post count: 65

Thanks for the help,

I added the code, however, it didn’t work until I added the !important tag at the end.

Thanks,
Regards,
Dan

Post count: 65

Hello Calin,
The post count still appears to be showing on AMPed pages. Do you have any code to stop displaying it on them pages also?

Thanks,
Regards,
Dan.

  • This reply was modified 7 years by dmxsta.
Post count: 35449

Hi,

Please replace the above custom css with this one, is not indicate to use important for amp version.
.single .td-post-title .td-module-meta-info .td-post-views {
display: none;
}

Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.