Minecraft-Modern-Theme/functions.php aktualisiert
This commit is contained in:
@@ -108,7 +108,6 @@ function minecraft_modern_scripts() {
|
||||
)
|
||||
);
|
||||
|
||||
// === NEU & WICHTIG: Header-Skript-Informationen übergeben ===
|
||||
// Dies verhindert das Flackern im Customizer.
|
||||
wp_localize_script(
|
||||
'minecraft-modern-header-script', // <-- Richtiges Skript-Handle!
|
||||
@@ -123,6 +122,9 @@ add_action( 'wp_enqueue_scripts', 'minecraft_modern_scripts' );
|
||||
// === Customizer-Datei laden ===
|
||||
require get_template_directory() . '/inc/customizer.php';
|
||||
|
||||
// === Theme-Updater-Datei laden ===
|
||||
require get_template_directory() . '/inc/theme-updater.php';
|
||||
|
||||
// === Footer-Widgets registrieren ===
|
||||
function minecraft_modern_footer_widgets() {
|
||||
register_sidebar( array(
|
||||
@@ -199,7 +201,7 @@ function create_faq_post_type() {
|
||||
add_action('init', 'create_faq_post_type');
|
||||
|
||||
// =============================================================================
|
||||
// NEU: Automatische "Home" Seitenerstellung und Zuweisung (kombiniert)
|
||||
// ===== Automatische "Home" Seitenerstellung und Zuweisung (kombiniert) =======
|
||||
// =============================================================================
|
||||
|
||||
/**
|
||||
@@ -300,7 +302,7 @@ add_filter( 'template_include', 'load_faq_page_template' );
|
||||
|
||||
|
||||
// =========================================================================
|
||||
// === CUSTOM LOGIN FUNCTIONS (KOMPLETT NEU & KORRIGIERT) ==========
|
||||
// === CUSTOM LOGIN FUNCTIONS =============================================
|
||||
// =========================================================================
|
||||
|
||||
// Lädt alle notwendigen Styles und Scripts nur für die Login-Seite
|
||||
|
||||
Reference in New Issue
Block a user