From 5b7b58322f463993722fafd2f963f9f76fe11532 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Tue, 26 Jul 2022 13:46:03 +0530 Subject: [PATCH] fix: hero image not loading in portal homepage (backport #31699) (#31700) fix: hero image not loading in portal homepage (#31699) (cherry picked from commit 8a6432ec3f4bf63c39d1f687f618cec2360ebccf) Co-authored-by: Rucha Mahabal --- erpnext/templates/pages/home.css | 1 - erpnext/templates/pages/home.html | 6 +++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/erpnext/templates/pages/home.css b/erpnext/templates/pages/home.css index 785d8059ba0..f2661491ce2 100644 --- a/erpnext/templates/pages/home.css +++ b/erpnext/templates/pages/home.css @@ -1,7 +1,6 @@ /* csslint ignore:start */ {% if homepage.hero_image %} .hero-image { - background-image: url("{{ homepage.hero_image }}"); background-size: cover; padding: 10rem 0; } diff --git a/erpnext/templates/pages/home.html b/erpnext/templates/pages/home.html index 9a61eabaf8c..4c69b8388de 100644 --- a/erpnext/templates/pages/home.html +++ b/erpnext/templates/pages/home.html @@ -5,7 +5,11 @@ {% block content %}
{% if homepage.hero_section_based_on == 'Default' %} -
+

{{ homepage.tag_line }}

{{ homepage.tag_line }}