[wp-trac] [WordPress Trac] #62893: The "pin" header feature in the site editor is not working

WordPress Trac noreply at wordpress.org
Mon Feb 3 04:53:51 UTC 2025


#62893: The "pin" header feature in the site editor is not working
--------------------------+----------------------
 Reporter:  phanduynam    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Editor        |     Version:  6.7.1
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by poena):

 * status:  new => closed
 * resolution:   => invalid
 * severity:  major => normal
 * milestone:  Awaiting Review =>


Comment:

 Hi @phanduynam @hiabhaykulkarni

 The sticky feature uses CSS to position the block.
 The {{{position:sticky}}} only makes an HTML element sticky inside its
 closest ancestor.
 See https://developer.mozilla.org/en-US/docs/Web/CSS/position

 In this case, because you are setting the sticky on the group that is
 **inside the header**, it is only sticky **inside the header.**

 Please see https://learn.wordpress.org/lesson/adding-a-sticky-header-or-
 banner/

 Because this is not a bug, but how the CSS is intended to work, I am
 closing this ticket.

 ----
 Kindly remember that there are contributors who may not be able to see or
 hear video content, a text description is always needed on the tickets.
 By linking to external files, there is also a risk that that file is lost
 over time.

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


More information about the wp-trac mailing list