The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
"Reply to" Bookmark...
 
Share:
Notifications
Clear all

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

6 Posts
3 Users
0 Reactions
1,187 Views
Posts: 88
Topic starter
(@aerostar)
Estimable Member
Joined: 5 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
Posts: 88
Topic starter
(@aerostar)
Estimable Member
Joined: 5 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!

Posts: 129
Support
(@jacob)
Estimable Member
Joined: 9 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.

Posts: 88
Topic starter
(@aerostar)
Estimable Member
Joined: 5 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: 7 years ago

Illustrious Member
Posts: 7661

@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: 7 years ago

Illustrious Member
Posts: 7661

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: