Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

1
vote
3answers
78 views

Pub Folder Not Updating

I've had this issue with my Magento 2.2.3 installation where nothing gets updated in the pub folder. So every time I re-deploy, product images don't get re-populated, and no CSS changes will go ...
1
vote
2answers
543 views

Static Content 404 with Magento 2 and Nginx

Preface: I have read through as many posts as I can find about this issue, but I have tried all solutions suggested already. The Issue Using a quick docker setup to get a local instance of Magento 2 ...
1
vote
2answers
163 views

Magento 2.1 - Deploy static view files without deleting pub/static

How can I deploy static view files over the CLI in Magento 2.1 WITHOUT deleting my complete pub/static/* dir. Our Shop runs in an auto scaling enviroment. Everytime when we want to deploy new style ...
0
votes
2answers
41 views

Get current product name in static web template html file on product view page

I want to get the current product name in static html file which is called in product view page like below file app/design/frontend/Vendorname/themename/Aheadworks_AdvancedReviews/web/template/...
0
votes
2answers
199 views

Magento2 deploy static files overwrite instead of manually delete

When I run bin/magento setup:static-content:deploy it does not overwrite existing files but leaves them intact. This leads to the unpleasant situation that I have to clear static file before I ...
0
votes
2answers
1k views

Magento 2.0 Static Content Deploy PHP Fatal Error

INSTALLED MAGENTO 2.0 IN FOLDER on UBUNTU 16.10 SAME CSS ISSUE AGAIN... cd /var/www/html/store sudo php bin/magento setup:static-content:deploy PHP Fatal error: Uncaught Error: Call to undefined ...
0
votes
2answers
188 views

I need help on deciphering a compilation error

I'm trying to perform a test compile, and I'm receiving a few errors during compilation. Here is a copy of the system.log file that gets generated: [2016-11-22 05:28:44] main.CRITICAL: ...
2
votes
1answer
21 views

Magento 2.2.6 overriding css or less files or locating the actual file to edit

Not sure why i'm finding this so difficult but I have a file that has some css that needs to be fixed. The file and code are in these files: pub/static/frontend/website/mywebsite/en_US/css/styles-l....
2
votes
1answer
204 views

Upgrade to 2.2.6 missing static JS files

When I upgraded my Magento 2.2.2 to 2.2.6. I got one critical error in pub/static missing one file named trim-input.js "pub/static/version1540806968/frontend/{...}/{...}/pl_PL/mage/trim-input.js" ...
2
votes
1answer
42 views

Versioned Static Content not Being Compressed

On my live server my versioned content (the url containing the versioned number) is not returning the static files compressed. However when I check the literal path to the content, by removing the “...
2
votes
1answer
62 views

CSS not loading for Magento 2

After updating Magento 2 from version 2.1.7 to 2.1.8 there is no css loading for the backend (front end works fine). How can I get the css to load for the admin? After deploying static content I got ...
2
votes
1answer
548 views

Magento 2 static deploy en_US argument invalid on XAMPP

I've cloned a working magento 2 repo, done composer install and when I'm trying do do: setup:static-content:deploy I get the error: [InvalidArgumentException] en_US argument has invalid value, please ...
1
vote
1answer
38 views

Magento2 : Why static content isn't generated properly?

I have seen so many answers related to this question but nothing resolved my issue , this is the issue I have cleared cache , pub/static , generated , var/cache , var/view_preprocessed, setup:...
1
vote
1answer
528 views

Magento 2: Static content signing

What is the use and benefit of static content signing in Magento 2 ? Is it recommended to disable it from backend ?
1
vote
1answer
520 views

Flush static files cache on production mode

There is something about Magento2 that troubles me so much. When I have a website on production mode and I need to make a simple image change how I can do it? I thought changing the image via FTP ...
1
vote
1answer
647 views

Cellspacing and cellpadding doesn't apply to tables in WYSIWYG editor in Magento 1.x

In one of my client's websites(Magento CE 1.9.2.4), the product description needs to have a table structured content with cellspacing and cellpadding applied. Now when he tries to apply that style to ...
1
vote
1answer
384 views

Magento 2 - Conditional Static Block

Is there any way for you to conditionally display a static block? For example, I want a block on the homepage that will only display if there is content in the block. If it is empty, the block ...
0
votes
1answer
53 views

Magento 2 - Minified static files not used

I enabled the setting to minify and merge JS & CSS. When I run static-content:deploy it does generate files with a .min.(css|js) appendage and the file contents are minified. However, when I load ...
0
votes
1answer
240 views

Unable to import custom less file in custom theme's modules in Magento2

I have created a custom theme in Magento 2 and I want to add _customvariables.less and _custommixins.less in all other less files. I have added these files in the following location. magento2/app/...
0
votes
1answer
81 views

cdn deploy static files magento - still deploying to “normal” directories

I'm trying to get my static files to be deployed in static.domain.com I have pointed my base url and secure base urls like below After I did - the website is trying to pull data from that location ...
0
votes
1answer
58 views

Pub/static js path wrong in magento2 after install ebizmarts mage monkey plugin

Recently i have tried to install Ebizmarts_MageMonkey plugin in magento2. After install frontend not working properly. Got an error like some js missing. 404 not found error http://test.com/pub/...
0
votes
1answer
57 views

Undefined Index error when attempting to setup:static-content:deploy. How to fix?

What am I attempting to do here?: In the console I kept getting a message that says 404: unable to find styles-m.css. It finds styles-l.css and print.css but not mobile, no matter what I do. Google ...
0
votes
1answer
289 views

CSS and JS not loading after installing Magento 2, setup:static-content:deploy shows error

I have recently installed Magento2. CSS and JS not loading after installing Magento 2. I have used composer to install. This magento 2 files I have taken by a checkout from a live website. Also the ...
0
votes
1answer
724 views

Magento 2 custom Theme no css and products loaded in frontend

I created a new Template based on the Blanco/Luma theme as pointed out in several howto's as in this topic) Strange thing is that the css and the products (and images) which are available do not load ...
0
votes
1answer
345 views

Backend Admin 404 not found for jscolor.js

I recently did an upgrade, compile, reindex, flush, clean on my magento 2.0.7 instance. Everything is working fine except on the backend interface I am getting 404 not found on anything in the pub/...
3
votes
0answers
778 views

Magento 2 - Unable to resolve the source file for image

I have created an image and have uploaded this to my theme/web/images folder. I have then ran the following: php bin/magento setup:static-content:deploy However I cannot get the image to show on ...
2
votes
0answers
270 views

magento 2 custom email template image/logo not displayed

I am custom template for Magento 2 Created two new email template in admin backend order confirmation email template Shipment notification email template Both are sharing same header and footer ...
2
votes
0answers
42 views

Adminthtml failing to compile

We have an ongoing issue with our styles.less file that prevents the css being generated for the Magento 2.1.8 back end. Whe i run the command bin/magento setup:static-content:deploy It throws ...
2
votes
0answers
248 views

Magento2: Mixin is undefined on deploying static content

I have created several mixins in my custom theme within the file "_mixins.less", these work locally and are loaded properly from my other less files. However, when I want to deploy static content I ...
1
vote
0answers
33 views

Magento 2 : Error on running magento command

I'm new on Magento 2. (2.2.5, nginx, linux, MySQL 5.7.22, PHP 7.1.21) I was setting the configuration of store and when I refreshed the store page I get diamond question marks, also in admin console, ...
1
vote
0answers
135 views

2.2 Faster way to regenerate css in developer mode

In developer mode, static files are mostly symlinked so making changes is immediately visible in frontend. However, when making changes to CSS this is not the case. The minimal files I have to ...
1
vote
0answers
208 views

Adding Bootstrap RTL LESS to Magento 2 theme

I need to include bootstrap-rtl LESS files to my theme when using fa_IR locale. So I did: Add those downloaded LESS files to: app/design/frontend/<Vendor>/<Theme_Name>/web/i18n/fa_IR/...
1
vote
0answers
652 views

Magento 2 - Custom admin theme not working in production mode

I create a custom admin theme to override few admin template files. In developer mode theme work perfect, but when I turn on production mode and make: bin/magento setup: static-content: deploy then: ...
1
vote
0answers
596 views

Magento 2 static files URL fail

after reading the official guide here Magento Guide I have setup my magento this way: I have created one website in english and one in spanish I have configured Apache this way <VirtualHost *:80&...
1
vote
0answers
248 views

A faster route to deploying static content in Magento 2? Dev to Live etc?

Massive bounty on this guys. Wanted to get some attention here. Maybe move it here instead.. https://stackoverflow.com/questions/38589283/a-faster-route-to-deploying-static-content-in-magento-2-dev-...
1
vote
0answers
296 views

How can I create and update static blocks via a module install script?

I have a number of static blocks and pages I need to create in a few shops and without doing it manually I copied the install script for the sample data for Magento2 to use a .csv to install these ...
0
votes
0answers
106 views

Magento 2.3.0 : Getting error in static content deploy command

I am using Porto and updated Magento from 2.2.5 to 2.3.0 while deploying static content I am facing error that styles-1.css missing in the theme folder.
0
votes
0answers
244 views

Magento 2.3 Static Content Deployment problem & missing css file

Running Magento 2.3 i noticed a problem with the static content being deployed, well, I believe it to be that anyway. I was messing around with Varnish for a few days and had a nightmare getting it ...
0
votes
0answers
47 views

Same content (language) for multiple countries (store views)

I'm trying to implement an e-commerce site (using Magento 2) that has the following requirements: be available in N countries (eg http://example.com/country_code/ ) with X languages share the same ...
0
votes
0answers
15 views

Display content between set products on magento 2 category page

I was wondering if there would be a solution to display blocks, with content i can enter in the backend, between or after a set amount of products. I know i can display some static content at the top ...
0
votes
0answers
283 views

Magento 2 Static content deploy error

I try to deploy the static content php bin/magento setup:static-content:deploy -f da_DK en_US But the following error occured. frontend/Magento/blank/da_DK 2291/2291 ============...
0
votes
0answers
128 views

How to change the icon of toggle navigation link in magento2

Please check the screen shot I want to make close button on toggle navigation link.
0
votes
0answers
251 views

Magento 2.1.3 static css files not generating

When I open the front end of my website it can't find different files and they are only css files not being found e.g. /pub/static/version1486733880/frontend/Meigee/blacknwhite/en_IE/css/styles.css I ...
0
votes
0answers
163 views

static deploy not taking correct files to Pub/Static folders

I've made an update to one of my scss files, and updated the corresponding css file, in the web/css folder of my theme but when I re-run static deploy for en_GB it's not taking the new changes forward,...