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. How can i change my WordPress site mobile logo which is linked to another source?
  5. Why won’t wp_mail() let me set the From: header when plain old PHP mail() will?
  6. How does one suppress a 404 status code in a WordPress page?
  7. Admin bar and fixed header issue?
  8. How to remove rest api link: in http headers?
  9. disable wordpress canonical tag meta
  10. Disable h1 and h2 from rich text editor combobox
  11. Recommended location to set response headers?
  12. Is it safe to fix Access-Control-Allow-Origin (CORS origin) errors with a php header directive?
  13. Custom endpoint and X-WP-TotalPages (headers)
  14. Getting “Cannot modify header information – headers already sent” error on wp-admin only whenever any plugin is activated
  15. Additional Option on Custom Header admin
  16. How can I use CURLOPT_USERPWD in wp_remote_post?
  17. Putting content into header.php without using wp_head
  18. Setting Last Modified HTTP Header on static Home Page
  19. If Modified Since HTTP Header
  20. Image slider to display at the very top of home page
  21. Remove rel=shortlink from HTTP header
  22. Getting redirect to happen before header output
  23. How do you log a user out with wp_logout?
  24. Indenting (tabbing) WP_head
  25. Change the headers content type with wp_remote_post
  26. Different custom header image on different page
  27. Why I can’t add a script-code into theme-settings without 403-forbidden?
  28. HTTP Header on specific page is application instead of text
  29. Auto-refresh page every minute?
  30. Is it wrong to put header tags inside WordPress help tabs? [closed]
  31. Authenticate a user for current request
  32. Want to make header and footer CMS driven sothat Editors can modify its content from wordpress admin section
  33. Facebook embeds loading the wrong language
  34. Header: Include Date Published and Date Modified
  35. Page source contains an http item that makes page insecure; but in php files it’s written as https!
  36. Cleanup Body_Class
  37. Banner in WordPress
  38. Google Tag Manger – no-script Code Not Found
  39. Determine what pages are in my header [closed]
  40. How to remove main domain header title from after sub domain header title
  41. Remove all WordPress HTTP headers (not in-source embeds)
  42. WordPress 502 | Header Upstream send too big
  43. Creating dynamic header and footer files
  44. Strange 403 header response
  45. 404 or ugly page on IE, but Firefox, Chrome looks perfect
  46. Changing header text from uppercase to normal [closed]
  47. Safe to start a php session on get_header action?
  48. My header not showing up [closed]
  49. How to Access Script Tags in Header
  50. H1 tags for header image?
  51. Where are my js and css links in header?
  52. Why does WordPress allow inserting tags into posts?
  53. How to deal with logo color on dark mode?
  54. Is there a way to get minimal WordPress functions for iframed content?
  55. Problems accessing stylesheets/scripts loaded in WP header
  56. Rotate images in header based on date
  57. Why does WP load so many files in the head of source code? How do I optimize it?
  58. Trying to set a cookie based on $_POST parameter
  59. How to add some lines to the wp-login.php header via functions.php?
  60. How to Customize Wp Default Title and a prefix
  61. Unable to add logo or header [closed]
  62. Hook to change HTTP response headers
  63. allowed_http_origins() only works in theme functions.php
  64. Insert stylesheet into WordPress header?
  65. Why are tags from the header showing up on my WordPress site? [closed]
  66. How to register and set http/2 server prefetch for a specific asset?
  67. Header with content
  68. WordPress Template not getting my Sub-Header File
  69. How to add social follow button to header? [closed]
  70. Include two headers
  71. Empty header tags [closed]
  72. Insert Facebook button into header [closed]
  73. What is this HTTP_REFERRER “WordPress/4.1.2”
  74. Empty lines in header, how to remove them
  75. Benefits to using CSS for header image instead of html img tag [closed]
  76. Export Header and Footer
  77. Custom headers in WordPress, are there also custom footers?
  78. Point get_header() to different plugin
  79. How do I begin debugging where the description meta tag is set for my categories?
  80. How do I get the Social Media Plugin to show up in my Twenty Eleven child theme’s header?
  81. Inserting iframe right after on header.php
  82. How to add script right after ?
  83. Adding more tabs to horizontal navigation bar
  84. Code needs wrapper/container to put footer back in, but where?
  85. Dynamic height in custom header image panel
  86. How can I remove or change the tooltip of an icon
  87. Design Header meta on single posts wordpress
  88. Including PHP files in header.php
  89. How do I modify the tag on my Category Archive page?
  90. Remove a link in the header
  91. Remove server response header
  92. Using a nonce Content Security Policy header for style-src for inline style elements returns errors
  93. How can I use an iframe element as my header media?
  94. How to make my banner (logo image) position on the center
  95. Easiest way to use relative URLs in my WordPress header
  96. Should I use do_action in the header file?
  97. Update Code to be Compatible with WP 5.3 (‘cannot modify header information’ warning)
  98. set cookies on certain page only
  99. Twenty seventeen header is not responsive
  100. 3 WP installations on the same domain, with the same header
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
  • Post Navigation Elementor
  • Custom Elementor controls not appearing in the widget Advanced tab using injection hooks
  • WPFacet multiple loop displaying duplicate content
  • Get the name of the template/*html file used
  • Fix: WordPress.DB.PreparedSQL.NotPrepared Plugin Check (PCP)
  • Removing unnecessary CSS and JS code from wp_head()
  • hexagonal image gallery. Am I on the right track? [closed]
  • Trying to Add Paging to Single Post Page
  • Sharing media files between live and staging servers
© 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