How to Properly add to Bootstrap Variables file from Child Theme #2173
-
I am having some issues loading new variables into bootstrap through the _child_theme_variables.scss file. Overwriting existing variables works, but if I want to add to or create something new, it fails to update the bootstrap code file. I attempted to re import bootstraps functions and variables along with the bootstrap folder. It does not appear to be updating with the new information. See code below placed in the _child_theme_variables.scss file: // Use this file to overwrite the basic Bootstrap variables and add your own variables $purple:#ac00e6; // Thats a sample how you could change a BootStrap variable. $container-max-widths: ( // import the functions and variables $custom-theme-colors: ( $theme-colors: map-merge($custom-theme-colors, $theme-colors); // import Bootstrap |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
What do you mean by "it fails to update the bootstrap code file"? What exactly is failing? What are you trying to achieve? |
Beta Was this translation helpful? Give feedback.
Sidenote: Wrapping code in "```" makes it much easier for others to read.
Always check the console output. It shows compilation errors. As in this case, where the console says
The compilation failed because of wrong references to the files to import.
Try this: