问题
I installed the Magento2 open source sample data and everything works fine. When I switch to the luma theme in the admin backend I can see everything. But when I create a custom theme based on luma theme the data/images is not visible anymore. What am I doing wrong? Should it be marked somewhere?
回答1:
Ok, I figured it out. I had to make two sql queries in the database because it was a problem with the widgets assigned to the old theme:
UPDATE layout_link
SET theme_id
= '[CUSTOM_THEME_ID]'
UPDATE widget_instance
SET theme_id
= '[CUSTOM_THEME_ID]'
来源:https://stackoverflow.com/questions/57820045/why-are-the-luma-thema-sample-images-from-magento2-sample-data-not-visible-when