Ayuda con error en functions.php, el sitio sale en blanco
-
Hola amigos, por favor, agradecería si me pueden ayudar con este problema. Quise editar algo en el tema editando Functions.php y lo malogré, se desordenó toda la sintaxis del archivo y mi página sale en blanco. Quise arreglarlo y luego mi Escritorio también se puso en blanco.
¿Podrían ayudarme a ordenar nuevamente el código? Lo copio a continuación:
<?php // File Security Check if ( ! empty( $_SERVER['SCRIPT_FILENAME'] ) && basename( __FILE__ ) == basename( $_SERVER['SCRIPT_FILENAME'] ) ) { die ( 'You do not have sufficient permissions to access this page!' ); } ?> <?php /*-----------------------------------------------------------------------------------*/ /* Start WooThemes Functions - Please refrain from editing this section*/ /*-----------------------------------------------------------------------------------*/ // Define the theme-specific key to be sent to PressTrends.define( 'WOO_PRESSTRENDS_THEMEKEY', 'zdmv5lp26tfbp7jcwiw51ix9sj389e712' );// WooFramework initrequire_once ( get_template_directory() . '/functions/admin-init.php' ); /*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/ $includes = array( 'includes/theme-options.php', // Options panel settings and custom settings 'includes/theme-functions.php', // Custom theme functions 'includes/theme-actions.php', // Theme actions & user defined hooks 'includes/theme-comments.php', // Custom comments/pingback loop 'includes/theme-js.php', // Load JavaScript via wp_enqueue_script 'includes/sidebar-init.php', // Initialize widgetized areas 'includes/theme-widgets.php', // Theme widgets 'includes/theme-install.php', // Theme installation 'includes/theme-woocommerce.php' // WooCommerce options );// Allow child themes/plugins to add widgets to be loaded.$includes = apply_filters( 'woo_includes', $includes );foreach ( $includes as $i ) { locate_template( $i, true );} /*-----------------------------------------------------------------------------------*/ /* You can add custom functions below */ /*-----------------------------------------------------------------------------------*/ /*-----------------------------------------------------------------------------------*/ /* Don't add any code below here or the sky will fall down */ /*-----------------------------------------------------------------------------------*/ ?>
Agradeceré mucho su ayuda estoy por pegar el grito al cielo 🙁
Viendo 1 respuesta (de un total de 1)
Viendo 1 respuesta (de un total de 1)
- El debate ‘Ayuda con error en functions.php, el sitio sale en blanco’ está cerrado a nuevas respuestas.