How to add a Bootstrap CSS for Your Magento 2 Theme

  Рет қаралды 8,669

Max Pronko

Max Pronko

Күн бұрын

This tutorial is a long waiting one. I've been asked to show how to add a bootstrap into Magento 2 for ages. Finally, I've made it and happy to share it with you. Hope you like it. Hit subscribe to support my free tutorials.
Check my online course Payment Integration in Magento 2: www.maxpronko....
Subscribe to my channel for more videos!
--
Connect with me over the social channels:
Twitter: / max_pronko
Website: www.maxpronko.com
Instagram: / maxpronko
Medium: / maxpronko
Facebook: / maxpronkocom
Business Enquiries: www.pronkocons...

Пікірлер: 38
@mawizshahab2416
@mawizshahab2416 2 жыл бұрын
Thanks a lot Max! ♥️
@MaxPronko
@MaxPronko 2 жыл бұрын
You are welcome
@bohdanbatsenko4843
@bohdanbatsenko4843 2 жыл бұрын
Please what is the difference adding css files into - Magento_Theme/web/css and directly into - web/css? Thanx
@tantivit
@tantivit 3 жыл бұрын
Many thanks for the video!
@MaxPronko
@MaxPronko 3 жыл бұрын
Thanks for watching!
@bbaros77
@bbaros77 3 жыл бұрын
Thank your tutorials!
@MaxPronko
@MaxPronko 3 жыл бұрын
Thanks for watching!
@perfectwebsolutions
@perfectwebsolutions 5 жыл бұрын
if you only need to add css compiled then why you need to download the source? rather than downloading the Compiled CSS and JS?
@MaxPronko
@MaxPronko 5 жыл бұрын
This was my decision :)
@perfectwebsolutions
@perfectwebsolutions 5 жыл бұрын
@@MaxPronko oh Ok, I thought you are going to show how to use sass with magneto as we know Magento already support .less but the bootstrap source is in .scss format.
@meghvankawala3563
@meghvankawala3563 4 жыл бұрын
I am using luma theme and when I add bootstrap.css to my theme, bootstrap css is applied to footer section also and it messed up the footer. I only want to apply bootstrap css only content section (not header and footer).
@NishaChar786
@NishaChar786 5 жыл бұрын
Awesome tutorial
@NishaChar786
@NishaChar786 5 жыл бұрын
Can you teach KO js
@andresamartins26
@andresamartins26 5 жыл бұрын
@@NishaChar786 There is a guy who has an amazing Magento 2 KnockoutJS course. You can have a trial for free on his website - www.mage2.tv. I was able to create my first component right after the lessons - github.com/andresams/magento2-cart-popup.
@williamengbjerg
@williamengbjerg 3 жыл бұрын
@Max Could you make one with tailwind css as well? Would be pretty cool. Thx.
@MaxPronko
@MaxPronko 3 жыл бұрын
I definitely have to try with tailwind css and make a video. Thanks
@onetapmediaofficial
@onetapmediaofficial 4 жыл бұрын
Thanks, Max
@abautixta
@abautixta 4 жыл бұрын
cool Max, could you make one with tailwind css?
@MaxPronko
@MaxPronko 3 жыл бұрын
I definitely could.
@alangoldberg4723
@alangoldberg4723 4 жыл бұрын
What's the surprise at the end?
@MaxPronko
@MaxPronko 4 жыл бұрын
Have a look the full video
@mohamedmekkaoui3277
@mohamedmekkaoui3277 5 жыл бұрын
Thank you Max, I've been trying to order my custom.css after style-l.css and style-m.css as per client demand, I will try using head.additional but is it a good idea in term of best practices ?
@MaxPronko
@MaxPronko 5 жыл бұрын
Mohamed Mekkaoui best practice is to have all your custom styles included into style-l.css and style-m.css, for this you would have to write tour custom styles in less files
@mohamedmekkaoui3277
@mohamedmekkaoui3277 5 жыл бұрын
@@MaxPronko Thank you! yes Ideally, I forgot to mention that this custom.css is minified ... the battle of client satisfaction vs best practices may begin
@naimali6385
@naimali6385 5 жыл бұрын
Thank you.
@DesiTonyFaimly
@DesiTonyFaimly 5 жыл бұрын
best videos
@pegatino
@pegatino 5 жыл бұрын
After doing this it gives me an error in the CLI , ' There are no commands defined in the "c" namespace. ' ! Why?
@MaxPronko
@MaxPronko 5 жыл бұрын
Try “cache” instead of c. Maybe there is some misconfiguration.
@reenakotadiya819
@reenakotadiya819 Жыл бұрын
and bootstrap JS ???
@ZorlacSkater
@ZorlacSkater 4 жыл бұрын
But this will make bootstrap override your magento CSS, because it gets loaded after magento 2 styles... There are conflicts and some pages changes... for example in customer area in frontend. Is there a fix ?
@MaxPronko
@MaxPronko 4 жыл бұрын
I don’t have any issues on my Magento 2 website with the bootstrap enabled. If you can show me what you mean
@ZorlacSkater
@ZorlacSkater 4 жыл бұрын
@@MaxPronko For example in the frontend customer area (/customer/account) the list on the left looks weird after adding bootstrap. See screenshot: i.stack.imgur.com/IRDM5.png I am using 4.5.2. The problem is, that bootstrap is overriding the class `.nav` I had to fix it by overriding it with `.nav { display: block !important; }`
@MaxPronko
@MaxPronko 4 жыл бұрын
No one said that there couldn’t be issues. At least you can fix all the issues found. Good luck
@ZorlacSkater
@ZorlacSkater 4 жыл бұрын
@@MaxPronko If we load bootstrap before styles-m.css / styles-l.css, then it does not override anything from magento. Do you know how we can load bootstrap before?
@victorpinochet6745
@victorpinochet6745 5 жыл бұрын
ty men
@Viralplace
@Viralplace 4 жыл бұрын
Now Go to the single view of the product ... you will not see the image do you know? You will have width 1px height 1px.
@pegatino
@pegatino 5 жыл бұрын
Why do you use the design folder, I thought that nothing was added to that folder? I created my own module and put all my stuff there, including the web folder with the css file inside, but it doesn't work for me
@MaxPronko
@MaxPronko 5 жыл бұрын
Design folder for design and theme changes e.g. layout, phtml and less related files that are particularly used on the storefront.
Add Template to Layout in Magento 2
2:02
Max Pronko
Рет қаралды 3,5 М.
Customise the Luma header - front end theme development - Magento 2
16:54
Another Magento Dev
Рет қаралды 17 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
Do you know Magento 2 UI Components well enough?
10:37
Max Pronko
Рет қаралды 6 М.
Magento 2 Custom Themes: How to Make a Theme from Scratch
25:18
Max Pronko
Рет қаралды 11 М.
How to build Custom Theme in Magento 2
16:26
Max Pronko
Рет қаралды 83 М.
Getting started with a custom theme in Magento 2
10:54
Another Magento Dev
Рет қаралды 3,4 М.
5 key CONCEPTS to be a PROFESSIONAL Magento 2 developer
15:18
Max Pronko
Рет қаралды 12 М.
Add CSS and Javascript in Page Head in Magento 2
7:38
Alaa Al-Maliki
Рет қаралды 6 М.
Её автомобиль никто не хотел ремонтировать!
20:12
Гараж Автоэлектрика
Рет қаралды 1,5 МЛН
ТЕЛЕФОН МЕНЯЕТ ЦВЕТ😅 #upx
0:34
RanF
Рет қаралды 639 М.
The Million view clip on China's Tiktok P2428 #shorts #gochannel
0:15
Go Channel TV
Рет қаралды 29 МЛН
КАК ЖИВЕТ КВАНТУМ? РУМ ТУР КВАНТУМА!!!
13:51