Questions tagged [js-css]

The tag has no usage guidance.

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

CSS and JS not rendering from pub/static folder after installation of Magento 2.2.8

I have just installed Magento 2.2.8 and it throws an error on home page then I ran following commands php -dmemory_limit=6G bin/magento setup:static-content:deploy -f php bin/magento cache:clean ...
0
votes
0answers
17 views

Eliminating JS and CSS build processes

We're trying to eliminate the entire process on making the build of JS and CSS. What we exactly want is that we will create entire JS and CSS files manually and load them as a part of footer(No ...
0
votes
0answers
24 views

Magento2 css js minify

A stylesheet doesn't load good after the merge and minifies CSS and js. Every CSS are explored! Used static-content deploy but not works.
0
votes
1answer
12 views

Magento2.1 CSS/JS minify and merge

I just put merge and minify html css and js to yes in admin panel of magento2.1. I'm in production mode and clean and flush cache and indexer are reindex but still I see all css and js files in page ...
0
votes
1answer
19 views

Wrong path to js, css and image file when installing magento 2.3

I have just installed Magento 2.3. Now when I fire it up, the CSS and JS is not loading. I looked at the source and it always has the version of the deployment in the path, like /pub/static/...
3
votes
1answer
31 views

After enabling the SSL Magento gives 404 error to internal pages and to css and js

I am having a very irritating issue after i enabled the SSL in my website. I changed the Base URL (Secure) from http to https and I set "Use Secure URLs on Storefront" to YES. Then I regenerated ...
0
votes
0answers
16 views

Minify HTML,JS,CSS - Some Resources not minified

After turning on Minification from configuration (Admin side). Changed mode to Production Mode. While checking in page speed insights that some of HTML,JS and CSS showing as not minified. Given below ...
0
votes
0answers
68 views

Magento 2 - css and js error

Im using magent 2.2.8 and i got constant error with css and js: [2019-06-08 01:35:18] main.CRITICAL: Unable to resolve the source file for 'frontend/Magento/luma/hr_HR/Ves_ImageSlider/css/styles....
1
vote
1answer
55 views

jQuery DataTables.js How to Apply It On Admin Grid

I'm very new to Magneto, I'm trying to add jQuery DataTables in Magento 2.3, in below image i get error in console: Here is my Code: Add file in /EC/Downloads/view/adminhtml/requirejs-config.js. ...
1
vote
1answer
34 views

How to add 3rd party js library to Magento 2

I am trying to install the following slider to my own Module https://owlcarousel2.github.io/OwlCarousel2/demos/demos.html. But unfortunately, Magento has its own complicated mechanism to manage its ...
0
votes
0answers
19 views

How to change cart height and width and checkout image which is load dynamically

how to change the height and width of cart and checkout page images which is load dynamically height and width. we are using Knockout JS in Magento2.3
0
votes
0answers
23 views

Css not loading in frontend in magento2

In Local , all css and js files have the url start form https:// but i want http://. where to change it . Thanks.
1
vote
1answer
31 views

Minification is not working even Magento is set to Production mode

Currently, we are using Magento 2.2.6. I have enabled the Minify and merge js and css via admin panel configuration but the minification is not working. I have read many posts about the very same ...
3
votes
1answer
301 views

How do i eliminate render blocking css and js in magento 2

In google page-speed test it shows best opportunity to speed up is eliminate blocking resource. So is there anyone who can guide me to do this?
1
vote
0answers
151 views

css/js not loading after changing base url magento 2

I have started working on magento migrating 1.9 to 2.3.0 where I faced the issue of css/js not loading after changing base url. What I want to do is move my local site to live. So obviously base url ...
0
votes
1answer
24 views

Css and Js not loading from the static and media Magento 2

I put my code on server and when I deployed it i get the error Internal server 500 so I deleted the .htaccess from the root of directory but css and js not loading and run deploy the update the di:...
0
votes
0answers
155 views

Product Image Slider 1.9

Having an issue making a slider work in the media.phtml file. Using bxslider on the site. Pulled the JS + CSS onto the site. But can not get the Indiv Product Slider to work. Any ideas? <?php ...
0
votes
0answers
20 views

Magento2: js/css Minify on specific page. Is possible?

I want js/css Minify on specific page where I need. In my requirement I didn't want js/css Minify on my custom module. So is it possible to skip Minifyng on my custom module page.
0
votes
2answers
356 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
192 views

Datatable js include issue in magento2

I am including datatable plugin to my custom module. I tried in this way, below is the code of my Vendor/Module/view/frontend/requirejs-config.js var config = { map: { '*': { ...
0
votes
2answers
177 views

Add CSS class to menu if the customer is logged in magento 2 [closed]

I asked a question about adding different class if customer is logged in or not logged : Add CSS class to body if the customer is logged in magento 2 the problem is that i need more explanation to try ...
3
votes
2answers
774 views

How to add Slick in Magento 2?

I have added slick.min.js in my custom module in the path below app/code/company_name/vendor_name/mymodule/view/frontend/web/js/slick.min/js and my slick initialization js for my template is ...
0
votes
0answers
141 views

getting issue in deploy after minify js & css in Magento 2.2.4

I have enabled minify js & css then run deploy command but getting error messgae during deploy: #0 /var/www/vhosts/example.com/httpdocs/vendor/tedivm/jshrink/src/JShrink/Minifier.php(247): ...
1
vote
0answers
181 views

CSS and JS move to footer in Magento 2 like head tag

I want to push some CSS and JS files in the footer like head in default.xml. How can I do that?
0
votes
1answer
516 views

After Migrating to New Server CSS and JS file not loading, also Backend Admin is not Accessible

I am using magento 1.9. core_config_data urls I have checked it was right, Deleted the cache folder from var, Permission is 777. Still css js are not loading, admin is not accessible. In the local ...
0
votes
1answer
76 views

JS and CSS not showing up after DB migration

I am having issues with my CSS and JS files not loading on my site since I recently migrated my database. If you visit my site you'll see that in console it says: Resource interpreted as Stylesheet ...
1
vote
1answer
885 views

Magento 2 Not getting JS and CSS after server change

I am working on magento 2.1.10 It is working fine on local server, each time I make any changes in CSS or add any custom modules the changes are online on frontend after I upgrade, content deploy and ...
0
votes
1answer
62 views

after installing magento 2.2.2 theme my front-end and admin panel is not loading properly! how can i solve this? [duplicate]

after installing magento 2.2.2 theme my front-end and admin panel is not loading properly! how can i solve this? enter image description here
0
votes
2answers
172 views

CSS/JS don't load after changing URL

I have two store views, I changed one of them from wesbitetest.com to websitetest.com/fr-ca/ but the front end didn't load the js and CSS files as expected, and the URL becomes websitetest.com/fr-ca/?...
1
vote
1answer
115 views

Magento Theme not applying on 1.9

I am using Magento 1.9 and using the theme elegance . I have installed the theme manually from extracting the files in root directory and by following the instructions in the site domain. But my theme ...
0
votes
1answer
782 views

how to change the position of search box in front end?

I am trying to extend the Header (logo, search box and cart), but those files are the different location. I don't know how to adjust those. Could you please suggest me on this.
1
vote
2answers
1k views

Static files version folders not found hence design collapsed and getting 404 for all css and js

I was trying to rectify some ACL issues in my application I removed the static folder inside pub and I run di:compile and static-content:deploy and I gave 777 permission to var and generated folders, ...
0
votes
2answers
44 views

How to source css from Magento_Theme /web instead of theme root /web?

I am trying to include a CSS from a jQuery library that I have within Magento_Theme/web/js/libs/ folder, however, I am struggling to source a CSS file from within here? <page xmlns:xsi="http://www....
0
votes
1answer
370 views

magento 2 custom theme css not working on frontend [duplicate]

I'm using to make a custom theme and applied to it. after installing any modules than front-end CSS not working. Some time replace the .htaccess file from official link than working. anyone can fix it....
0
votes
1answer
2k views

Add custom Js and css to admin panel Magento 1.9

In /magento1/app/design/frontend/base/default/layout/instagramapi.xml <?xml version="1.0"?> <layout version="0.1.3"> <adminhtml_system_config_edit> <reference ...
1
vote
1answer
29 views

How to add Alertify js with Magento 1.9

I want to show messages using Alertify JS. I included alertify.min.js and alertify.css. But it is not working. Please anybody can navigate that how can i use Alertify JS in Magento 1.9. Or have any ...
0
votes
2answers
599 views

Magento 2 pub js file not change

Magento 2 changed js file. After change js file run following command. php bin/magento setup:upgrade php bin/magento setup:static-content:deploy php bin/magento setup:static-content:deploy ...
0
votes
2answers
1k views

Magento 2 Frontend and Backend coming broken [duplicate]

I have successfully installed Magento 2 on my xampp. But when I'm trying to get into the Admin section or see the front-end, then it is coming broken. I have tried to fix the path issue but its of ...
0
votes
1answer
141 views

How to include a js file into a custom module in Magento 2?

Added app/code/Namespace/Customtab/view/frontend/layout/customtab_index_index.xml <?xml version="1.0"?> <head> <css src="Namespace_Customtab::css/viewer3d.css" /> </head&...
0
votes
1answer
782 views

Magento 2 CSS and Javascipt Not Loading

I am running magento 2.1.5 and every thing was working fine. Suddenly my CSS and Js files are not loading I am getting error http://mymagentourl.com/pub/static/version1491202457/frontend/Magento/...
2
votes
1answer
775 views

addItem js_css explanation - Magento 1.9

To add some css or js file, Magento allow different ways to do that via xml: Add CSS file: 1- <action method="addItem"><type>skin_css</type><name>css/custom.css</name>&...
0
votes
1answer
925 views

moving from another server site broken

I am moving from one server to another server site is broken. Database works fine but issue is css and js not generating. The server is shared hosting. How can I fix the issue??
0
votes
1answer
531 views

magento 1.9.3.2 doesn't load CSS and JS on frontend and backend after some intense process

Sometimes, when I launch some process who uses mySql a bit drastic (the last is a script to write in core_rewrite_url about 3000 line of new redirect), or when I change theme, Magento is so slow to ...
0
votes
1answer
409 views

magento 2 css is not added to head element

I develop a theme extending blank theme. I mainly add some css to the _extend.less file, but now I need to add some 3rd party css to the theme. I added the css-s to the proper directory. /...
1
vote
1answer
702 views

After Merge Js Admin panel menu not work?

I have merge recently css and js from magento backend. after this backend menu not work i got following error. Uncaught TypeError: Cannot read property 'length' of undefined I dont know what is ...
6
votes
3answers
3k views

How add js and css on home page (slider) to Magento 2?

In Magento 1 I include js and css like this: <action method="addJs"><script>lib/jquery/masterslider.min.js</script></action> <action method="addCss"><stylesheet>...
1
vote
1answer
729 views

Add Expires headers load from third party url

I am using Magento 1.9.3. I have an issue GT Metrix says "add expire headers" for third party URL. Looks like bellow in GT Metrix. There are 4 static components without a far-future expiration date. ...
0
votes
0answers
200 views

Does collapsible js accept css icon content: “content: ”\e622“”;?

I get blank space when I insert content: "\e622"; and I get the plus sign when i enter content: "+";.
0
votes
4answers
1k views

Magento 2: add js file, but I can't find my file in static folder

I add js file in my module using the requirejs, but the requirejs can't load the file and i get this error: require.js:1895 GET (my_ip)/magento2/pub/static/frontend/Magento/SaturTheme/it_IT/...
3
votes
3answers
5k views

JS and CSS merged Issue in magento2

I tried below step to merge and minify js and css bin/magento setup:upgrade bin/magento indexer:reindex bin/magento deploy:mode:set production -s php bin/magento setup:di:compile-...