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

Limited Support

Our team is currently on holiday, so support will be limited during this period. Response times may be slower than usual, and some inquiries may be delayed.
We appreciate your patience and understanding, and we’ll resume our usual support by the end of August.

 

[Solved] offset scrolling

6 Posts
2 Users
1 Reactions
1,489 Views
Posts: 4
Topic starter
(@odi20)
Active Member
Joined: 4 years ago

Hi, My website has a fix header with height of 49px. After commenting, it scroll the page to the start of comment that is under the fix header. How can I offset to scroll in +49px?

5 Replies
Asti
Posts: 8075
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

@odi20,

You'll be able to control this using the wpdiscuz_js_options hook in the next version of the wpDiscuz plugin. The new parameter will be added, so it'd be possible to control it. 

4 Replies
(@odi20)
Joined: 4 years ago

Active Member
Posts: 4

@asti Thanks, so i have to wait. Any estimated time for release? 🤩

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

Illustrious Member
Posts: 8075

I'm sorry, but we can't provide any ETA yet.

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

Illustrious Member
Posts: 8075

Hi @odi20,

Here is the solution:

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.

(@odi20)
Joined: 4 years ago

Active Member
Posts: 4

@asti Thank you. Perfectly worked.

Share: