Notifications
Clear all

hide trackbacks/pingbacks

12 Posts
2 Users
0 Reactions
3,867 Views
(@arnen)
Active Member
Joined: 6 years ago
Posts: 8
Topic starter  

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


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

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.


   
ReplyQuote
(@arnen)
Active Member
Joined: 6 years ago
Posts: 8
Topic starter  

hi, thanks for the fast reply, but we dont want to disable them, just not show them


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

@arnen,

ok, please leave URL to allow us to check and provide CSS solution for you. 


   
ReplyQuote
(@arnen)
Active Member
Joined: 6 years ago
Posts: 8

   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

@arnen,

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. 

CSS

 


   
ReplyQuote
(@arnen)
Active Member
Joined: 6 years ago
Posts: 8
Topic starter  

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?


   
ReplyQuote
(@arnen)
Active Member
Joined: 6 years ago
Posts: 8
Topic starter  

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";
}

   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

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.


   
ReplyQuote
(@arnen)
Active Member
Joined: 6 years ago
Posts: 8
Topic starter  

thanks for this amazing support!


   
ReplyQuote
(@arnen)
Active Member
Joined: 6 years ago
Posts: 8
Topic starter  

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?


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6191
 

Thank you @arnen,

I suggest you use the following CSS code to hide only the Comment threads from the "Discussion Statistic" section.

CSS

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


   
ReplyQuote
Share:
Scroll to top