wpDiscuz - WordPress Comment Plugin
"Reply to" Bookmark...
 
Share:
Notifications
Clear all

[Solved] "Reply to" Bookmark Does Not Behave Properly with Sticky Menus


AeroStar
Posts: 84
Topic starter
(@aerostar)
Trusted Member
Joined: 2 years ago

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!

5 Replies
AeroStar
Posts: 84
Topic starter
(@aerostar)
Trusted Member
Joined: 2 years ago

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!

Jacob
Posts: 83
Support
(@jacob)
Member
Joined: 6 years ago

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.

AeroStar
Posts: 84
Topic starter
(@aerostar)
Trusted Member
Joined: 2 years ago

@jacob,

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.

2 Replies
Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 3943

@aerostar,

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.

Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 3943

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.

Share: