stefanobartoletti / bricks Goto Github PK
View Code? Open in Web Editor NEWA modular WordPress starter theme powered by Bootstrap 5 and Gulp
Home Page: https://bricks.stefanobartoletti.it
License: GNU General Public License v3.0
A modular WordPress starter theme powered by Bootstrap 5 and Gulp
Home Page: https://bricks.stefanobartoletti.it
License: GNU General Public License v3.0
๐ฉ๐ช A German translation should be added ๐ฉ๐ช
To contribute, follow these simple rules:
/languages
folder and created/edited with Poedit.de_DE.po
and created by starting from the template.pot
template..mo
file.๐ต๏ธ Thank you for your contribution and happy Hacktoberfest! ๐ต๏ธ
Hi Stefano,
Thanks for the amazing theme. I am facing an issue with the dropdown for the Top Menu. I tried using a mega nav as well as the wordpress dynamic menu. In all the cases, the dropdown menu is not working.
It was working a few months back and now i have adde with the recent version, it stopped working.
It would be great, if you can take a look at it
Love this theme, but I am having trouble seeing how AOS works with it. I looked through your thorough documentation but I don't see any pages that have AOS implemented.
Once I enable it, I have to add the attributes to my divs (and other html elements) for it to work? There are no default animations set up with the theme as-is, right?
I tried to setup a project with your base, however the latest font awesome compile which loads dist/js/fa5.min.js seems not working well. The icon is not render.
Have any tip?
Hello Stefano!
First of all, I want to thank you for a wonderful build.
I have a question.
Now I'm working on Sidebar for woocommerce.
How to do it right?
Also the question is how to display any other sidebar for a particular Custom Post type ?
I tried to run a script with npm run build, and sometimes the final assets doesn't contain all Bootstrap classes, such as col-6, col-md-x, alert-info...
I would like to contribute by adding a Lithuanian translation
As I can see you are starting to add translations to Bricks and I couldn't see a Lithuanian one
Hi! How add lightGallery (lightgalleryjs.com) modules into project like /bricks/src/js/integrations/swiper.js ?
F.e., if i add from instruction in /bricks/src/js/vendor/lightgallery.js
import lightGallery from '../../../node_modules/lightgallery/lightgallery.umd.js';
import lgZoom from '../../../node_modules/lightgallery/plugins/zoom/lg-zoom.umd.js'
it create file in /bricks/assets/js/lightgallery.min.js
but it has browser error:
Uncaught ReferenceError: lightGallery_umd is not defined
Why "umd" variable?
P.s.: sorry for my english)
Hello Stefano!
Does bootstrap manage to achieve 95 scores on mobile on Google PageSpeed?
๐ช๐ธ A Spanish translation should be added ๐ช๐ธ
To contribute, follow these simple rules:
/languages
folder and created/edited with Poedit.es_ES.po
and created by starting from the template.pot
template..mo
file.๐ต๏ธ Thank you for your contribution and happy Hacktoberfest! ๐ต๏ธ
Hello!
I want to install bootstrap 5 myself.
Or is it much more complicated?
When planning to Update?
Hi Stefano,
When an updating the dependency to "bootstrap": "5.2.3", the dropdown and some other js feaures not working. I am not adding this an issue bug as this is somthing that I have tried and not related to the currecnt buld version.
I have also raised a bug for imagemin not working
#442 (comment)
Thanks
Paul
The dropdown menu doesnt work, when you add a page as a subpage and you reload the website you will see the arrow for opening the dropdown.
As you click on the parent child to open the sub-menu the dropdown wont open, it gives you an error related to popper.js
I tried for a bit to fix the problem by Including the bundle cdn of bootstrap, which removes the popper.js error but the dropdown menu still doesnt function.
I'm in the process of updating gulpfile.js
from CommonJS to ESM, to support some updated plugins that come only in this format (mainly gulp-imagemin
).
The main change is related to the new import
syntax instead of require
: so, in example, const autoprefixer = require('gulp-autoprefixer');
is now import autoprefixer from 'gulp-autoprefixer';
.
The Gulpfile was renamed to gulpfile.esm.js
and I have installed the esm
NPM package, following the instructions on the Gulp docs.
The updated gulpfile is available here = https://github.com/stefanobartoletti/bricks/blob/gulp-esm/gulpfile.esm.js
After this conversion everything works well, all the tasks do what they are supposed to do, until I try to update gulp-imagemin
from v7.1.0
to v8.0.0
.
After trying to update it, the follwing errors appear after trying to run the scripts:
% yarn
yarn install v1.22.11
[1/4] ๐ Resolving packages...
success Already up-to-date.
$ gulp default
[15:17:01] Requiring external module esm
TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
at exports.importModuleDynamicallyCallback (internal/process/esm_loader.js:34:9)
at eval (eval at <anonymous> (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/lib/shared/require-or-import.js:10:15), <anonymous>:3:1)
at requireOrImport (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/lib/shared/require-or-import.js:24:7)
at execute (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js:37:3)
at Liftoff.handleArguments (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/index.js:211:24)
at Liftoff.execute (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/liftoff/index.js:201:12)
at module.exports (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/flagged-respawn/index.js:51:3)
at Liftoff.<anonymous> (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/liftoff/index.js:191:5)
at /Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/liftoff/index.js:149:9
at /Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/v8flags/index.js:162:14 {
code: 'ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
and
% yarn build
yarn run v1.22.11
$ gulp build
[15:20:53] Requiring external module esm
TypeError: Invalid host defined options
at eval (eval at <anonymous> (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/lib/shared/require-or-import.js:10:15), <anonymous>:3:1)
at requireOrImport (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/lib/shared/require-or-import.js:24:7)
at execute (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/lib/versioned/^4.0.0/index.js:37:3)
at Liftoff.handleArguments (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/gulp-cli/index.js:211:24)
at Liftoff.execute (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/liftoff/index.js:201:12)
at module.exports (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/flagged-respawn/index.js:51:3)
at Liftoff.<anonymous> (/Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/liftoff/index.js:191:5)
at /Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/liftoff/index.js:149:9
at /Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/v8flags/index.js:162:14
at /Users/stefanobartoletti/Sviluppo/Personali/bricklayer/bricks/node_modules/v8flags/index.js:41:14
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
git clone https://github.com/stefanobartoletti/bricks.git
gulp-esm
branch, where the update of the Gulp configuration is developed: git checkout gulp-esm
yarn
yarn dev
, yarn build
, yarn watch
(no errors are expected until now).gulp-imagemin
to v8.0.0
: yarn upgrade --latest gulp-imagemin
yarn dev
, the previous errors appear, preventing the task to complete successfully.After converting gulpfile to ESM, updating gulp-imagemin
to v8.0.0
generates some errors about
TypeError [ERR_VM_DYNAMIC_IMPORT_CALLBACK_MISSING]: A dynamic import callback was not specified.
TypeError: Invalid host defined options
Some help is welcome with this issue, as I am unable to figure out myself how to solve it.
๐ซ๐ท A French translation should be added ๐ซ๐ท
To contribute, follow these simple rules:
/languages
folder and created/edited with Poedit.fr_FR.po
and created by starting from the template.pot
template..mo
file.๐ต๏ธ Thank you for your contribution and happy Hacktoberfest! ๐ต๏ธ
An issue with the dropdown for the Top Menu. I tried using a mega navigation as well as the wordpress dynamic menu. In all the cases, the dropdown menu is not working.
It was working a few months back and now i have addeded the recent version,(0.30.3), it stopped working.
Steps to reproduce the behavior
When you hover over or click on the dropdown button or icon to see the sub category and sub menu will.
NA
Hi,
Thanks for this awsome theme.
For some reason I am not able to find the 'dist' folder.
Hi Stefano,
One thing about this theme is it speed and I have never seen any other theme performing amzing in page speed insights.
For me it showed 98 for mobile devices and 100 for desktop.
But when I put google adsense and analytics code (tried manullay placing the code in header.php as well as used google site kit plugin), the page speed goes to 40-50 for mobile. Desktop still performing great with 95.
I know this is completly independed of your theme scope as these are 3rd party codes. Is there any suggestions or help to increase the page speed with google adsense code?
Please refer to the SS
Thanks
Paul
Hello Stefano!
How do I rename a theme correctly? And do you use a child theme with Brick?
Hi,
I'm developing a new website on bricks, works fantastic but I was wondering how I can add a gulp task for a custom SVG icons sprite. Is it possible you could help me with this?
The imagemin plugin stopped working and givin error while running the yarn install script.
Should be able to complete the script run without any error.
Error message:
yarn install v1.22.19
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning "stylelint-config-standard-scss > stylelint-config-recommended-scss > [email protected]" has unmet peer dependency "postcss@^8.3.3".
[4/4] Building fresh packages...
[-/6] โ waiting...
[-/6] โ waiting...
[3/6] โ gifsicle
[4/6] โ mozjpeg
warning Error running install script for optional dependency: "C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\gifsicle: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\gifsicle
Output:
connect ETIMEDOUT 2405:200:1607:2820:41::36:443
gifsicle pre-build test failed
compiling from source
Error: Command failed: C:\Windows\system32\cmd.exe /s /c "autoreconf -ivf"
'autoreconf' is not recognized as an internal or external command,
operable program or batch file.
at C:\\xampp\\htdocs\\wolf\\wp-content\\themes\\bricks\\node_modules\\execa\\index.js:231:11
[-/6] โ waiting...
[-/6] โ waiting...
[-/6] โ waiting...
[4/6] โ mozjpeg
warning Error running install script for optional dependency: "C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\mozjpeg: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\mozjpeg
Output:
connect ETIMEDOUT 2405:200:1607:2820:41::36:443
mozjpeg pre-build test failed
compiling from source
Error: Command failed: C:\Windows\system32\cmd.exe /s /c "autoreconf -fiv"
'autoreconf' is not recognized as an internal or external command,
operable program or batch file.
at C:\\xampp\\htdocs\\wolf\\wp-content\\themes\\bricks\\node_modules\\execa\\index.js:231:11
[-/6] โ waiting...
[-/6] โ waiting...
[-/6] โ waiting...
[-/6] โ waiting...
warning Error running install script for optional dependency: "C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\optipng-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\optipng-bin
Output:
connect ETIMEDOUT 2405:200:1607:2820:41::36:443
optipng pre-build test failed
compiling from source
Error: Command failed: C:\Windows\system32\cmd.exe /s /c "./configure --with-system-zlib --prefix="C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\optipng-bin\vendor" --bindir="C:\xampp\htdocs\wolf\wp-content\themes\bricks\node_modules\optipng-bin\vendor""
'.' is not recognized as an internal or external command,
operable program or batch file.
at C:\\xampp\\htdocs\\wolf\\wp-content\\themes\\bricks\\node_modules\\execa\\index.js:231:11
Done in 203.81s.
Hi Stefano,
I came across an issues that when ever I compiles all resources for a production environment using the "yarn build" command, the fontawesome.min.js file doesnt have some of the icons like pintrest, whatsapp, telegram, heart, email etc
Please note that while working in the development environment, it is working, but vanish completly after compiling.
Thanks you.
Manu
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.