Razor allows you to add hero background and project or portfolio images in the template.
Adding a Hero Background Image
To add your own hero background image, follow these instructions:
- Select the image from your PC that you want to display and resize it, if necessary.
- 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.
- Open the style.css file in a code editor and perform a search for ../images/background.jpg within the file.
- Change the file name to the file name of your profile image.
- For more information, refer to the code example.
- 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 background image:
@media screen and (min-width: 550px) {
.hero {
background-image: url("../images/background.jpg"); } }
Adding Project or Portfolio Images
To add project or portfolio images, follow these instructions:
- Select the images from your PC that you want to display and resize them, if necessary.
- 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.
- Open the index.html file in a code editor and look for the projects section within the file.
- Change the file names to the file names of your project or portfolio image.
- For more information, refer to the code example.
- 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 project or portfolio images in the index.html page:
<a href="#" class="startup-brand"><img src="assets/images/project-1.jpg" alt=""></a> ... <a href="#" class="startup-brand"><img src="assets/images/project-2.jpg" alt=""></a> ... <a href="#" class="startup-brand"><img src="assets/images/project-3.jpg" alt=""></a> ... <a href="#" class="startup-brand"><img src="assets/images/project-4.jpg" alt=""></a> ... <a href="#" class="startup-brand"><img src="assets/images/project-5.jpg" alt=""></a> ... <a href="#" class="startup-brand"><img src="assets/images/project-6.jpg" alt=""></a>