Magento – sample data not show in new theme

magento2

i`m trying to make a new theme and i setup the new theme structure like this :

TestVender/
└── TestTheme
    ├── etc
    ├── media
    │   └── TestPreview.jpg
    ├── registration.php
    ├── theme.xml
    └── web
        ├── css
        ├── images
        └── js

after all this i found my theme in the configuration > design .
But i can not see any the sample data that i found in luma theme can any one tell me why ?

Best Answer

its very simple, home blocks are not assigned to the home page while we create new theme. We only do it manually.

please follow the instruction

login to admin, then navigate to

Content->Pages

find Home Page then in action column click edit then

click the Content tab then place the below value in text area

{{block class="Magento\Cms\Block\Block" block_id="home-page-block"}}

note: here block id mention unique id of blocks, you could found the list blocks and block id under Content->Blocks

finally save page

then clear your cache of magento and browser, load the home page, you could see the home page look like luma home page.

if you want to find home page html content, find block home-page-block under the Content->Blocks then edit the block you could see the html content of home page.

have Good Luck

Related Topic