Skip to content

How to Properly add to Bootstrap Variables file from Child Theme #2173

Answered by IanDelMar
slashdotblake asked this question in Q&A
Discussion options

You must be logged in to vote

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

Error: Can't find stylesheet to import.

17 │ @import "src/sass/assets/bootstrap5/_functions";
   │         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  src\sass\theme\_child_theme_variables.scss 17:9  @import
  src\sass\child-theme.scss 1:9                    root stylesheet

The compilation failed because of wrong references to the files to import.

Try this:

// Use this file to overwrite the basic Bootstrap variables and add your own variables
// To overwrite a Bootstrap variable you don´t have to touch the B…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@slashdotblake
Comment options

@IanDelMar
Comment options

Answer selected by slashdotblake
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants