Questions tagged [static-content]

Denotes questions related to Static Content in Magento2.

Filter by
Sorted by
Tagged with
1
vote
1answer
2k views

Magento Static and Media url's redirect

So what i want to do is have domain.com as a main domain. static.domain.com (that uses the files of domain.com) as my static view url and media.domain.com (that also uses the files of domain.com) for ...
1
vote
1answer
606 views

Magento 2 | deploy static content error

I got this error when running setup:static-content:deploy on Magento 2.1.8: Compilation from source: /microcloud/domains/vampm2/domains/mydomains.co.uk/http/vendor/magento/theme-frontend-blank/web/...
1
vote
0answers
279 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
750 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
1answer
801 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
0answers
691 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
273 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
1answer
453 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 ...
1
vote
0answers
354 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 ...
1
vote
1answer
1k views

Add static content to product view

I would like add some static text to product views on product-info-main and should be multi language compatible how would I do that? As I understand I can inject static-block content but somehow is ...
0
votes
2answers
2k views

Static files aren't deploying in developer mode

I am using Magento 2 (developer mode) and I just created a new theme, added a local-l.css to my /var/www/vendor/app/design/frontend/vendor/theme/web/css/source/local-l.css and when I refresh the ...
0
votes
3answers
2k views

Is there a way to export static blocks and cms pages in mass from local to online?

I have a localhost version of Magento and another which is already in Hostgator. My changes on files I can ftp quick and easily, of course. But I would like to know if there is some faster way to "...
0
votes
1answer
9k views

Latest css changes not get updated in pub/static folder - magento 2.0.1

I installed magento 2.0.1 and working in developer mode.Now the problem is whenever I change css its not get reflect into pub/static folder . I could refer this Magento2: Re generate css file in pub/...
0
votes
1answer
32 views

Magento Cloud Integration - js and css files

We have recently inherited a Magento 2 cloud environment that has a working production and staging. We also have an integration environment that should have identical code to staging but neither the ...
0
votes
1answer
45 views

Deploying static content not updating css

As far as I understand it, In order to change the style of an email, I need to override the _email-extended.less file. I go to the path below app/design/frontend/Smartwave/Porto/web/css/source/_email-...
0
votes
3answers
2k views

Magento 2.2.8 | setup:static-content:deploy gives errors | Cannot read contents from file jquery.fileupload-ui.css No such file or directory

I can't deploy static content on my production site. Running command: php bin/magento setup:static-content:deploy en_GB Gives me following error: [Magento\Framework\Exception\FileSystemException] ...
0
votes
2answers
3k views

Error in Magento 2 when trying to deploy

I have this error: Fatal error: Class 'Locale' not found in vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64 in Magento 2 when I try do use this command to clear the cached ...
0
votes
2answers
27 views

Add static page via custom theme

I created a custom Theme for our shop which works pretty fine. Just one thing is bothering me: I created some words in the footer and want to link them to custom pages which only have static content. ...
0
votes
1answer
69 views

Magento 2.3.3 - Blank White Screen on Frontend (All Pages)

I am getting a white screen returned for all front end pages on Magento 2.3.3. I am using a third party theme (Sahara Fashion 3), which I have extended from. The theme itself was loaded properly ...
0
votes
1answer
213 views

Magento 2 Get pub/static File Path [duplicate]

I am trying to add a link into the HTML head from (content/configuration/html) head section in the backend(admin) to a file that's located in my pub/static/version*****/frontend/ folder. How can I ...
0
votes
2answers
68 views

Magento 2 - Site not loading properly in Developer mode

I am working on M2 and I've set M2 developer mode. My site home page works fine but the other pages are not loading. They just show errors and warnings on inner pages. Screenshot:
0
votes
0answers
20 views

How to get the deployed version number via PHP?

I need to use the updated deployed version of static files in my module. How could I get it?
0
votes
1answer
18 views

Static content deploy generate thousands of weird folder names

i've run setup:static-content:deploy -f and now i'm getting a lot of strange folders on my pub/static/frontend folder For example one folder has the name "G7oLVFdw'; waitfor delay '0:0:6' -- " This ...
0
votes
0answers
11 views

(URGENT) SM Market Theme is not displaying strings properly

for my Magento 2 website I am using the SM Market Theme. Everything was fine with the strings. Then I enabled the in-line translation. Simultaneously I reinstalled an extension (Multi Vendor ...
0
votes
1answer
15 views

Simple colums in editor

the best way to create column in the editor is? I try to create with Bootstrap class but, it's not working... Thanks
0
votes
1answer
19 views

Script only loading directly after clearing the cache, but cant get found after second reload

I am using the extension Aheadworks_Wbtab. I don't know whats going on. If I flush the cache and reload then the slider shows and works fine. But if I reload again, then the slider dissapears and I ...
0
votes
0answers
13 views

How to create cookie free domain for magento 1.9 [duplicate]

In GTMetix I have checked "Use cookie free domian" the result is 0, So how can I set up that static content like Images, CSS, Js in magento1.9 . static content delivery is very slow on my domain. ...
0
votes
0answers
18 views

Magento 2 multistore Catalog Product CONTENT - EDIT & SAVE - CONTENT stays always DEFAULT

We had to upgrade to Magento 2.2.9 recently. It is a multi-language store, with DE and EN content. (store-view) Product descriptions in CATALOG-PRODUCTS-CONTENT are DE in DE-store and EN in EN-...
0
votes
3answers
379 views

Double quotes change into &quot; in Tiny MCE editor in Magento 2.x

In Tiny MCE editor on a product page in M2.3, all my double quotes are changed into &quot; after saving. Example: <a href="{{store direct_url=&quot;contact&quot;}}"> This breaks ...
0
votes
0answers
66 views

Use relative URL's for static content in Magento 2

Is it possible to use relative URL's in Magento 2? So change links like https://www.domain.com/my-product-title to /my-product-title. And also use relative URL's for javascript and css references?
0
votes
1answer
46 views

After upgrade static content is set with out pub/

<html lang="en"> <head > <script> var BASE_URL = 'http://mage.test/'; var require = { "baseUrl": "http://mage.test/static/version1561748846/frontend/Brent/...
0
votes
2answers
108 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
0answers
259 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
651 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
1answer
135 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
210 views

Magento 2 static file paths incorrect after migration

After manually moving Magento 2.2.4 site to a Windows IIS server, the pages are blank. Only a few lines of HTML is loaded, and I can see in the body tag there is an incorrect static file path: ...
0
votes
0answers
21 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
2answers
191 views

Uncaught Type Error in magento 2 and 404 error

I've been attempting to set up Magento 2 on a WAMP server and have ran into a few errors. My Magento UI doesn't look right and I have 2 errors in the error log (When you F12 the page). "Uncaught ...
0
votes
1answer
516 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
2answers
374 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
0answers
112 views

Magento2 multiple webservers static directory [duplicate]

I'm trying to run Magento2 on multiple webserves behind a load balancer. So far I have sessions stored in database app/etc/env.php shared across webservers running the site in production mode The ...
0
votes
1answer
127 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
6k views

Unable to retrieve deployment version of static files from the file system

I asked my hosting site to update PHP so that I could configure Payzone to Magento 2. It seems that it may have upset something as when I try to go on the website, magento admin or File zilla I get an ...
0
votes
0answers
160 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
1answer
50 views

Deploying Static Content on M2 doesn't work

I am trying to deploy static content on my production site but I am receiving the error in the screenshot. Why is this occurring?
0
votes
1answer
78 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
76 views

custom var in _module.less -> deploy problem

I have created my own theme, extending Magento/blank. In my own theme, I have included bootstrap among others, and removed the less files from the default theme (I'm not using stles-l.css or styles-m....
0
votes
0answers
312 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
3answers
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
0answers
180 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,...