How to change image in template

‌ Hi, 

I am writing a template and I want to create a cover.

In this cover, there will be a default background image, users can change this background image by uploading new pictures.

However I do not know how to get users' uploaded photo and this is my code.

<div class="header section edit nodrop safe-mode" style="background-image:url('< ?php print template_url('images/'); ? > header.jpg'); bottom: 0px;" rel="global" field="header">
Peter Ivanov 1 week ago

hi, you need to have the cover as inner element and have class="background-image-holder" see here:
https://github.com/microweber-templates/dream/blob/master/modules/layouts/templates/skin-1.php#L69

You must be logged in to reply on this thread


Sign Up
lungc4