Image not picked from page template theme

Ashutosh Pandey asked on December 13, 2018 11:29

My Kentico installation is running at: localhost:8012 I created a new page template for my page. In the Theme tab, I created following three folders:

css, images, fonts

I uploaded an image at: images/back.jpg

Three is a file named: css/custom.css which contains a line:

background: url('../images/back.jpg') no-repeat center center;

When I check the page, it says back.jpg not found and tries to find it at:

localhost:8012/images/back.jpg

This means, it is not using relative path. What can I do to fix the path?

Thanks

Correct Answer

Peter Mogilnitski answered on December 13, 2018 15:42

your all images and other resources that are part of the website design template under the theme folder of the stylesheet that uses them. you path should be with: url('/App_Themes/yourfoldder/Images/back.jpg')

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.