Good Day!
We have been using wpDiscuz for quite some time and enjoy it very much.
Recently, however, we noticed that if a website has a sticky menu and someone clicks a "Reply to" link, the affected comment scrolls up too far and is blocked by the sticky menu.
To Replicate (or View) Issue:
(1) Visit this page (example): https://www.omniaaerospace.com/blog/jetpacks-closer-to-mass-transportation/#comment-2
(2) Click on "Reply to Piloto"
(3) Piloto's comment will scroll to the top of the page and will be blocked by the sticky menu.
In short, we need a fix (i.e., code snippet) where we can control how far up the comment must scroll when using a sticky menu.
Thank you!
One other thing:
What is the purpose of the "Reply to ..." line entry?
Honestly, we believe it serves no useful purpose and simply adds bloat to the comments thread.
So, if you agree, would it be possible to delete it at your next plugin revision level?
Meanwhile, and after you reply to this message, we may delete that line using the following CSS code:
#wpdcom .wpd-comment .wpd-reply-to {
display: none!important;
}
Thank you!
Hi @aerostar
In short, we need a fix (i.e., code snippet) where we can control how far up the comment must scroll when using a sticky menu.
We'll take this under consideration
What is the purpose of the "Reply to ..." line entry?
Please note that you always can customize the wpDiscuz's template files.
Here is the doc explaining how to do it. You should copy the template files and remove the HTML you want.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Appreciate your quick reply. Unfortunately, it does not answer our issue or request.
Perhaps @Asti can look at this later.
Until then, we have applied the CSS code noted above.
Thank you.
What is the purpose of the "Reply to ..." line entry?
I'm sorry but we're not going to remove the Reply to ..." part. Please follow the steps below to get it resolved:
1. copy the reply_to.html file of the current layout to the current active theme /wpdiscuz/ folder as it's explained here: https://wpdiscuz.com/docs/wpdiscuz-7/customization/custom-template-and-style/
2. remove all codes in the pasted file.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.
Hi @aerostar,
In short, we need a fix (i.e., code snippet) where we can control how far up the comment must scroll when using a sticky menu.
Here it is:
add_filter("wpdiscuz_js_options", function($options){
if (!empty($options["scrollSize"])) {
$options["scrollSize"] = 130;
}
return $options;
});
You'll just need to change the red marked value as it's necessary in the case of your website.
The code should be put in your active theme functions.php file.
In case you want to say thank you! 🙂
We'd really appreciate if you leave a good review on the plugin page.
This is the best way to say thank you to this project and the support team.

