Site Logo


Display an image to represent this site. Update this block and the changes apply everywhere.

  • Name: core/site-logo
  • Category: theme
  • API Version: 3
  • Block Type: Dynamic (server-rendered)

Attributes

Defined via the attributes property in block.json.

Attribute Type Default Description
width number
isLink boolean true Role: content
linkTarget string "_self" Role: content
shouldSyncIcon boolean

Supports

Defined via the supports property in block.json.

Block Styles

Defined via the styles property in block.json.

Style Name Label Default
default Default Yes
rounded Rounded No

CSS Selectors

Defined via the selectors property in block.json.

  • filter:
    • duotone: .wp-block-site-logo img, .wp-block-site-logo .components-placeholder__illustration, .wp-block-site-logo .components-placeholder::before

Block Markup

This is a dynamic block. It is rendered on the server and does not save HTML in post content.

In post content, it is stored as a block comment:

<!-- wp:site-logo /-->

Source