Merge branch 'issue-3' into 'develop'

Fixes #3 readd missing tinymce style on front

Closes #3

See merge request ldc-web/projets/ldc!4
This commit is contained in:
Vincent BRIDIER 2023-03-27 11:27:06 +00:00
commit f3f33989f8

View file

@ -1,6 +1,7 @@
<?php
// TODO : vérifier si pas d'incidence sur les dates du site
// ! Changed remove block 'REMOVE GUTENBERG STYLES' as breaks tinymce styles on front. (24/03/23)
//date_default_timezone_set('Europe/Paris');
/*******************************************************************
@ -45,16 +46,6 @@ add_filter( 'excerpt_length', function(){
return 50;
});
/* REMOVE GUTENBERG STYLES START */
function smartwp_remove_wp_block_library_css(){
wp_dequeue_style( 'wp-block-library' );
wp_dequeue_style( 'wp-block-library-theme' );
}
add_action( 'wp_enqueue_scripts', 'smartwp_remove_wp_block_library_css' );
/* REMOVE GUTENBERG STYLES END */
/* REMOVE ATTRS START */
add_action('wp_loaded', 'prefix_output_buffer_start');
function prefix_output_buffer_start() {