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 [js-css]

The tag has no usage guidance.

0
votes
0answers
22 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
23 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 ...
2
votes
0answers
98 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
69 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
0answers
87 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
18 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
168 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
84 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
95 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
1answer
492 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
92 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
90 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
413 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
71 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
650 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
52 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
132 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
67 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
615 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.
0
votes
2answers
41 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
342 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
1k 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
27 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
519 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
851 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
138 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
558 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
687 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
791 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
516 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
346 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
681 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
667 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
190 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-...
1
vote
1answer
153 views

Magento base url empty

We have a very awkward and frustrating problem with our Magento store. After several hours (sometimes days, sometimes a few hours) our site get broken (CSS and JS are not loaded anymore). We found ...
0
votes
2answers
2k views

Magento admin css not working

I am trying to install site offline which is currently online. But admin panel coming without css and js. Any help. In chrome console I got this Resource interpreted as Stylesheet but transferred ...
0
votes
0answers
28 views

How to load default 4 items in a row in my website. Magento 1.7

This is the website I'm working https://www.joliefi.com as you can see if you maximize your web browser by default and refresh the homepage you will notice on page load it loads 3 column and later on ...
8
votes
5answers
3k views

Changes to CSS and JavaScript applies only after deploying static content

I installed Magento 2 from the Magento site. I have activated the developer mode by {project directory}>php bin/magento setup:mode:set developer Then I have installed my custom theme and finally ...
6
votes
3answers
9k views

How to add/remove browser specific JS and CSS in Magento2 using layout xml

Is there any facility to remove js/css specific to browser in magento2 using layout xml ?
1
vote
1answer
345 views

Will front-end built in angular js and three js work with magento? [closed]

We are currently building a web app e-commerce store using mainly Angular JS and Three JS. We are only offering one product in six different sizes. The user can then customize the product with colors, ...
1
vote
2answers
3k views

How to apply Slick slider to Magento

I am a Magento newbie and today I am trying to apply Slick Slider to my Magento website as a custom module. I have created a blank module with some simple 'echo' and HTML and they all worked well. ...
4
votes
6answers
4k views

CSS broken for the fresh magento ver 1.9.2.0 install

I've downloaded magento ver 1.9.2.0 (latest one) from the official website magentocommerce.com/download and installed it using the standard steps. But, now the css is broken and I'm getting a plain ...
2
votes
0answers
1k views

Problems with Fooman Speedster: 403 error + Verify Minification ERROR [closed]

I have a problem with Fooman Speedster Self-test shows two errors: 1) Verify Permission ERROR (Step 2) 2) Verify Minification ERROR: there are no files starting with "minify_" in "/opt/bitnami/apps/...
1
vote
0answers
352 views

Navigation Drop Down - Icon Changes When Active

I have a drop-down navigation for my site - think Prada.com; users click on a little icon at the top and the entire navigation is revealed. This works perfectly, however I can't quite get the icon to ...
1
vote
2answers
1k views

Disable Hover on Menu with CSS

I've been trying to solve this one for a week - i'm sure it's simple but i'm really struggling with it! I am trying to change my navigation so that users have to click on it for it to appear. I ...
0
votes
1answer
589 views

Order details page is disturbed on admin side Magento

When i goto my order details page its look disturbed ,i think some css or something missing that disturb the layout.I replace the sales folder and upload new css but still no luck.What else i try to ...
0
votes
1answer
51 views

Show Link by IP range

I have a magento store that also has a link labeled 'shop local' that a customer can click to get information on our one retail location. As we only have one store in one state, I would like to ...