Make WordPress Core

Opened 19 months ago

Last modified 15 months ago

#55324 new defect (bug)

Twenty Twenty: Scroll to top not working

Reported by: presskopp's profile Presskopp Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Bundled Theme Keywords: reporter-feedback
Focuses: Cc:


For whatever reason, in my installation the scroll to top arrow doesn't work. I changed

<a class="to-the-top" href="#site-header">


<a class="to-the-top" href="#">

and it was working again. Maybe worth patching?

Another alternative would be

<a class="to-the-top" href="#top">

Change History (4)

#1 @sabernhardt
19 months ago

  • Keywords reporter-feedback added

The header element has id="site-header" in Twenty Twenty's header.php.

Does a plugin (or child theme) change that ID?

#2 @Presskopp
19 months ago

It has the ID, but - don't ask me why - it's not working as is

#3 @sabernhardt
19 months ago

  1. Which browser(s) and operating system do you use when it does not work?
  2. If you look at the browser console, does it show any errors? (this might relate to the JavaScript scroll effect)

#4 @Presskopp
15 months ago

I'm sorry I forgot which installation it was so I can't tell.

Note: See TracTickets for help on using tickets.