The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpDiscuz community!
Merry Christmas and Happy Holidays! 🎄
[Solved] offset scrolling
(@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?
This topic was modified 4 years ago by
odi20
(@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.
(@odi20)
Joined: 4 years ago
Active Member
Posts: 4
Sep 01, 2021 10:22 am
@asti Thanks, so i have to wait. Any estimated time for release? 🤩
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8203
Sep 01, 2021 1:18 pm
I'm sorry, but we can't provide any ETA yet.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8203
Sep 08, 2021 8:32 am
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
Sep 08, 2021 8:27 pm
@asti Thank you. Perfectly worked.