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

How do I add a logo to my website?

The title is probably placed within the header.php file.

So openup and find something like:

<h1><a href="https://wordpress.stackexchange.com/questions/187487/<?php bloginfo("url');?>"><?php bloginfo('name');?></a></h1>

This is what displays Abraham & Co on your website.

Now first of you need your image uploaded to you images folder in the theme folder.
Add the following code BEFORE the code above:

<img src="https://wordpress.stackexchange.com/questions/187487/<?php bloginfo("template_directory');?>/images/your-logo.png">

make sure you change your-logo.png to whatever image file you have uploaded to you images folder.

Optionally you can wrap the image in a div with a class to add some css in your style.css file

— UPDATE —
I have downloaded the theme that you use but indeed this isn’t in the header.php file. There is a file called template-tags.php.
In this file on rule 17 you find <h1 class="site-title"><?php bloginfo('name'); ?></h1>

This is what displays Abraham & Co on your website. But you should first check to add a logo via the admin screen options of you theme because I believe you can just upload an image.

If you can’t do the following:
Upload your image to your images folder in your theme folder.
Replace:

<a href="https://wordpress.stackexchange.com/questions/187487/<?php echo esc_url(home_url("https://wordpress.stackexchange.com/")); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    <h1 class="site-title"><?php bloginfo('name'); ?></h1>
</a>

and replace it with:

<img src="https://wordpress.stackexchange.com/questions/187487/<?php bloginfo("template_directory');?>/images/your-logo.png">
<a href="https://wordpress.stackexchange.com/questions/187487/<?php echo esc_url(home_url("https://wordpress.stackexchange.com/")); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home">
    <h1 class="site-title"><?php bloginfo('name'); ?></h1>
</a>

Related Posts:

  1. WordPress Code Flow
  2. How can i get the name parameter defined in get_header?
  3. Is there a way to read or list wp_head() contents?
  4. Multi-page posts do not get indexed by Google due to canonical URLs
  5. Remove rel=’dns-prefetch’ href=’//maps.google.com’ from wp-head
  6. How to remove pingback from head?
  7. wp_head() outputs in body
  8. Change dns-prefetch to preconnect for external enqueued resources
  9. How to remove unnecessary elements in the HTML document head
  10. wp_head() not including styles and javascripts after a template redirect
  11. Removing Visual Composer head meta (works alone but not with IF)
  12. removing wordpress generated code from the head section?
  13. Change default s.w.org dns-prefetch resource hint value
  14. using wp_head in body tag for css style
  15. Use wp-load() and wp_head() to render a page’s header outside of WordPress
  16. Set title of page using custom page template
  17. Set up description meta automatically
  18. How to find which plugin is outputting Open Graph tags to
  19. Why would wp_head() cause the menus to break?
  20. wp_head function outputs after
  21. Remove_action inside a function
  22. Does adding a callback like this to wp_head allows you to add additional content?
  23. How can i remove JUST Description tag from wp_head() function?
  24. Custom page with WP Header showing Page not found title
  25. Getting the contents of wp_head while in admin?
  26. Wp_head () affecting my images layout
  27. How to add meta tags inside single image page?
  28. How to store wordpress functions (wp_head(),wp_footer()) in a javascript variable?
  29. “Warning: count()” printing in Page templates
  30. How can I edit a meta description
  31. Hide page name in wordpress page title
  32. Is it possible to add post specific info in head of worpress post for OG use
  33. Unable to apply selective loading
  34. why php tag is not working if i store and show it in wp_head?
  35. output specific location in the header
  36. Data validation for inline javascript
  37. Add OG meta tags to wp head
  38. and
  39. How to add CSS class to custom logo?
  40. How to Link External jQuery/Javascript files with WordPress
  41. Add tags to the section via functions.php
  42. Why is wp_head() creating a top margin at the top of my theme header?
  43. How can I remove the site URL from enqueued scripts and styles?
  44. How to insert a logo in the header?
  45. How to add stylesheets only to pages with specific shortcode?
  46. force enqueue script to be first in order of prominence
  47. What does l10n.js do in WordPress 3.1? And how do I remove it?
  48. Custom ID for certain menu item?
  49. Any advantage of using wp_scripts and is_IE when enqueuing scripts
  50. Remove meta robots tag from wp_head
  51. Caching and Versioning for rtl.css
  52. How do I force wp_enqueue_scripts to load at the END of ?
  53. Two title tags in my header
  54. wp_head() gives me some weird CSS
  55. How can I modify what is being output in wp_head, whether by a theme or WordPress in general?
  56. Removing specific style from wp_head
  57. Change Page’s Tag Using functions.php File
  58. Multiple image logo for theme
  59. How to control initial wp_head() output?
  60. Hook into wp_head(); in a plugin
  61. How to remove the WordPress logo from login and register page?
  62. How can I reduce the amount of files loaded/included per plugin?
  63. How to change get_custom_logo() url?
  64. when should an action be added to init and when should it be added to wp_head
  65. Change title in head on Archive page
  66. How can I get wp_head() as a string instead of echoing it?
  67. How do I handle the “WP_Customize_Cropped_Image_Control” callback?
  68. Add code into on a per page/post basis
  69. Change logo url link
  70. Modify page title format (when using title-tag)
  71. Display custom_background outside wp_head()
  72. How to load different css file for different pages
  73. Putting content into header.php without using wp_head
  74. How do I enable the customize theme page to accept svg’s?
  75. Replace admin bar logo
  76. Track down where script is being enqueued from
  77. Wp_head and wp_footer vs wp_enqueue_script javascript files?
  78. use add_action(‘wp_head’) in a widget for generating dynamic CSS styles
  79. What flex-width/height does?
  80. Change meta tags programatically
  81. How to use wp_enqueue_style() and wp_enqueue_script() only when needed?
  82. How to properly insert a stylesheet in wp_head
  83. append stylesheet via shortcode
  84. Change dns-prefetch to preconnect with correct protocol
  85. Remove specific CSS and JS from the head
  86. Using auth_redirect returns cannot modify header information
  87. Searching hook to set cookies before and avoid “headers already sent”
  88. Changing Login Logo
  89. How to load plugin before the wordpress jquery?
  90. Why does wp_enqueue_script ignore my ‘wp_head’ hook?
  91. wp_head() remove redundant scripts?
  92. How can I make new .css file in child theme override styles in child theme’s style.css
  93. Manipulating wp_head content
  94. WordPress login page logo customization
  95. Manually add admin bar
  96. How can i remove JUST the title tag from wp_head() function?
  97. Display a default image for custom-logo
  98. Indenting (tabbing) WP_head
  99. Disable wordpress from including jQuery in the head section
Categories wp-head Tags logo, wp-head
wpdb and acf via wp rest api
Separate the tag by comma [duplicate]

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