Question

I just created empty theme which is descendant of Luma theme. but unfortunately the styling is not appear:

enter image description here

theme.xml

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
    <title>Senheng Theme</title>
    <parent>Magento/Luma</parent>
    <media>
        <preview_image>media/preview.png</preview_image>
    </media>
</theme>

registration.php

<?php

use \Magento\Framework\Component\ComponentRegistrar;

ComponentRegistrar::register(ComponentRegistrar::THEME, 'frontend/Senheng/default', __DIR__);

Folder Structure

enter image description here

Pending requests, takes minutes to be done. enter image description here enter image description here

Could somebody help me how to fix this issue ? Any help would be very appreciated.

Was it helpful?

Solution 2

After struggled about 2 hours more with this weird issue I just fixed it by set theme back to luma and then set it back to my custom theme, and now my custom theme is working well.

I also run following command (but i am not sure does it matter or not):

grunt exec:default
grunt less:default

enter image description here

OTHER TIPS

Run Below Query in mysql, then try again:

INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0, 'dev/static/sign', '0');
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top