You can change the logo in the block editor or site editor using the SlotFill system.
Have a look at the this example code taken from https://developer.wordpress.org/block-editor/reference-guides/slotfills/main-dashboard-button/
import { registerPlugin } from '@wordpress/plugins';
import { __experimentalMainDashboardButton as MainDashboardButton } from '@wordpress/edit-post';
const MainDashboardButtonTest = () => (
<MainDashboardButton>
Custom main dashboard button content
</MainDashboardButton>
);
registerPlugin( 'main-dashboard-button-test', {
render: MainDashboardButtonTest,
} );
Related Posts:
- How would one modify the filtering Gutenberg applies to pasted content?
- Gutenberg: Is there a way to know if current block is inside InnerBlocks?
- How to add a custom CSS class to core blocks in Gutenberg editor?
- How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table elements?
- Changing text within the Block Editor
- Remove left alignment option in core/image block
- Changing Gutenberg / WP block editor width only on pages, not posts or other taxonomies
- Filter Gutenberg Blocks Content
- How do I replace a render_callback function for a block?
- How can I filter block registration based on post-type? (Block alignment settings)
- Gutenberg disable the “block” tab in right sidebar
- How to change the order of HTML output of a core block?
- Gutenberg – Add align controls to a custom block
- Can the wordpress color palettes by changed through Javascript?
- Inline Styles on all native blocks
- How to link the whole list item in Gutenberg’s latest posts block?
- add_filter(allowed_block_types) -> adding core/paragraph bugs Gutenberg editor
- Set default terms for new posts / CPTs
- Detect when gutenberg editor title is available in Dom after editor load
- Gutenberg Block – Post Featured Image Filter Hook
- Set default value for “Additional CSS class(es)” for specific block types
- How to hide/remove GhostKit component panel in gutenberg block inspector
- Filter for author list in gutenberg core editor
- How to optionally append components to the output of a gutenberg block?
- Problem width wp_insert_post_data and Gutenberg block editor
- WordPress Gutenberg core/heading block (wp-block-heading)
- Changing the category for existing Gutenberg blocks
- How do I check if I can use the allowed_block_types filter?
- How to add lazy field in content endpoint using Gutenberg blocks
- How to add custom HTML attribute to reusable block div in WordPress admin
- How to remove a filter that is an anonymous object?
- How to add defer=”defer” tag in plugin javascripts?
- How do filters and hooks really work in PHP
- Trouble understanding apply_filters()
- No filter of code on switch from html to visual editor, how?
- How to modify posts_where filter only for the search query
- How to wrap oEmbed-embedded video in DIV tags inside the_content?
- How to add filter with 2 args?
- WordPress Internal @ Mentions
- Adding revision support to WooCommerce product content
- Add Class to Specific Paragraph of the_content()
- apply_filters() slices away needed arguments
- Search content for shortcodes and get parameters
- How to override the email function by using filters? [closed]
- How Can I Have A URL Changed Based on the Originating URL?
- Is it possible to Hook/Filters Attachment Creation?
- Apply the_title filter to post titles AND backend auto social-sharing plugin, but not nav menu
- How to hook some Unicode texts into calendar widget safely?
- How to add attributes to tag when template cannot be directly modified
- Edit pagination text in the get_the_posts_pagination function
- How does WordPress call functions attached to a certain action hook before calling functions attached to other hooks
- How to get current action?
- how to change appearence of the content of default post list columns?
- Use safety filters even if after applied intval?
- When adding buttons to the tinyMCE editor, how do I make them wrap to the next line and/or display in the “Kitchen Sink” area?
- How to add ‘total’ value to custom column title on the posts list page
- When to use add_action when registering/enqueuing scripts
- Is it possible to use multiple spaces in title?
- Create Page Template by hook programatically in Functions.php in WP 5.8.1
- How to remove medium size class in gravity form for input tag?
- Filter out comments with certain meta key/s in the admin backend
- HTML and custom field variable, inside variable
- WordPress custom admin notice still displays after wp_insert_post_data validation
- get post id within add_filter()
- Run posts_where and posts_join only on the main query
- Media upload default title from file name
- run shortcode in excerpt of single custom post type
- Get The Caller (Plugin / Theme / Core) For All actions & Hook in WordPress
- Error using wp_mail inside custom function
- Add/remove CRON action depending on variable
- Stripping URLs & Email from post submissions
- comment_for() Custom fields not visible when user is logged in
- Filter authors on meta value
- I’ve set up an extra field for all the available widgets. How do I show it’s value in the front-end?
- Override email_exists function
- Access post ID in “content_save_pre”
- Remove pretty photo style and script if not exist!
- Gallery stripped from excerpt of post
- Add_filter rel=”prettyphoto” to WP3.4.1
- BuddyPress – A hook available to hide custom born date on public profile view?
- How to filter the source URL of all images on every page
- auth_redirect() doesn’t send users to the page where they orginally tried to acces
- Custom sort orderby question
- Override wordpress audio playlist
- Hook to add content after date in post?
- How to bridge the gap between dynamic back-end data and front-end output?
- How to loop year & month condition together to filter correctly via AJAX?
- Add Index to Item in WordPress Gallery
- How to add_filter only when content is not empty?
- filter out
- Filter template text
- WP Dashboard -> Posts-> Filter > BUG!
- add_filter not working inside if function
- How to filter posts in admin by before date or by post status ‘future’?
- add_filter with specific thumb names
- Override typo in multiple parent theme files?
- WooCommerce comments_template Filter Not Firing
- Query Multiple Filters, one with Meta
- How to remove a filter that is an object method?
- Search and Filter Using Custom Post Type, Custom Taxonomy, and Advanced Custom Fields