DisMoi’s Website
Install NVM. You make need to install node.js 8.9.3 if you dont have it already
Navigate to themes/divi-child-theme. Run nvm use
Install packages by running yarn install
yarn run watch
for development
yarn run build
for production
docker-compose up
for docker
- Download production uploads directory
- Get production SQL dump
- Update option_value "siteurl" and "home" in wp_options table
- Drop assets into the local uploads directory
- Search and replace in domains in SQL
- Import modified data dump
More information here -> https://wordpress.org/support/article/moving-wordpress/
To force cache refresh : change the value in Version JS Bundle pour la page "Les Contributeurs" in /wp-admin/customize.php?theme=divi-child-bulle Configuration Bulles/Dismoi
- Add a Uglification to the CSS output without removing the style header comments
rewrite_rules
are used for eclaireur
and en/guides
path and redirection profiles pages.
To do that the function function dismoi_profiler_rewrite_url( $wp_rewrite )
is used in functions.php
For any changes, Wordpress have to flush the rewrite_rules
to apply the new change, to do that :
- go on backoffice
- find permalink page
- save with the button (no need to change anything else)
saving will flush rewrite_rules and generate the new one