๐ Welcome to WordPress-init boilerplate.
Check our prerequisites to get started.
Use our installation guidelines to set up the project on your local.
Use our WPCS guide to set up the WPCS formatter on your local.
Boilerplate code for a new WordPress Site
License: GNU General Public License v3.0
๐ Welcome to WordPress-init boilerplate.
Check our prerequisites to get started.
Use our installation guidelines to set up the project on your local.
Use our WPCS guide to set up the WPCS formatter on your local.
These plugins need to be added through composer:
Update to Wordpress latest release
Update Bootstrap to v4.2.1
In the theme's functions.php
, correct the path of bootstrap.min.js
. Correct path is:
get_template_directory_uri().'/dist/js/bootstrap.min.js`
bootstrap.min.js
to v4.2.1
. Here's the file:https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/js/bootstrap.min.js
Task to achive:
get_youtube_embed_url
functionality to the boiler plate code.add_action( 'after_setup_theme', 'cc_theme_add_supports' );
function cc_theme_add_supports() {
add_theme_support( 'custom-logo' );
add_theme_support( 'align-wide' );
add_theme_support( 'align-full' );
add_theme_support( 'post-thumbnails' );
}
Replace the following lines from wp-config-sample.php
if (WP_ENVIRONMENT == 'Production') {
define('WP_ROOT', '');
} elseif (WP_ENVIRONMENT == 'Development') {
define('WP_ROOT', '/put_your_project_name_here/public');
}
Replace the above content by
define('WP_ROOT', '');
Making vhost should be a mandate.
Is your feature request related to a problem? Please describe.
Cannot use WP-CLI inside the project built using this boilerplate.
Describe the solution you'd like
WP-CLI should be accessible from any directory inside the boilerplate.
Describe alternatives you've considered
Since with this boilerplate, the Wordpress core files are installed inside public/wp/
directory, that needs to be specified with --path
option in the all the wp
commands.
It would be better if we can have a repository-wide configuration. That will save the user to specify it every time.
Additional context
Add any other context or screenshots about the feature request here.
Error during plugin activation
public/wp-content/themes/coloredcow/single.php
remove PHP ending tagpublic/wp-content/themes/tbxi2020/src/scss/media.scss
GPLv3
Describe the task
We are currently not having the pre-requisites and installation guide for this project.
Expected behavior
docs/
folderReferences
Please refer to the README and folder structure of coloredcow-admin/coloredcow repository.
Describe the task
We are using raw files to extend bootstrap. Our effort to maintain these utilities can be reduced by using the npm package
npm install bootstrap-boilerplate
Expected behavior
As the current SASS installation uses Ruby, whose support seems to be deprecated in 2019 (link for reference). The current SASS installation is supported through Dart using NPM. The problem occurring with current code files is described below:
In the current boilerplate, one single JS file is loaded on all the pages (public/wp-content/themes/coloredcow/main.js
). This file is compiled from public/wp-content/themes/coloredcow/src/js/main.js
.
With a single JS file, we missed out on the opportunity. There can be page-specific JavaScript like slider may be needed on a single page. I think it makes sense to load it on the pages on which we need it.
public/wp-content/themes/coloredcow/main.js
page-about.js
, page-team
main.js
with each page's JS file will create minified files for each file.main.js
and page-*.js
@rathorevaibhav would love to know your thoughts/questions.
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.