visuallization
Forum Replies Created
Viewing 2 replies - 1 through 2 (of 2 total)
-
Dear Anders,
That was fast! Thanks for your quick support!
It works! 🙂Just to let you know, it still throws 2 warnings, when I set WP_DEBUG to true.
But I am not sure if this has something to do with the individual site.Notice: Undefined index: url in wp-content/plugins/advanced-custom-fields-pro/api/api-helpers.php on line 3851 Warning: Cannot modify header information - headers already sent by (output started at wp-content/plugins/advanced-custom-fields-pro/api/api-helpers.php:3851) in wp-includes/pluggable.php on line 1174Cheers,
FlorentinThanks Vladimir for putting me into the right direction.
But this code only nearly works.You would have to put the additional quotes only to the “#scroll-top” not the whole “href=#scroll-top”.
The code would look like this now:
jQuery(document).ready(function ($) { $('a[href="#scroll-top"]').click(function () { $('html, body').animate({ scrollTop: 0 }, 'slow'); return false; }); });This should work now and restore the scroll-top functionality while preserving other wp plugin logic.
But thanks again for putting me into the right direction! 🙂
Could the theme developers deploy this solution, once it is confirmed as a valid solution?
Viewing 2 replies - 1 through 2 (of 2 total)