How to keep original block editor Icon when setting site Icon?
-
Hi all, as per the title of this post. I want to have a site logo (Appearance > Customise > Site Identity > Site Icon) but at the same time do not want the logo to change when editing a page/post within the Block Editor. I would much prefer to either keep the original WordPress logo, or ideally, add my own logo separate from the Site Icon.
Could the following be changed to either prevent the chance when a Site Icon is set or specify another separate custom image to use?
/** * Overrides the custom logo with a site logo, if the option is set. * * @param string $custom_logo The custom logo set by a theme. * * @return string The site logo if set. */ function override_custom_logo_theme_mod( $custom_logo ) { $sitelogo = get_option( 'sitelogo' ); return false === $sitelogo ? $custom_logo : $sitelogo; }
Hopefully this can be done.
Thanks in advance.
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘How to keep original block editor Icon when setting site Icon?’ is closed to new replies.