1

using Sitecore 10.3

This is my local instance. I have two sites under /sitecore/content.
One is from SXA, like this:

sitecore
 |_content
   |_Tenant
     |_Site
       |_Home

And the other is non-SXA, like this:

sitecore
 |_content
   |_MyCompany
     |_Website
       |_Home

Both the home pages use the same renderings and same datasources.
The images load fine in the non-SXA page but not in the SXA one.

The database is set to master here - /sitecore/content/Tenant/Site/Settings/Site Grouping/Site

This is a snap of the SXA page:

enter image description here

As you can see, the image is available in the browser console, right panel, but its showing as a grey block. When I browse the image URL, the image loads with no issues.

There are no other errors in browser console.

8
  • 1) Try to enclose the url between ' or ". 2) Give it a try background-image. May 6, 2023 at 8:30
  • @SumitHelaiya I tried in the console itself. The snap shows an image in inline css. But even images from other components which are img tags, not loading
    – sukesh
    May 6, 2023 at 10:23
  • check if the page is associated with proper theme and not the default wireframe theme May 6, 2023 at 16:17
  • @SumitUpadhyay I'm using a custom layout which has its custom css. I do not want any default themes. Should I still be doing any theme changes?
    – sukesh
    May 7, 2023 at 7:58
  • open the page in Experience Editor, click on the Experience Accelerator Tab, click Theme, see what theme is mapped for the page May 8, 2023 at 9:29

1 Answer 1

1

Since you are not using a theme, the default wireframe theme might be used. Check the mock field value for the wireframe theme (/sitecore/media library/Themes/Wireframe).

If it is not empty, please try to use the 'Clear' button, restart Sitecore and check if the issue still exists.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.