Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

WordPress From Bootstrap to WordPress Setup a Bootstrap Theme Add Bootstrap CSS via the functions.php File

Motoki Higa
Motoki Higa
14,111 Points

Why did he name 'bootstrap_css' instead of 'bootstrap_min_css' inside of the wp_enqueue_style?

In functions.php file, he named 'bootstrap_css' instead of 'bootstrap_min_css' inside of the wp_enqueue_style. Would't it be better if he named it exactly the same as the actual css file name in which case 'bootstrap.min.css'.

Is there any better reason why he used it 'bootstrap_css'? It worked fine with 'bootstrap_min_css' by the way.

Thanks in advance.

1 Answer

Carl Sergile
Carl Sergile
16,570 Points

The first paramater you can name whatever you want. He named it bootstrap_css, but you can name it whatever you like really. You can name it just "b". You can name it "bootiebootstrapbootsmin"..... You get the idea. Its just to reference later if you have to. So naming it the same exact name as the actual file might get confusing :-)

Motoki Higa
Motoki Higa
14,111 Points

Thanks Carl, that makes sense!