Good mornig

I am having a problem with my bannerImage. First off i show you how i did it and what the problem is.

enter image description here

In the first picture you can see, how i get the image. This method works fine for 3 other pages on this website.¨ My field setup is correct, because in other templates it works fine.

The only thing i can now think off is that there's something wrong with the name of the template.

Thanks for your help.

EDIT I fixed this problem like this.enter image description here


This might be a silly question, but is your .pic-banner class for this template styled correctly, ie. given a height etc?

Since you're setting it is a background-image it won't "expand" the element to the aspects of the image as it normally would using a img-element.

  • Thanks for your answer! Yes if there is a link to the image in the url, it works fine.
    – dashed.ch
    Oct 16 '17 at 12:39
  1. I don't think that the second screen has anything todo with it, because it's just about titles and adding a class to the body.
  2. What do you get in the source of the rendered page? Does the div inside the if statement appear or not? And if yes, try to open the image url, which is created, in a new tab and see what you get.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.