You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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;
}`
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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?
` /**
*/
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.
Beta Was this translation helpful? Give feedback.
All reactions