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]
- I have WordPress setup on primary domain, how do I set it up on its subdomain using the same database?
- Which cache is kicking
- How to set Post meta-box defaults based on the choices made by user in Customizer?
- Theme Action to hook for one time only function [duplicate]
- theme-independent CSS/JS files
- Alignment Problem [closed]
- How to style bootstrap container in wordpress theme?
- What $handle does WordPress use for a theme’s implicit style.css?
- searchform.php doesn’t work properly
- CSS added through customizer neglects the need of a child theme?
- Issue when posting updates/changes to wordress
- How to override template files in parent theme?
- Customizer: get_preview_url() inside customize_save_after hook
- Valid SQL query not returning results
- How to track a users last visited page?
- get_header action not working
- In a Gallery with limited image posts, how do I not limit images on single post?
- Shortcodes do not work in own template
- Adding Bootstrap to WordPress TwentySixteen Theme
- Unable to change the priority with ‘remove_action’ and ‘add_action’ in child theme
- Place title (in correct place) above image with opaque background [closed]
- StoreFront WordPress theme: How can i create a new Home page with Custom design same as template [closed]
- How do I include a partial from a directory below a wordpress theme directory?
- Is there a way to switch to another theme?
- multiple html/css files for wordpress theme?
- New to WordPress – Read the Codex, Other Docs; Still Confused
- CSS preprocessor file messed up after compiled
- How add built-in textarea in theme development?
- Create theme for mobile phones and tablets only?
- Unwanted empty line at the beginning of document
- How to add custom page elements to the WYSIWYG editor?
- Why is my container argument not working for wp_nav_menu() [closed]
- Remove h1 from 2015 theme
- Never actually adding the action? Or do I have to call the action?
- WordPress pulling in random page themes
- best practices for updating wordpress theme
- Customize Option Framework
- How to create a WP theme that use BootStrap? [closed]
- Filter didn’t work on content class (hybrid_post_attributes)
- my single.php is mixup on some post for no reason
- How to hide custom sidebar on mobile
- When trying to set title, not sure how to edit it for different pages
- How to remove permalinks links presents in each page of my site?
- header, stylesheet not being read
- first excerpt fine, subsequent post excerpts shift to the right instead of displaying vertically [closed]
- Post archives link yields a 404 Not Found
- Change Image Sizes for Mobile Theme
- Recommended sidebar / content widths
- Theme Checker Text Domain
- Converting a theme to a child theme in a network
- HTTP Error when uploading images over specific dimensions
- Get video from the post on homepage
- Why is the `if else` not working?
- help needed for suit designing tool
- Tiny MCE custom styles, and preview in the backend