Adding Images in Serenity

Serenity allows you to add hero and client images in the template.

Adding a Hero Image

To add your own hero image, follow these instructions:

  1. Select the image from your PC that you want to display and resize it, if necessary.
  2. Copy the 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 file in a code editor and look for the hero section within the file.
  4. Change the file name to the file name of your profile image.
    • For more information, refer to the code example.
  5. Save the file and view the updates on your PC.
    • If you’re testing locally, simply drag the index.html file 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 file, and then view it in your browser.

Here is the code which you need to modify to display your new hero image:

<div class="container">
    <div class="hero">
        <img src="assets/images/background.jpg" alt="">
    </div>
</div>

Adding Client Images

To add client images, follow these instructions:

  1. Select the images from your PC that you want to display and resize them, if necessary.
  2. Copy the images to the assets/images folder.
    • If you’re testing the template locally on your PC, then simply copy the images.
    • If you’ve already uploaded the template to your host’s server, then FTP the images into the assets/images folder.
  3. Open the style.css file in a code editor and perform a search for the following within the file:
    • ../images/client-1.svg
    • ../images/client-2.svg
    • ../images/client-3.svg
    • ../images/client-4.svg
    • ../images/client-5.svg
  4. Change the file names to the file names of your client images.
    • For more information, refer to the code examples.
  5. Save the file and view the updates on your PC.
    • If you’re testing locally, simply drag the index.html file 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 file, and then view it in your browser.

Here is the code which you need to modify to display your new client images in the index.html page:

.client-logo-1 {
    background: url("../images/client-1.svg") no-repeat;
    width: 134px;
    height: 60px;
    padding-bottom: 1.2rem;
    float: none;
    margin: 0 auto;
    opacity: .7;
}

.client-logo-2 {
    background: url("../images/client-2.svg") no-repeat;
    width: 134px;
    height: 60px;
    padding-bottom: 1.2rem;
    float: none;
    margin: 0 auto;
    opacity: .7
}

.client-logo-3 {
    background: url("../images/client-3.svg") no-repeat;
    width: 134px;
    height: 60px;
    padding-bottom: 1.2rem;
    float: none;
    margin: 0 auto;
    opacity: .7
}

.client-logo-4 {
    background: url("../images/client-4.svg") no-repeat;
    width: 134px;
    height: 60px;
    padding-bottom: 1.2rem;
    float: none;
    margin: 0 auto;
    opacity: 0.7;
}

.client-logo-5 {
    background: url("../images/client-5.svg") no-repeat;
    width: 134px;
    height: 60px;
    padding-bottom: 1.2rem;
    float: none;
    margin: 0 auto;
    opacity: 0.7;
}