saya guna module ini
https://www.drupal.org/project/background_image
contoh;
bahagian background image; upload image yang anda mahu
pada directori bootstrap_subtheme/templates
https://www.drupal.org/project/background_image
contoh;


saya guna bootstrap_subtheme, saya copy page.html.twig kedalam saya punya template kemudian saya tambahkan code berikut;
{# Background Image #} {% block background_image -%} {%- if page.background_image -%} {{- page.background_image -}} {%- endif -%} {%- endblock %}

Comments
Post a Comment