canยดt see background image

Created on 17 August 2020, about 4 years ago
Updated 7 November 2023, about 1 year ago

Hi,
I installed the background image module, added the directory background__image/css.
I use a bootrap Radix subtheme.

In my page.html.twig I added these lines:
{# Background Image #}
{% block background_image %}
{% if page.background_image %}
{{ page.background_image }}
{% endif %}
{% endblock %}
But I still canยดt see the background image - what is going wrong?

thanks for any help!

๐Ÿ’ฌ Support request
Status

Fixed

Version

2.0

Component

Code

Created by

๐Ÿ‡ฆ๐Ÿ‡นAustria inst

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia Nigel Cunningham Geelong

    You also need to place the Background image block or blocks in the region. Could that be what was missed?

  • ๐Ÿ‡ฌ๐Ÿ‡งUnited Kingdom effortDee

    I too am still having this issue, not showing the background image, have been trying for weeks to no avail.

    i have tried multiple themes, bootstrap, drupal standard and minimal lite theme and none work.

    Followed the tutorial about 10 times and can't get it to work.

    get this error in the logs:

    ypeError: Argument 4 passed to Drupal\background_image\Controller\BackgroundImageCssController::deliver() must be an instance of Drupal\Core\Language\Language, string given in Drupal\background_image\Controller\BackgroundImageCssController->deliver() (line 376 of /home/feafccef/public_html/live/website.com/modules/background_image/src/Controller/BackgroundImageCssController.php)
    
    #0 [internal function]: Drupal\background_image\Controller\BackgroundImageCssController->deliver(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\background_image\Entity\BackgroundImage), 'public', 'en', '8f2gAOhn3CSM-tP...')
  • ๐Ÿ‡ซ๐Ÿ‡ทFrance Soubi

    You can try the patch I posted here : https://www.drupal.org/project/background_image/issues/3343182 ๐Ÿ› Background Image Not Working Fixed

    In fact, in the current version, page.background_image is always empty, my patch add an implementation of hook_preprocess_page to fill page.background_image.

  • Status changed to Fixed about 1 year ago
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia Nigel Cunningham Geelong

    Apologies for the slow reply.

    This should be fixed in the dev branch now; I'm planning on doing a new release too shortly.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024