├── .gitignore ├── README.md └── bs5starter ├── css └── custom.css ├── footer.php ├── functions.php ├── functions ├── enqueues.php ├── navbar.php └── setup.php ├── header.php ├── index.php ├── js └── custom.js └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled source 2 | *.com 3 | *.class 4 | *.dll 5 | *.exe 6 | *.o 7 | *.so 8 | 9 | # Packages 10 | *.7z 11 | *.dmg 12 | *.gz 13 | *.iso 14 | *.jar 15 | *.rar 16 | *.tar 17 | *.zip 18 | 19 | # Logs and databases 20 | *.log 21 | *.sql 22 | *.sqlite 23 | 24 | # OS generated files 25 | .DS_Store 26 | .DS_Store? 27 | ._* 28 | .Spotlight-V100 29 | .Trashes 30 | ehthumbs.db 31 | Thumbs.db -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Barely minimum Bootstrap 5 WordPress starter theme [boilerplate for developers only] 2 | [bs5starter](https://github.com/AlexWebLab/bs5starter) 3 | ## Theme features: 4 | * minimum amount of files required for a WordPress theme (index.php and style.css) 5 | * Bootstrap 5 CSS & JS files enqueued (in function.php from /functions/enqueues.php) 6 | * jQuery removed but optionally available commenting out one line from /functions/enqueues.php 7 | * Bootstrap 5 starter template (separated in 3 files: header.php, index.php and footer.php) 8 | * custom wp_nav_menu walker for Bootstrap 5 navbar (in function.php from /functions/navbar.php) 9 | * empty custom.css & custom.js files (located in /css and /js, respectively) 10 | -------------------------------------------------------------------------------- /bs5starter/css/custom.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/AlexWebLab/barely-minimum-bootstrap-5-wordpress-starter-theme/cd6d9fbb738227008e0bfe9db44382ff5c972734/bs5starter/css/custom.css -------------------------------------------------------------------------------- /bs5starter/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /bs5starter/functions.php: -------------------------------------------------------------------------------- 1 | current_item->classes as $class) { 25 | if(in_array($class, $this->dropdown_menu_alignment_values)) { 26 | $dropdown_menu_class[] = $class; 27 | } 28 | } 29 | $indent = str_repeat("\t", $depth); 30 | $submenu = ($depth > 0) ? ' sub-menu' : ''; 31 | $output .= "\n$indent