The effects of alcohol on
sustanon 250 leucine for – real weight loss & bodybuilding benefits?
[Solved] Changing target HTML # element for comment bubble
How-to and Troubleshooting
(@willgreeny)
Eminent Member
Joined: 3 years ago
Hi there,
The comment bubble is great. However, is there a way to make it target a different HTML? For example, the comments are disabled for people that are logged in and a member (I want the comment bubble to scroll to the HTML element above the comments to explain how to sign up and the benefits of it (such as commenting etc.).
Kind regards,
Will
(@asti)
Illustrious Member
Joined: 8 years ago
Hi Will,
I'll ask the developers and get back to you once I get a response from them.
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8190
Jun 06, 2023 9:14 am
You should overwrite the JS codes that are added for the id="wpd-bubble".
In other words, this can be reached using the JS codes.
(@willgreeny)
Eminent Member
Joined: 3 years ago
Thank you - can you provide me the way to actually do this?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8190
Jun 08, 2023 7:44 am
@willgreeny,
You can use this function. If it's necessary you should modify it:
let $= jQuery;
$('body').on('click', '#wpd-bubble', function(){ let d = $('#poetry-plus-comments'); if( d.length ){ setTimeout( function(){ $('html').scrollTop( (d.offset().top - 100) ) }, 1000 ) } } );
(@willgreeny)
Eminent Member
Joined: 3 years ago
Hello,
I implemented this on the page, but unfortunately it does not seem to work?
(@asti)
Joined: 8 years ago
Illustrious Member
Posts: 8190
Jun 16, 2023 8:05 am