Questions tagged [styles]
The styles tag has no usage guidance.
28
questions with no upvoted or accepted answers
2
votes
2
answers
35
views
styles.css not found 404 after executing setup:static-content:deploy
I'm trying to setup the project locally and after executing php bin/magento setup:static-content:deploy -f es_ES only sass directory is showing up but no css directory.
As you can see it is trying to ...
2
votes
1
answer
3k
views
Magento 2 How to correctly change style in less
I creat my theme, same as luma, parent Blank.
I try change style for search (add background-color and change opticaly.
I see in less file: app\design\frontend\Vendor\default\Magento_CatalogSearch\web\...
1
vote
0
answers
226
views
How can I prevent styles-l.css loading for mobile only?
I'm trying to clean up some of our over stuffed css and js. Chrome inspector shows that styles-l.css is 100% unused for mobile and is used a little for desktop. I used 'remove' in the ...
1
vote
0
answers
79
views
Magento pages loading in one line
This may not be a Magento issue but i am currently being asked to try and stop the our home page loading the way it does for one of my clients. I have been told the site never loaded like this before ...
1
vote
1
answer
1k
views
How to add style(css,js) to custom widget
Hi i can try to add style to widget in the usual way.
like here https://webkul.com/blog/magento2-how-to-add-css-and-js-file-in-module/
its not working.
How can i add to css file to widget?
1
vote
1
answer
130
views
Magento2: Issue with style CSS
We have an issue with load style CSS:
Warning: include(/home/log/domains/domain.com/public_html/generated/code/Magento/Framework/Event/Config/Reader/Proxy.php): failed to open stream: No such file or ...
1
vote
0
answers
35
views
Custom Options - styling
How to change the style of the custom options in magento 1.9, like font-size, etc.
Can this be done from the admin panel?
1
vote
1
answer
40
views
Magento-2.2 development with CSS only (no use of LESS)
I know Magento 2 uses LESS for styling but what if I'd like to build a site with CSS only?
I don't want to use LESS in my custom theme.
How can I achieve this?
1
vote
1
answer
803
views
Magento 2 Grid System
I am trying to work out what grid system comes with Magento 2.2 for the frontend
I can see there are docs for the admin Page Grid however none of the frontend. Could someone point me in the right ...
1
vote
0
answers
508
views
Custom styles not working - Magento 2
Please note the current development is in dev mode & writing to pub/static. It is using browser sync and the sass snowdog theme for magento2.
I've got my theme running and using the Sass Snowdog ...
1
vote
1
answer
388
views
Overwrite styles of Luma blocks
Magento 2.1.2 Development Mode.
I want to overwrite the styles of the Luma theme blocks.
I have included the default_head_blocks.xml file in the path:/app/design/frontend/Vendor/mytheme/...
0
votes
0
answers
25
views
How can I add a custom stylesheet to my custom theme?
I am losing my mind because I am following guidance in documentation but literally nothing works.
I added a custom theme that references luma. my directory structure is /app/design/frontend/...
0
votes
1
answer
53
views
Magento 2 - Change value in .less file of a third party module
I need to change a value in this file of a 3rd party module from my own theme:
vendor/amasty/xsearch/view/frontend/web/css/source/module/components/_search-input.less
Am I correct that I need to make ...
0
votes
1
answer
33
views
encountered an issue where the modifications made to the style-m.css and style-l.css files are not being reflected on the website
After the installation of the Martfury Magento theme on my server, we attempted to make changes to these two files but were unable to locate them within the theme directory. I found these files in,
/...
0
votes
1
answer
10
views
Why Address Book Missing Styles and the rest of the Body?
When logged into a customer account, if you click on "Address Book" in the sidebar, it takes you to a page that is in just the form without the rest of the sites body, and without any ...
0
votes
1
answer
415
views
Email template css styles are being ignored
I've added these styles in the admin, however only the color style is being applied. Position, left and top styles are ignored. Is there anything else I must add? Why is this happening? Any kind of ...
0
votes
1
answer
45
views
The whole website is out of whack after deleting Cache from within the Magento Admin Panel
Magento 2.4.2-p1
Porto theme
We have:
Installed fresh Magento 2.4.2-p1
used the Magento Migration Tool to migrate from Magento 1.9.4
installed the Magento Porto theme
Amasty installed a bunch of ...
0
votes
1
answer
229
views
Magento 2 - Compilation from source, errors during `php bin/magento setup:static-content:deploy`
I get this error when I execute php bin/magento setup:static-content:deploy:
Compilation from source: /app/design/frontend/company/fresh/web/css/source/lib/extend/amasty/mega-menu/header.less
variable ...
0
votes
4
answers
2k
views
Magento 2.3.1 styles.css not loaded on frontend
I just installed a fresh Magento 2.3.1, and I ran the following code to deploy sampledata. bin/magento sampledata:deploy
The sample data are successfully installed but styles.css is not loading. I ...
0
votes
1
answer
437
views
Custom bootstrap overriding my luma theme style
I added the external bootstap in my custom theme I want to be it before style-l.css I referred Load Custom CSS After style-l.css For Home Page but it's only working from home page, not for other, ...
0
votes
1
answer
34
views
Use default style
How can I use all styles from default theme in Theme 1 without copying all folders? But if I need to change some styles I have to do it in Theme 1's folder. Maybe you have some suggestions?
0
votes
0
answers
74
views
Magento 2.2 Grid in custom module missing styles and format
We've successfully created a custom module, but it appears that none of the js or css/less is being applied to a grid component that is being used.
Any suggestions would be appreciated-
0
votes
1
answer
310
views
Magento 2 - Custom style _listings.less not working
We are using Porto theme. We have our product list with the style:
<div class="product details product-item-details"> code </div>
We checked the porto .less which corresponds to:
app\...
0
votes
1
answer
991
views
Magento media queries in platform-Responsive emails
Hi i set some @media style for mobile for emails in magento (i added style in email header head section, in email header body section, in email-inline.css , in email-non-inline.css) but when mail ...
0
votes
1
answer
42
views
How can I get the stylesheet to load?
I have installed a fresh Magento2 but style sheet is not loading and When I
check the page source, the style sheet isn't there, and of course, the
page looks terrible:
http://unisolinternational....
0
votes
1
answer
40
views
style is not working at all front & backend
I have moved Magento 2.1.7 website to another host and domain.
I have correctly configured everything and it's working normally and now i'm on maintenance mode.
Style is not working on front and ...
0
votes
1
answer
83
views
Same LESS file, one media-width works, the other doesn't?
I have a custom theme with the parent of blank. In web/css/source I have_navigation_extend.less.
At the top I have
.media-width(@extremum, @break) when (@extremum = 'min') and (@break = @screen__l) ...
0
votes
1
answer
690
views
How to preload custom fonts in Magento 2.2
I have a custom font in my theme already added through the "web/css/source/_typography.less".
& when (@media-common = true) {
.lib-font-face(
@family-name: @font-family-name__base,
...