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
1) Download production uploads directory 2) Get production SQL dump 3) Update option_value "siteurl" and "home" in wp_options table 4) Drop assets into the local uploads directory 5) Search and replace in domains in SQL 6) 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
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 :
saving will flush rewrite_rules and generate the new one