WordPress provide a filter hook to custom logo customization. The hook get_custom_logo
is the filter. To change logo class, this code may help you.
add_filter( 'get_custom_logo', 'change_logo_class' );
function change_logo_class( $html ) {
$html = str_replace( 'custom-logo', 'your-custom-class', $html );
$html = str_replace( 'custom-logo-link', 'your-custom-class', $html );
return $html;
}
Reference: How to change wordpress custom logo and logo link class
Related Posts:
- Editing the custom background CSS
- How to add custom css file in theme?
- Do I actually need to link my theme’s style.css in the theme files
- How to insert a logo in the header?
- CSS classes for theme
- Are the WordPress Core CSS styles really all nessesary?
- Why I can’t add a CSS style in this WordPress theme?
- How to make a theme with more than one CSS file?
- Add colors to existing color palette without replacing it
- What flex-width/height does?
- add_theme_support( ‘custom-header’ ) does not add option menu in dashboard
- CSS in child theme not overriding the parent theme [closed]
- How to highlight the current page in the nav menu?
- Sub folder CSS that’s read by Admin panel
- Where is definied the theme location for the main menu in a WordPress template?
- Dequeue a style file which is making website load slow!
- “add_theme_support” for custom footer color?
- How to add theme support?
- Theme Loading Into Dashboard
- How to edit my theme for full width?
- Which html elements should be styled in wordpress theme
- Edit footer via customizer
- Theme Development: Starter Content after hook
- Font Awesome 5 Free – far working but fas is not? [closed]
- WordPress Unite Theme: Footer isn’t sticking [closed]
- What is the meaning of WordPress’s recommended css classes and where are they applied?
- Theming Using Bootstrap Glyphicons and WordPress Dashicons
- Having issue with WordPress wp_enqueue_style
- How can I wrap all blog posts image with
- theme style is applied on the dhasboard rather than the website
- LESS not working in WordPress [closed]
- A post with a clear:both in its css destroy the theme design, and the sidebar is moved to the bottom
- Why I obtain different visualization when I run the website on my local machine and on remote server?
- Some doubts about WordPress handle the horizontal main menu visualization
- Can’t change theme name
- How to use the _S framework
- Is there a list of default generated Gutenberg block CSS? Unable to align video blocks
- Why nav_menu_css_class doesn’t work with apply_filters?
- Adding a second logo next to the main one in header
- How can I fix my theme header for my CSS stylesheet?
- How to generate a rtl.css file for themes?
- Why the slideshow is not shown in my theme?
- adding navigation to genesis themes
- Custom link color or stylesheets
- What is The Best Way to Make Parallax header effect for wordpress theme ?? pure CSS or using JavaScript? [closed]
- Enqueue a stylesheet for login page and make it appear in head element
- Generating CSS Files Dynamically Using PHP Scripts?
- WP 3.4 – what action/hook is called when theme customisation is saved?
- Is it good to rename theme folder downloaded from WordPress.org?
- What, specifically, should be included in theme_name_setup()?
- How to get gallery images?
- Is the theme customizer slowing down my site?
- How can I get wp_head() as a string instead of echoing it?
- What does “Do not deregister the jquery script in the administration area” mean?
- What is the best book to learn how to make themes for wordpress?
- Symlink a directory to wp-content/themes
- Is there an error in get_the_tag_list()?
- Example of a theme organization without all the default wp files in root
- Convert a static website to a WordPress theme and import all existing content
- Disable the Custom Internal CSS added by theme.json for Certain Pages
- Unwanted blank lines before tag
- How do you protect a premium theme from being copied?
- Custom Nav Walker Displaying Values in Sub Menu
- How to float an image in Gutenberg
- Can’t delete theme
- How to add a second stylesheet to the editor
- How to add an RSS logo to my blogs header?
- Theme Options Page – User Updates Logo
- Can I have two different theme for two different language?
- WP_Comment_Query – Get comments and answers separately
- excerpt() shows different result between remote and localhost(development environment)
- Prefix best practice, should we use framework name or theme name?
- Theme Javascript.php Overwritten Nightly [closed]
- Using page-id-{ID} from body_class() in local dev, versus live staging
- Custom image size vs CSS sizing
- Making a WordPress theme based on twentyten
- SVG in list-style-image breaks when adding fill
- WordPress theme resource won’t load over VPN
- Alignment Problem [closed]
- What $handle does WordPress use for a theme’s implicit style.css?
- CSS added through customizer neglects the need of a child theme?
- multiple html/css files for wordpress theme?
- Unwanted empty line at the beginning of document
- Why is my container argument not working for wp_nav_menu() [closed]
- help needed for suit designing tool
- How to update mark-up of a gallery block in a custom theme?
- Host Private Custom Theme
- My wordpress theme name isn’t updating straight away
- Customizer API Multi Sections in single Panel
- How can I change this SVG shape that’s generated?
- (Parent) theme Is Not Showing In Theme Selection Panel and Therefore Breaks Child Theme
- Creating a theme just to deploy a single page
- Load multiple css simultaneously using functions.php
- Weird ‘theme update’ error [duplicate]
- WordPress two sidebar layout or theme
- Standard Way To Do Custom Work Within A Page?
- Alternating CSS classes for dynamic content [closed]
- Add Dynamic Sidebar to Exisiting WordPress Theme [closed]
- HTML to WORDPRESS [closed]
- How do I send out an update for my custom wordpress theme?