• I have images that I would like to use as a page header/banner or front-page hero image. The way I was doing this before was to pass the relative path of an external image file to the WordPress url() function anas the source for a div background-image inline style. Something like url(‘assets/images/foo.jpg’).

    How can I do this using Timber with an external image file or with an image file that I have uploaded to the media library? I have seen examples of passing the image id to the Timber/Image() method but I don’t know how to get the image ID. Is there a way to get it using the image title? These images in the media library are not attached to a page or a post.

    Thank you

  • The topic ‘How to add a page header images’ is closed to new replies.