[wp-trac] [WordPress Trac] #42598: Twenty Seventeen: Sticky header offset issue

WordPress Trac noreply at wordpress.org
Mon Mar 5 05:11:36 UTC 2018


#42598: Twenty Seventeen: Sticky header offset issue
--------------------------+-------------------------
 Reporter:  anevins       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.0
Component:  Themes        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript
--------------------------+-------------------------
Changes (by jasonlcrane):

 * keywords:   => has-patch


Comment:

 I understand the issue to be this:
 1. User is on Page A.
 2. User selects a link that goes to Page B, and the href in that link also
 contains a hash for a specific element on Page B. For example,
 "/page-b#comments".
 3. Upon loading, Page B automatically scrolls to the element with the ID
 of "comments", but because of the fixed navigation, the top part of the
 "comments" section is covered by the navigation.

 The patch I added fixes this issue in my testing.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/42598#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list