Comments (13)
Thanks for this error report. Seems like we need to add a check if the bootstrap.min.css exists in the parent theme. This will be fixed in the upcoming 5.1.2.0 release.
from bootscore.
Scss is based on order. For example this wouldn't work:
$colortest: $testtest;
$testtest: #000;
But this does:
$testtest: #000;
$colortest: $testtest;
Because _bscore_variables.scss is intended to override Bootstrap variables it's called before all the Bootstrap code. This results in all the Bootstrap variables not being set yet, so you can't call them yet.
from bootscore.
This issue still happens on a vanilla install where you - without anything else first - activate the child theme.
The error now is:
Warning: : filemtime(): stat failed for /.../bootscore/wp-content/themes/bootscore-child-main/css/main.css in /.../bootscore/wp-content/themes/bootscore-child-main/functions.php on line 11
The error goes away if you first activate parent, then child theme.
from bootscore.
Something else.
The scss import should not be placed in the last bootcommerce-child/css/scss/bootstrap.min.scss file but in bootcommerce-child/css/scss/_bscore_varies.scss.
I don't know why some of the new scss files were imported but not others.
Example, when I put :
// personal scss
@import "card";
@import "colors";
@import "font";
@import "home";
@import "svg";
in /css/scss/bootstrap.min.scss
=> _card.scss and _home.scss are loaded but not _colors.scss
But if I put everything in css/scss/_bscore_varaibles.scss, => everything loads ... mystery
Another question why for my colours I can't do:
$primary: $red;
but I have to do:
$primary: #dc3545;
This is not very practical if you want to use the variables ...
I've got this error message:
bootScore SCSS Compiler - Caught exception:
Undefined variable $red: wp-content/themes/bootcommerce-child/css/scss/_colors.scss on line 10, at column 1 Call Stack: #0 import wp-content/themes/bootcommerce-child/css/scss/_colors.scss wp-content/themes/bootcommerce-child/css/scss/_bscore_variables.scss on line 6 #1 import wp-content/themes/bootcommerce-child/css/scss/_bscore_variables.scss (unknown file) on line 1
from bootscore.
bootScore SCSS Compiler - Caught exception:
Yes, because $red is not defined. Do this:
$red: #dc3545;
$primary: $red;
from bootscore.
Ok, my bad.
As $red was already defined in bootstrap _variables.scss
$red: #dc3545 !default;
I didn't though I had to define it again.
Now I know my mistake.
Thanks π
from bootscore.
@Lo1176 Could you please try again with the changes made in commit b434af5?
As it originally is a warning only, it shouldn't actually have stopped creating the file in the child theme folder.
If it's not fixed with this commit, we can investigate further.
from bootscore.
from bootscore.
Tested and works fine.
from bootscore.
Hi,
It's working like a charm. π
In both Child or Parent Theme.
Thanks
from bootscore.
Great to hear it's fixed now!
from bootscore.
This issue still happens on a vanilla install where you - without anything else first - activate the child theme.
The error now is:
Warning: : filemtime(): stat failed for /.../bootscore/wp-content/themes/bootscore-child-main/css/main.css in /.../bootscore/wp-content/themes/bootscore-child-main/functions.php on line 11
The error goes away if you first activate parent, then child theme.
I would like to second this. The fix is to activate parent theme then activate child theme BUT - I had the parent theme in play. Uploaded ( via ftp) the child theme then activated it. This required a second round of deactivate child, reactivate parent, reactivate child.
The issue is the child them does not have a /css folder and no /css/main.css file so the stat fails.
from bootscore.
Before reopen this issue, tested it quickly on localhost. Error appears on first page load, but it's gone when reloading the page.
from bootscore.
Related Issues (20)
- Get wp_title() in header.php HOT 5
- Rewrite main.scss
- Matomo Wordpress-Plugin
- Woocommerce add to cart restrictions
- [Feature Request] Remove limitation wpsites_query HOT 3
- [BUG] Not able to scroll page using Divi page editor on Tab and Mobile view HOT 7
- Overwrite SCSS variables
- [BUG] Woocommerce Products Shortcode HOT 3
- Unable to style an active navbar item
- Unable to close a photo from the media gallery when enlarged or go back HOT 9
- Create assets folder HOT 4
- [BUG] Potential Woocommerce Bug in the Slide out Basket HOT 2
- [BUG/Help Wanted] Pagination for Post HOT 3
- [BUG] Double eye in account offcanvas HOT 1
- Reason of using fixed-top HOT 1
- <header><footer> inside <main>
- [BUG] Dark Mode Plugin HOT 3
- [BUG] Edit single product page
- Wrong Isotope usage HOT 5
- Please reopen Issue 759 as it is not resolved HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootscore.