core/site-logo


Display a graphic to represent this site. Update the block, and the changes apply everywhere it’s used. This is different than the site icon, which is the smaller image visible in your dashboard, browser tabs, etc used to help others recognize this site.

Block Example #1 – Linked

Code Structure #1

<div class="is-default-size wp-block-site-logo"><a href="{url}" class="custom-logo-link" rel="home"><img loading="lazy" src="{src}" class="custom-logo" alt="{Site Title}" srcset="{srcset}" sizes="{sizes}" width="300" height="300"></a></div>

Block Example #2 – Unlinked

Code Structure #2

<div class="is-default-size wp-block-site-logo"><img loading="lazy" src="{src}" class="custom-logo" alt="{Site Title}" srcset="{srcset}" sizes="{sizes}" width="300" height="300"></div>
,

Leave a Reply