PHP – Custom login

// === CUSTOM LOGIN PAGE === add_action(‘login_enqueue_scripts’, function () { echo ‘ ‘; }); // === LIEN DU LOGO DE CONNEXION === add_filter(‘login_headerurl’, fn() => ‘https://www.mdf.nc’); add_filter(‘login_headertext’, fn() => ‘MDF NC’);Continue reading

Dynamic Shortcode Execution

/** * Extend native WordPress shortcode block with live preview */ if ( ! defined( ‘ABSPATH’ ) ) exit; class Enhanced_Shortcode_Block { public function __construct() { add_action( ‘enqueue_block_editor_assets’, array( $this, ‘enqueue_assets’ ) ); // Ensure shortcodes work in other blocks…Continue reading

Normalize CSS (The New Normal)

if ( ! function_exists( ‘enqueue_custom_styles’ ) ) { function enqueue_custom_styles() { // Normalize wp_register_style( ‘the-new-normal-css’, ‘https://cdn.jsdelivr.net/gh/sarahschopick/the-new-normal.css@main/the-new-normal.min.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘the-new-normal-css’ ); // WordPress Normalization wp_register_style( ‘normalize-wordpress’, ‘https://cdn.jsdelivr.net/gh/sarahschopick/normalize-wordpress@main/normalize-wordpress.min.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘normalize-wordpress’ ); } } add_action( ‘wp_enqueue_scripts’, ‘enqueue_custom_styles’ );Continue reading