Hi, since we upgraded to wpDiscuz (that we love and definitely want to keep) we have the problem, that pingbacks and trackbacks suddenly appear and look very messy. our post titles are fairly long sometimes - so it breaks the whole design ...
before we did that, trackbacks/pingbacks were not shown in comments - we haven't disabled them though.
is there a way in css to hide them, or some other trick?
thanks a lot, cheers, arne
Hi @arnen,
Please navigate to Dashboard > Settings > Discussion admin page, uncheck “Allow link notifications from other blogs (pingbacks and trackbacks)” option.
Unchecking this option will only disable trackbacks and pingbacks for future posts (not existing posts). Follow this article to disable trackbacks and pingbacks on existing WordPress posts.
hi, thanks for the fast reply, but we dont want to disable them, just not show them
ok, please leave URL to allow us to check and provide CSS solution for you.
Please navigate to Dashboard > Comments > Settings style admin page, put the following CSS in Custom CSS Code" textarea.
#wpcomm .wc-comment-author{
overflow: hidden;
text-overflow: ellipsis;
width: 90%;
}
This CSS will help you to solve the issue with text-overflow.
thanks a lot, this at least fixes the horrible overflow. sadly there is no css tag for the pingbacks - is there something we could add in the wpdiscuz code ?
as you somehow filter it there to put the right avatar, maybe there is a way to put a css tag for it as well?
i guess if i add something like following code to the class.WpdiscuzWalker.php at line 227 that could maybe give me what i want? the i can grab it in css
if($trackOrPingback){
$commentWrapperClass[] = "pingback-comment";
}
Hi @arnen,
yes, the code will work. Please read this doc for wpDiscuz customization before making any changes.
https://wpdiscuz.com/docs/wpdiscuz-documentation/customization/custom-template-and-style/
Do not edit these files within the core plugin itself as they are overwritten during the upgrade process and any customizations will be lost.
thanks for this amazing support!
this worked wonderfully, thanks - now i ran into a new problem. of course now the count of the comments is wrong in the summarize bar ... any way to fix this as well? or only disabling this?
Thank you @arnen,
I suggest you use the following CSS code to hide only the Comment threads from the "Discussion Statistic" section.
Navigate to Dashboard > Comments > Settings > Styling admin page, put the following CSS code in "Custom CSS Code" textarea.
#wpcomm .wpdiscuz-stat.wpd-stat-threads.wpd-tooltip-left {
display: none !important;
}
You can also hide Hide "Discussion Statistic" section.
More info here: https://wpdiscuz.com/docs/wpdiscuz-documentation/settings/comment-form/#components