Knowledge Base
MilesWeb / cPanel

How To Add A Logo Or An Image To Your Website?

Approx. read time : 2 min

When you are designing your website, you might want to add your logo or any image to the header of your website. In this tutorial, we will present easy steps for doing this.

For adding a logo or an image to your website, you will have to modify the HTML or the PHP file where you want the logo to be displayed.

You will have to use an FTP client for connecting to a web server and editing your files. Alternatively, you can also make use of File Manager present in your web hosting control panel.

Here are the steps for adding an image with the use of cPanel in your WordPress website:

  • Save the image with an appropriate name.
  • Login to cPanel and go to ‘File Manager’.
  • Open the ‘public_html’ folder by clicking on the ‘Go To File Manager’ option.
  • Upload your image in the ‘public_html’ directory.
  • Go to the option ‘wp-connect’ then go to ‘Themes’ and access the theme folder that you are using currently.
  • Open the file where you want the logo or image to be displayed. If you wish to add the image to the header, you have to access the ‘header.php’ file.
  • Add the image by inserting the HTML syntax mentioned below. Make sure to place it prior to the end of the <head></head> tag in the header.php file.

<IMG SRC=”logoname.png” ALT=”some text” WIDTH=600 HEIGHT=400>

  • Edit the description of your image along with the width and height.
  • Once you save the changes, reload your website. The image will now be displayed on the header of your website.
My aim is to create enriching content on topics related to SEO, web hosting and social media. The idea is to elevate the readers to new levels of usability, accessibility and understanding.
Need help? We’re always here for you.
Register Your Free Domain Name