• Gracias de antemano.
    Estoy intentando activar Thickbox en el tema que tengo instalado (se llama Swatch)

    Lo que hago es insertar la siguiente instrucción: <?php add_thickbox(); ?> en funtions.php

    Me voy a la pestaña Apariencia, Editor y selecciono Funciones del tema (funtions.php) e inserto la instrucción. En el momento hago esto WordPress deja de funcionar completamente. No puedo ni acceder al panel de admin. Lo he solucionado entrado directamente al servidor al archivo funtions.php del tema Swatch y eliminando el código manualmente. Todo vuelve a estar bien. ¿Estoy insertando la instrucción mal?

    Este es el codigo del y la instrucción que he insertado antes de darme el error:

    <?php

    /*———————————————————————————–*/
    /* Start WooThemes Functions – Please refrain from editing this section */
    /*———————————————————————————–*/

    // Set path to WooFramework and theme specific functions
    $functions_path = get_template_directory() . ‘/functions/’;
    $includes_path = get_template_directory() . ‘/includes/’;

    // Define the theme-specific key to be sent to PressTrends.
    define( ‘WOO_PRESSTRENDS_THEMEKEY’, ‘rk30qhvtxlpq6rmzmix5qdw69ysfk8msu’ );

    // WooFramework
    require_once ($functions_path . ‘admin-init.php’ ); // Framework Init

    /*———————————————————————————–*/
    /* Load the theme-specific files, with support for overriding via a child theme.
    /*———————————————————————————–*/

    $includes = array(
    ‘includes/theme-options.php’, // Options panel settings and custom settings
    ‘includes/theme-functions.php’, // Custom theme functions
    ‘includes/theme-plugins.php’, // Theme specific plugins integrated in a theme
    ‘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
    );

    // 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 */
    /*———————————————————————————–*/

    <?php add_thickbox(); ?> LA INSERTO AQUI

    /*———————————————————————————–*/
    /* Don’t add any code below here or the sky will fall down */
    /*———————————————————————————–*/
    ?>

  • El debate ‘Activar thickbox en mi tema’ está cerrado a nuevas respuestas.