-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Try to create theme - But nothing apply #1590
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello @sunilit42 Seems you are doing everything right, let's try to catch what is wrong, please verify next things:
I suggest problem in of some steps above
No, you shouldn't work with lib, it would lead to incompatibility. Example of create new styles for new theme with blank theme parent:Simple wayJust create
Advanced wayCreate new parent less files
Inside your new parent styles (styles-l.less, styles-m.less) you can add any new styles or imports. Example of override exisiting styles for new theme with blank theme parent:Let's say you don't like something that included in Magento 2 lib or sources or predefined theme, as example buttons (why not?). You can simply override existing buttons implementation with create new _buttons.less file in your theme. If path are matched your theme will override default file.
|
Hello, Thanks for good explain but still same issue. One more thing notice: When i refresh page all static content not able to create automatically, I already set Developer mode in htaccess. So everytime i need to run below command: |
Renaming directories seems bad practice, after creation and call theme stored in DB. I can't reproduce your issue. Can you provide more info please? Add some screenshot with path of static files in debugger or/and created theme structure would be great. |
@sunilit42 ok, now I see that theme is created and applied and trying to reach by correct path to pub. Please verify that this files are missed in
No, you don't need that. Deleting of |
@sunilit42 gotcha, thank you for detailed screenshots |
@sunilit42 I believe we have internal ticket for that.
Doh. Well seems you did everything right, for me hard to say what's wrong. I created new themes couple times during last days and all was fine. We need plan B. Can you upload your current repo to GitHub? Will try to debug fork directly. |
uploaded theme files on dropbox https://www.dropbox.com/s/thm0398aivxaglt/Test.zip?dl=0 Thanks for your help |
I had the same situation and I deleted also the folder /var/view_preprocessed, or in backend System/"Cache Managed" clicked on button "Flush Static Files Cache". Maybe it will help. |
this is not a solution..every time when I changed something in CSS then
|
I think so too! :) |
waiting for some good answer !!! |
@godban , is there any solution? |
@sunilit42 as for theme that you provided, I didn't find required
We found issue with copies of LESS source files that are created instead of symlinks in client side less compilation. That mean there is no chance to apply changes without deleting 'pub/static/frontend' manually now. Sorry about this. |
hey, any news on this? |
Hey @sunilit42, |
@sunilit42 Are you still able to reproduce this issue? |
one more question: if i want to do some small changes into cssm then how i can do directly and test. Because in magento2, that working based on saas, so it merge all css and creating css file, so much time consuming, how we can do quickly. |
Hello, I installed Magento ver. 1.0.0-beta. I have cloned from luma theme as child theme under /app/design/frontend/Vendor/lumaDark Note: Grunt is installed with necessary tool like [watch] and its working fine. If I change something from /app/design/frontend/Vendor/lumaDark/Magento_Checkout/web/css/source/module/_minicart.less file. it doesn't showing under Grunt watch from command line. While If I change it from /pub/static/frontend/Vendor/lumaDark/Magento_Checkout/web/css/source/module/_minicart.less It showing file changes status in Command Line and less processing has been working fine. So what is the exact way to work with less as well as grunt watch parallel for run time less processing? Please help me.. |
Hello, @vasuscoin Have you added your theme (Vendor/lumaDark) to the themes list grunt configuration file http://devdocs.magento.com/guides/v2.0/frontend-dev-guide/css-topics/css_debug.html#grunt_prereq |
Hey @eug123 |
@eug123 When execute |
Sorry, @vasuscoin Have skipped info about your magento version. |
@eug123 Where from I will received this file? |
Hi @vasuscoin |
In which branch we have to work after cloned from |
I got answer for my query at |
Fixed. |
Hello,
I am trying to create new theme in magento 2.
I am trying to change background color.
So i copied web/css/source/_theme.less
And change @page__background-color: @Color-White; to @page__background-color: @color-gray19;
But nothing changed into frontend side.
Already removed static files.
Also If i want to add more color code then i need to edit below file?
lib\web\css\source\lib\variables_colors.less
The text was updated successfully, but these errors were encountered: