Questions tagged [css]

Questions related to CSS in the context of Magento

1
vote
1answer
22 views

Magento - Should I stop to write JS/CSS directly in the backend in CMS pages?

In Magento you can create CMS pages. It is also possible to add CSS and JS code, directly to the page, which I sometimes do for rather smaller changes and style fixes and such, because then that ...
0
votes
1answer
13 views

css not loading when change admin language

After I changed the language in admin panel the css in backend didn't load. I have tried different language Any ideas?
1
vote
0answers
30 views

Mega menu issue with product zoom

I am using Magento 2.2.6 on the product page, When you view a product, and then you go to Products Menu, once the mega menu is shown up, move mouse to the menu item over the product picture area, then ...
0
votes
3answers
234 views

Failed to load resource: the server responded with a status of 404 (Not Found). How to solve this issue?

I am running Magento 2.3 with NGINX, PHP7.1 and MariaDb. This is a fresh instalation with pre-loaded data. I am getting these follow error: $ tail var/log/system.log [2019-01-09 16:36:24] main.ERROR: ...
0
votes
0answers
17 views

CSS & navbar edits for a Magento noob - ver. 2.2.6

I need to make a few simple changes to an existing Magento site, and although I have some wordpress experience, my Magento is currently 0. It's using a theme called Smartwave Porto, and the changes ...
0
votes
1answer
386 views

Porto theme header CSS customization fail - Magento 2.3

I hope someone will help me, I have searched everywhere on the community looking for this. Porto theme gives 20 pre-made styles for the header, but for the website that I am trying to make I wanted ...
0
votes
2answers
49 views

CSS are compiled but not called in frontend

I added css on my website. One is bootstrap and one is a custom css. I addedd it on my Magento_Theme folder (inside layout/default_head_block.xml) <css src="css/bootstrap/css/bootstrap.css" order="...
0
votes
0answers
70 views

Magento 2.3 admin not working after grunt setup

I have a big problem.I setup grunt configuration for magento 2.3 as I used to setup for magento 2.2 and renamed below files grunt-config.json.sample, package.json.sample and gruntfile.js.sample by ...
0
votes
1answer
31 views

Cannot locate an inline css in product page

I have installed a theme and trying to edit it. On product page I have found some blank space and while troubleshooting I have found that it is an effect of an inline css but I am unable to locate ...
0
votes
2answers
80 views

Have a option to enable/disable the module. I need to load admin page css when my module is enabled. No need to load css while module is disable

I write css in path app/code/my/module/view/adminhtml/layout/default.xml <page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/...
0
votes
0answers
15 views

Magento2 If I move containers with XML it kills css

I applied custom css to my navigation bar. Then when I moved the nav bar into the header via xml my css was no longer working. Why is that? The correct css is in the section.
0
votes
1answer
69 views

change the default magento image background white color to diffrent color

Am attaching the screenshot , want to change image background color. https://prnt.sc/m2fvyp
0
votes
1answer
23 views

What is the front-end performance differences of CSS loading types?

Magento 1.9, comparatively speaking, What are the front-end performance issues between types of loading CSS as: external internal inline as a style block (CMS blocks). Thank you so much for your ...
0
votes
1answer
68 views

custom less not working in magento 2 production mode

I've a less file inside app/design/frontend//web/css/source/_test.less and included in default.xml like <head> <css src="css/source/_test.css" /> </head> It's working perfectly ...
0
votes
2answers
41 views

css style overrides?

I was able to get my custom font to my custom theme. I made a style (CSS file) to use it, but the text-transform and letter-spacing attributes are being inherited from another style sheet? What ...
0
votes
1answer
121 views

adding custom css file priority in magento2

I have added custom CSS file in custom theme with below code in [vendor] / [theme] / Magento_Theme / layout / default_head_blocks.xml <head> <css src="css/custom.css" /> &...
1
vote
4answers
255 views

Admin Url CSS and JS not working

I tried every possible solution on this forum and nothing works: php bin/magento setup:upgrade php bin/magento cache:clean php bin/magento setup:static-content:deploy core_config_data dev/static/...
0
votes
0answers
21 views

How can I call JS-file on any page? Magento 2.2.6

I have a custom JS file. But when I try to call it - it doesn't work. I use that code on content -> pages -> my_page: <script src="My_site/file.js"></script> It's just an image-slider. ...
0
votes
1answer
63 views

I upgraded from 2.1.9 to 2.2.7 but css and javascript is not working

I tried to upgrade using these commands : composer require magento/product-community-edition 2.2.7 --no-update composer update rm -rf var/di var/generation php bin/magento cache:flush php bin/...
0
votes
0answers
51 views

Magento 2 Email Templates css not working

In this i am working on Email Templates, When iam trying to add my custom css in "Template Styles" its not working.
0
votes
1answer
56 views

How to show Clear Shopping Cart in magento 2

I wish to show Clear Shopping cart button in cart page. In default magento it was display:none, So need to show only Clear Shopping cart button as mentioned like below image. Where I need to ...
0
votes
1answer
35 views

Front-End stopped working after magento upgrade

Front-end stopped working after a 2.2.6 upgrade. As you can see on screenshots, there is something wrong with the styles-m.css file.
1
vote
3answers
133 views

Frontend styling has disappeared, and I can't get it back

Disclaimer: I'm new to Magento 2 development as of Nov 2018, and new to development generally as of mid-2017. So I'm new to asking development-help questions too. Most of the time I can figure it ...
0
votes
2answers
45 views

How to solve Unable to load CSS and JS after setup magento 2

My using Ubuntu 18 and apache2 I downloaded magento2 zip file and extract uploaded to my /var/www/html/ but always shows the above image I already setup htaccess file Already tried comments: ...
0
votes
2answers
110 views

magento 2 : How to render background images in css pages

How do you render a background image on a css page. i.e #account-links--point { background-image: url(/images/pop-up-box-point.svg); } i realise that for a less you can do this: @{baseDir}...
0
votes
0answers
35 views

No css found and admin url not found on this server magento 2

I have added my project on a virtual machine amazon and when I try to get my FO I have no CSS and when I click on any link example category I get an error The requested URL /Siteindex.php/customer/...
0
votes
1answer
35 views

How do I change CSS priority on magento1?

The button on this page along with other objects are not receiving its module parameters, instead they are receiving from (index):275 which I was not able to discover where it comes from. How do I ...
1
vote
1answer
68 views

Buy On Amazon button

I want to add "Buy on Amazon" button on my product page. I was successful in adding it with this code: <a href="<?php echo $this->getProduct()->getamazonurl(); ?>"><img src="/...
0
votes
1answer
25 views

The number of “Requests” is very large

I tested my website performance with Gtmetrix. I found that my website performance seems to be good, but the number of “Requests” is very large. I want to know if the impact of this problem is big? If ...
0
votes
0answers
19 views

Css .class element has padding: @cpanel-home… where is this reference?

I would like to edit the padding of this class, but it references elsewhere. Where is this reference stored, and how do I edit the reference figures?
0
votes
2answers
59 views

Adding css to magento 1.8.1

I'm trying to add a custom CSS file when a Magento action is loaded. My layout page is as follows : <layout version="0.1.0"> <helloworld_index_index> <reference name="head"> ...
1
vote
1answer
187 views

Magento 2.2.5 styles-m.css and styles-l.css not load

I'm working with new project and editing front-end css (working with less files), everything goes well but suddenly styles-m.css and styles-l.css in front-end not loading. Any ideas why this happened ...
2
votes
3answers
158 views

Show price inclusive tax on checkout

[Magento 1] I want to show prices on checkout inclusive of GST (Indian). Currently, it's adding the tax separately on checkout page resulting in increase final price. We would like to configure it in ...
0
votes
0answers
12 views

Magento 2 opens the product page sometimes reminds error?

Magento 2 opens the product page and sometimes prompts [Identifier "" not exist.] This error sometimes does not prompt. Is this what is the reason?
0
votes
1answer
23 views

Changing Detail tab property from <h2> to <span>

I've spent a few hours now trying to find this here on Magento StackOverflow. By default in the RWD theme, the Details tab below the short product description is hidden and in an <h2> tag. The ...
2
votes
2answers
65 views

Magento 2: How to only apply css in catalog product page in grid view but not the list view

If i change the css in the grid view, but and the css will also apply to the list view, which is i don't want it. How can i solve that? Thank you.
0
votes
2answers
298 views

how to disable Input Radio button using css

I need to disable Input Radio button using css. Don't want to use <input type="radio" disabled>
0
votes
1answer
33 views

How do I hide the quantity box in bundle product page?

Basically I've already set default quantity(1) for the linked product in the bundle product display page, now I just want to hide the quantity selection for the linked product all together. Appreciate ...
0
votes
1answer
117 views

Add tag “noscript” in HEAD for CSS files ( Magento 2)

I want to add tag "noscript" in head. <head><noscript id="deferred-styles"> <link rel="stylesheet" type="text/css" media="all" href="http://dev.magento2.com/magento2/pub/static/...
0
votes
1answer
18 views

Am I hurting performance or using bad practice by including css within my static block?

When I create a new section for my home page or a block for a category header is it bad practice to include css within that block? My thought process is that when I want to remove or change that ...
0
votes
2answers
257 views

When I set client side less compilation shows me error

Hello I am new in developing in Magento, I have Magento CE. When I set the Front End development workflow to type client side less compilation shows me an error Fatal error: Uncaught TypeError: ...
0
votes
1answer
54 views

Magento 2.2.6 CSS JS not loading in admin panel after changing base and custom admin URLs

It's a multi store site in development and I changed the test URL to one of the production URLs for the default Base URLs and one of the store Base URLs. I also changed the option to Use Custom Admin ...
1
vote
0answers
235 views

display a popup once per day!

this code is to display a pop up once per day. But I'm having trouble making it responsive, and it seems that it shows once a lifetime... Also if I put it in 3 different pages, and it only shows up ...
0
votes
1answer
274 views

Element 'css': This element is not expected. in Magento 2.2.5 (upgraded from Magento 2.1.9)

1 exception(s): Exception #0 (Magento\Framework\Config\Dom\ValidationException): Element 'css': This element is not expected. Line: 542 facing this issue in 2.2.5. I have upgraded from Magento ...
0
votes
1answer
22 views

How to update a main menu in “neoshop” theme?

I would like to modify the frontend main manu in Magento 1.9.1.0 . I'm using the theme neoshop if this info is useful. I've not found menu components into the CMS -> static block nor pages with the ...
0
votes
1answer
45 views

After running some commands Front end css not working

Frontend CSS not working after I ran some commands. Backend working fine all css and js files are working in backend Here's Here's the link of the site: http://testing2.dukaania.com
0
votes
0answers
19 views

magento2 not loading custom css file that is in head.phtml on category page

My Magento2.2.5 has a custom css file that I have listed in the bottom of the head.phtml in my child theme. I list it there instead of in the default_head xml file because i need the css file to load ...
0
votes
3answers
215 views

Magento 2 - Where to put images to use in css

What is the best location to put the images that I use in my custom css file? And what is the best way to get to the image from the css file? The location of my custom css is: app/design/frontend/...
0
votes
1answer
21 views

I am adding my own css it is working only once after that it is not working

I have added a css through this way app/design/frontend/theme/magento_theme/layout "default_head_block.xml" In this <css src="css/own.css"/> i run the command setup:static-content:deploy ...
1
vote
1answer
172 views

Update page layout sidebar-main and column.main widths

I'm on Magento 2.2.4 and I can't figure out how to edit the CSS for the catalog view page. I'm trying to edit .page-layout-2columns-left .column.main and .page-layout-2columns-left .sidebar-...