We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [css]

Questions related to CSS in the context of Magento

Filter by
Sorted by
Tagged with
0
votes
1answer
52 views

How to make custom CSS have priority over CSS defined in head.phtml in Magento 2?

I'm sure many of you come across this issue: in some third party themes, many predefined styles and css generated from theme configuration (located in pub/media/{theme}) are loaded in /{vender}/{...
0
votes
3answers
125 views

Magento2: How to center box with price, product name etc

I try to center box with product details: So, in list.phtml I found code responsible for this box. <div class="product details product-item-details"> <hr /> ...
0
votes
2answers
98 views

Do I have to be in developer mode?

How to add custom css file in magento2.2.6? I am in Production mode, using Luma Magento 2.2.6. Do I have to be in Developer mode to make the solution in the above link work? Before switching to ...
1
vote
0answers
51 views

Magento 2 - CMS Specific page_layout XML and Dedicated page_layouts in general?

I'm looking for some BEST PRACTICES insight into using page_layout.xml. Is it a good idea to try and decouple the non-shared resources on Product Pages, Category Pages and CMS Pages? If so, what's the ...
1
vote
3answers
59 views

How to add jss and css in magento2

I have created a block and called it in my phtml file then I call that block in my cms page like this {{block class="Abc\Custom\Block\Product" template="Abc_Custom::product.phtml"}} and some HTML ...
0
votes
0answers
47 views

Grunt Causing High CPU Usage

I Have installed Grunt on server. When I hit URL after less files changed the CPU Usage goes up-to 99-100%. The server is Linux. The changes gets reflected correctly. The issue which comes after first ...
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
14 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
32 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
677 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
965 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
70 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
89 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
35 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
239 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
17 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
80 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
25 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
125 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
43 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
202 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
339 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
64 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
54 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
74 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
39 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
233 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
54 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
301 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
36 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
44 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
94 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
38 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
21 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
76 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
275 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
176 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
1answer
24 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
168 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
855 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
41 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
166 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
512 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
60 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
296 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 ...
1
vote
2answers
424 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
30 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 ...