Disable not hide elements on author index template?

Posted in: Newsmag
Post count: 9544

Hi, folks
it looks like I need to make custom edit to the template used for the author index, to remove entirely the number of posts and number of comments, and move the URL below the description for author.

This would be a great toggle in admin panel; since we have comments disabled entirely, having number of comments on author template seems kind of useless as “on by default.” It will always be ‘0’ and so has no purpose.

Do I need to edit the author.php file, or a snippet that goes into the author file?

Thanks 🙂

Post count: 35449

Hi simchris, you are right, for the moment there is no option to remove those elements and the easier solution is a custom css to hide the comments and post count elements. Now in case you want to remove them so will no longer be loaded on the page, then you need to edit it in the file – wp-content/plugins/td-composer/legacy/Newsmag/parts/page-author-box.php – https://i.imgur.com/yWViXaj.png
Thank you!

Post count: 9544

aha! page-author-box.php was the ticket, thanks 🙂

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