cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with Create New Theme based on the blank theme

Problem with Create New Theme based on the blank theme

I'm new to Magento I try to create new theme based on the magento blank theme and I follow the Frontend developer guide in magento web site but I could not inherit from Magento/blank and when I open the site it want load the css and javascript

 

I follow this Frontend developer guide from magento web site 

 

 

 

I create this folders and files

 

---------------------------------------------------

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

---------------------------------------------------

 

and theme.xml

---------------------------------------------------

 

<theme xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Config/etc/theme.xsd">
     <title>Test Theme</title> <!-- your theme's name -->
     <parent>Magento/blank</parent> <!-- the parent theme, in case your theme inherits from an existing theme -->
     <media>
         <preview_image>media/No_CSS.jpg</preview_image> <!-- the path to your theme's preview image -->
     </media>
 </theme>

 

---------------------------------------------------

 

and registration.php

 

--------------------------------------------------

 

<?php
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
\Magento\Framework\Component\ComponentRegistrar::register(
    \Magento\Framework\Component\ComponentRegistrar::THEME,
    'frontend/TestVender/TestTheme',
    __DIR__
);

 

--------------------------------------------------

 

and I add this to \var\www\html\magento\dev\tools\grunt\configs\themes.js

 

--------------------------------------------------------------------------------------------------

 

    TestTheme: {
        area: 'frontend',
        name: 'TestVender/TestTheme',
        locale: 'en_US',
        files: [
            'css/styles-m',
            'css/styles-l'
        ],
        dsl: 'less'
    },

 

--------------------------------------------------------------------------------------------------

 

and this is how my page look like when I open it

TestTheme

 

and I already did 

grunt clean: TestTheme

grunt exec: TestTheme

grunt less: TestTheme

and clear var/cache,var/page_cache

 

Did any one facing the same problem I get

 

2 REPLIES 2

Re: Problem with Create New Theme based on the blank theme

Having the same problem would love to see an example of a working theme based off of either luma or the blank theme. 

Re: Problem with Create New Theme based on the blank theme

Having the same problem too.

 

I thought it was just me.