Skip to content
Read For Learn
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP
Read For Learn
  • Database
    • Oracle
    • SQL
  • C
  • C++
  • Java
  • Java Script
  • jQuery
  • PHP

logo

How do I enable the customize theme page to accept svg’s?

You’ll also need to add “svg” to the list of valid extensions in WP_Customize_Image_Control: $wp_customize->add_control( new WP_Customize_Image_Control( $wp_customize, ‘themeslug_logo’, array( ‘label’ => __( ‘Logo’, ‘themeslug’ ), ‘section’ => ‘themeslug_logo_section’, ‘settings’ => ‘themeslug_logo’, ‘extensions’ => array( ‘jpg’, ‘jpeg’, ‘gif’, ‘png’, ‘svg’ ), ) ) );

Categories uploads Tags logo, svg, uploads

Change logo url link

The login_headerurl filter is for changing the logo url of login page, according to the Codex. To change the logo URL of your homepage, you will have to look into your theme’s header.php file. You logo and it’s link are included there. Depending on your theme, they way that your URL is generated may be … Read more

Categories urls Tags links, logo, urls

How do I handle the “WP_Customize_Cropped_Image_Control” callback?

I think you add for each logo a settings field? If no, please enhance your question. If yes, then add also often the call for the cropped image control. The follow example add an section, an field for a logo option and get the possibility for cropping image. add_action( ‘customize_register’, ‘fb_logo_customize_register’ ); function fb_logo_customize_register( $wp_customize … Read more

Categories theme-customizer Tags logo, theme-customizer

How to change get_custom_logo() url?

I solved using this filter: add_filter( ‘get_custom_logo’, ‘custom_logo_url’ ); function custom_logo_url ( $html ) { $custom_logo_id = get_theme_mod( ‘custom_logo’ ); $url = network_site_url(); $html = sprintf( ‘<a href=”https://wordpress.stackexchange.com/questions/232174/%1$s” class=”custom-logo-link” rel=”home” itemprop=”url”>%2$s</a>’, esc_url( $url ), wp_get_attachment_image( $custom_logo_id, ‘full’, false, array( ‘class’ => ‘custom-logo’, ) ) ); return $html; }

Categories theme-development Tags logo, theme-development

How to remove the WordPress logo from login and register page?

You can add a filter to login_head. As explained in the Codex, add this to your code: function my_custom_login_logo() { echo ‘<style type=”text/css”> h1 a {background-image:url(http://example.com/your-logo.png) !important; margin:0 auto;} </style>’; } add_filter( ‘login_head’, ‘my_custom_login_logo’ );

Categories login Tags login, logo, user-registration

Multiple image logo for theme

I am assuming that by online and offline you mean active states of the logo. I think there are several options for you to use. The first two options can be used within your theme and then are simply changing the image file within the directory. Option One (not using WP): You can utilise a … Read more

Categories themes Tags logo, themes

Custom ID for certain menu item?

Simply use the “Class”-field for styling. Give it a unique class, target it in your CSS file. Done.

Categories menus Tags logo, menus, navigation

How to insert a logo in the header?

Try modifying the header section a bit to comply with the standards. Here is what your code right now: <div id=”header-image”> <img width=”1102″ height=”350″ alt=”” class=”header-image” src=”http://onofri.org/example/wp-content/uploads/2013/06/header1.jpg”> </div> Here is how you can modify the things: <div id=”header-image”> <a href=”https://wordpress.stackexchange.com/questions/104349/<?php echo esc_url( home_url(“https://wordpress.stackexchange.com/” ) ); ?>” title=”<?php echo esc_attr( get_bloginfo( ‘name’, ‘display’ ) ); ?>” … Read more

Categories theme-development Tags logo, templates, theme-development, themes

How to add CSS class to custom logo?

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 … Read more

Categories theme-development Tags add-theme-support, css, logo, theme-development, themes
Newer posts
← Previous Page1 … Page11 Page12
+ More

Recommended Hostings

Cloudways: Realize Your Website's Potential With Flexible & Affordable Hosting. 24/7/365 Support, Managed Security, Automated Backups, and 24/7 Real-time Monitoring.

FastComet: Fast SSD Hosting, Free Migration, Hack-Free Security, 24/7 Super Fast Support, 45 Day Money Back Guarantee.

Recent Added Topics

  • Bug in translation system: load_theme_textdomain() returns true, files are available and accessible but the language defaults to english
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • Get the name of the template/*html file used
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
  • How to display the description of a custom post type in the dashboard?
  • Critical error on image display
  • Copying WP data and files into new install?
  • How to determine the DirectAdmin WordPress backup date?
  • How to get list of ALL tables in the database?
© 2026 Read For Learn
  • Database
    • Oracle
    • SQL
  • algorithm
  • asp.net
  • assembly
  • binary
  • c#
  • Git
  • hex
  • HTML
  • iOS
  • language angnostic
  • math
  • matlab
  • Tips & Trick
  • Tools
  • windows
  • C
  • C++
  • Java
  • javascript
  • Python
  • R
  • Java Script
  • jQuery
  • PHP
  • WordPress