Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Chakrapani Gautam

    (@cherrygot)

    Okay, one way I can think of is this. I was able to remove the entire Summary Panel using the following line from my console.

    wp.data.dispatch('core/edit-post').removeEditorPanel( 'post-status' );

    So right now, I’m thinking of re-implementing the Summary Panel as is from here: https://github.com/WordPress/gutenberg/blob/d899945816f0af03eae7d94bb43a18bc2b877e93/packages/edit-post/src/components/sidebar/post-status/index.js#L26

    Except, the part of <PostAuthor/> is replaced with <PostOwner/>, a custom implementation from my end.

    Not sure if that’s the way to do it but that’s one solution I can think of.

    Moderator bcworkz

    (@bcworkz)

    If it works I guess it’s a solution ?? Seems like a lot of effort just to change a label. I think a CSS solution would be possible. Hide the offending label, then introduce your preferred label through the ::before or ::after pseudo selector on an adjacent DOM element. Fiddle with styling and position to get it to look right.

    Thread Starter Chakrapani Gautam

    (@cherrygot)

    Wow, that is actually clever. Why didn’t it occur to me? Just mentioning it here for anyone stumbling here, fiddle around the pseudo selector for label as suggested. The class that wraps the label is edit-post-post-author

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to re-name the label “Author” in the Summary panel in Gutenberg Editor?’ is closed to new replies.