Adding a Logo Image for Cosmos

Cosmos has the ability for you to add your own logo in the header to give your site a more customized look and feel.

Adding a Logo Image

To add a new logo, follow these instructions.

  1. Select the image from your PC that you want to display as your logo and resize it, if necessary.
  2. Copy the logo image to the assets/images folder.
    • If you’re testing the template locally on your PC, then simply copy the image.
    • If you’ve already uploaded the template to your host’s server, then FTP the image into the assets/images folder.
  3. Open the index.html, about.html, project.html, and contact.html files in a code editor and look for the header section within the file.
  4. Change the image file name to the file name of your logo image.
    • For more information, refer to the code example.
  5. Repeat step 4 as needed for each html file that you opened in step 3.
  6. Save the files and view the updates on your PC.
    • If you’re testing locally, simply drag the index.html, about.html, project.html, and contact.html files into an empty tab of your favorite internet browser.
    • If you’ve already uploaded the template to your host’s server, then FTP the updated index.html, about.html, project.html, and contact.html files, and then view it in your browser

Here is the code which you need to modify to add a new logo image:

<div class="logo">
    <a href="index.html"><img src="assets/images/logo.svg" alt=""></a>
</div>