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

Remove link around logo

Look at the documentation for the_custom_logo():

Displays a custom logo, linked to home.

So it’s doing what it’s supposed to.

If you want to do anything other than that, you can get the ID of the logo image using get_theme_mod( 'custom_logo' ). Then you can do whatever you want to it, such as just outputting the image:

echo wp_get_attachment_image( get_theme_mod( 'custom_logo' ), 'full' )

Related Posts:

  1. I want to hide header in the static homepage that I am working on [closed]
  2. How do you find the logo code on theme file or where can I find the header theme file?
  3. Header Image instead of dynamic text
  4. Why won’t wp_mail() let me set the From: header when plain old PHP mail() will?
  5. How does one suppress a 404 status code in a WordPress page?
  6. disable wordpress canonical tag meta
  7. Disable h1 and h2 from rich text editor combobox
  8. Recommended location to set response headers?
  9. Is it safe to fix Access-Control-Allow-Origin (CORS origin) errors with a php header directive?
  10. Additional Option on Custom Header admin
  11. How can I use CURLOPT_USERPWD in wp_remote_post?
  12. Putting content into header.php without using wp_head
  13. Image slider to display at the very top of home page
  14. Remove rel=shortlink from HTTP header
  15. Getting redirect to happen before header output
  16. How do you log a user out with wp_logout?
  17. Change the headers content type with wp_remote_post
  18. Different custom header image on different page
  19. Why I can’t add a script-code into theme-settings without 403-forbidden?
  20. HTTP Header on specific page is application instead of text
  21. Auto-refresh page every minute?
  22. Authenticate a user for current request
  23. Facebook embeds loading the wrong language
  24. Banner in WordPress
  25. Determine what pages are in my header [closed]
  26. Creating dynamic header and footer files
  27. Safe to start a php session on get_header action?
  28. How to Access Script Tags in Header
  29. H1 tags for header image?
  30. Is there a way to get minimal WordPress functions for iframed content?
  31. Problems accessing stylesheets/scripts loaded in WP header
  32. Rotate images in header based on date
  33. Trying to set a cookie based on $_POST parameter
  34. How to add some lines to the wp-login.php header via functions.php?
  35. How to Customize Wp Default Title and a prefix
  36. Unable to add logo or header [closed]
  37. Hook to change HTTP response headers
  38. allowed_http_origins() only works in theme functions.php
  39. Insert stylesheet into WordPress header?
  40. How to register and set http/2 server prefetch for a specific asset?
  41. Header with content
  42. WordPress Template not getting my Sub-Header File
  43. How to add social follow button to header? [closed]
  44. Include two headers
  45. Empty header tags [closed]
  46. Insert Facebook button into header [closed]
  47. What is this HTTP_REFERRER “WordPress/4.1.2”
  48. Empty lines in header, how to remove them
  49. Benefits to using CSS for header image instead of html img tag [closed]
  50. Export Header and Footer
  51. How do I begin debugging where the description meta tag is set for my categories?
  52. Inserting iframe right after on header.php
  53. How to add script right after ?
  54. Code needs wrapper/container to put footer back in, but where?
  55. Including PHP files in header.php
  56. How do I modify the tag on my Category Archive page?
  57. Remove a link in the header
  58. Using a nonce Content Security Policy header for style-src for inline style elements returns errors
  59. How to make my banner (logo image) position on the center
  60. Easiest way to use relative URLs in my WordPress header
  61. Should I use do_action in the header file?
  62. Update Code to be Compatible with WP 5.3 (‘cannot modify header information’ warning)
  63. set cookies on certain page only
  64. Twenty seventeen header is not responsive
  65. 3 WP installations on the same domain, with the same header
  66. How to make custom_header_setup() image as background image?
  67. WordPress site screwed up after adding Facebook Pixel inbetween header tags
  68. WordPress cookie issue on login: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
  69. Insert Code into Header Only on Blog Posts
  70. Twenty Fourteen: Shrinking header while scrolling down
  71. How do I change top header background color
  72. only header is showing up in posts
  73. In the Header.php file, is there a way to swap between one layout and another?
  74. force download a file in template_redirect hook
  75. video header in desktop view, image header in mobile view
  76. expires header in w3 total cache
  77. Set cookie so user sees alert banner/popup only once
  78. How to set x-priority header = null while using plugin WP e-commerce?
  79. Reduce Page loading time
  80. show wordpress data without headers
  81. Code to Show for One post only in head
  82. Removing old code from header
  83. Change header based on visitor choice
  84. Random header image but also specific header for certain pages
  85. How to remove uncategorised posts from WordPress
  86. Dynamically changing header text depending on URL in WordPress html page
  87. Custom header shows two or three or more images
  88. After being hacked Fatal error: Call to undefined function get_header() in 404.php on line 1
  89. making posts linked outside of WordPress still use the same header and footer
  90. How can I add a google play badge to my header and footer?
  91. How change the header color?
  92. Custom Header won’t Repeat
  93. Loading second header.php for other homepage showing double header.
  94. My CSS, footer and header don’t show up!
  95. End of script output before headers – multiple apache error_log errors
  96. Editing Header with a Page Builder [closed]
  97. WordPress mobile and desktop header problems [closed]
  98. WordPress custom header parameter combine with cache
  99. wp_redirect problem using code snippets
  100. How can I make a code appear on the header of just one page?
Categories headers Tags headers, logo
How to set translations in javascripts for my plugin?
Heartbeat API NOT disabling

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