• Compra una licencia de Windows 10/11 (10€) u Office (18€) al mejor precio u Office al mejor precio. Entra en este post con las ofertas
  • ¡Bienvenid@! Recuerda que para comentar en el foro de El Chapuzas Informático necesitas registrar tu cuenta, tardarás menos de 2 minutos y te dará valiosa información además de ayudarte en lo que necesites o pasar un rato agradable con nosotros.

AYUDA Redux Framework

Webtype

Nuevo
Registrado
8 Sep 2016
Mensajes
1
Puntos
0
Estoy probando Redux Framework y cuando modifico el archivo sample-config.php sólo aparece como modificado lo último que he cambiado (3º imagen). No se si falta algo, pero he probado también modificando el código poco a poco cambiando el que hay por defecto por lo que yo quiero y pasa lo mismo. ¿Alguna idea?








Este es el código.

// -> START Basic Fields
Redux::setSection( $opt_name, array(
'title' => __( 'General', 'redux-theme' ),
'id' => 'general',
'desc' => __( 'These are really basic fields!', 'redux-theme' ),
'customizer_width' => '400px',
'icon' => 'el el-home'


) );

Redux::setSection( $opt_name, array(
'title' => __( 'Logo', 'redux-theme' ),
'id' => 'logo',
'subsection' => true,
'customizer_width' => '450px',
'desc' => __( 'For full documentation on this field, visit: ', 'redux-theme' ) . '<a href="//docs.reduxframework.com/core/fields/checkbox/" target="_blank">docs.reduxframework.com/core/fields/checkbox/</a>',
'fields' => array(
array(
'id' => 'opt-media',
'type' => 'media',
'url' => true,
'title' => __( 'Media w/ URL', 'redux-theme' ),
'compiler' => 'true',
'desc' => __( 'Basic media uploader with disabled URL input field.', 'redux-theme' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'redux-theme' ),
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
),
)
) );

Redux::setSection( $opt_name, array(
'title' => __( 'Slider', 'redux-theme' ),
'id' => 'slider',
'subsection' => true,
'customizer_width' => '450px',
'desc' => __( 'For full documentation on this field, visit: ', 'redux-theme' ) . '<a href="//docs.reduxframework.com/core/fields/checkbox/" target="_blank">docs.reduxframework.com/core/fields/checkbox/</a>',
'fields' => array(
array(
'id' => 'opt-text',
'type' => 'text',
'title' => __('Text Option - Email Validated', 'redux-framework-demo'),
'subtitle' => __('This is a little space under the Field Title in the Options table, additional info is good in here.', 'redux-framework-demo'),
'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'),
'validate' => 'email',
'msg' => 'custom error message',
'default' => 'test@test.com'

),
array(
'id' => 'opt-media',
'type' => 'media',
'url' => true,
'title' => __( 'Media w/ URL', 'redux-theme' ),
'compiler' => 'true',
'desc' => __( 'Basic media uploader with disabled URL input field.', 'redux-theme' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'redux-theme' ),
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
),
array(
'id'=>'opt-textarea',
'type' => 'textarea',
'title' => __('Textarea Option - HTML Validated Custom', 'redux-framework-demo'),
'subtitle' => __('Custom HTML Allowed (wp_kses)', 'redux-framework-demo'),
'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'),
'validate' => 'html_custom',
'default' => '<br />Some HTML is allowed in here.<br />',
),
)
) );

Redux::setSection( $opt_name, array(
'title' => __( 'Servicios', 'redux-theme' ),
'id' => 'servicios',
'desc' => __( 'These are really basic fields!', 'redux-theme' ),
'customizer_width' => '400px',
'icon' => 'el el-home'
) );

Redux::setSection( $opt_name, array(
'title' => __( 'Servicio 1', 'redux-theme' ),
'id' => 'servicio 1',
'subsection' => true,
'customizer_width' => '450px',
'desc' => __( 'For full documentation on this field, visit: ', 'redux-theme' ) . '<a href="//docs.reduxframework.com/core/fields/checkbox/" target="_blank">docs.reduxframework.com/core/fields/checkbox/</a>',
'fields' => array(
array(
'id' => 'opt-text',
'type' => 'text',
'title' => __('Text Option - Email Validated', 'redux-framework-demo'),
'subtitle' => __('This is a little space under the Field Title in the Options table, additional info is good in here.', 'redux-framework-demo'),
'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'),
'validate' => 'email',
'msg' => 'custom error message',
'default' => 'test@test.com'

),
array(
'id' => 'opt-media',
'type' => 'media',
'url' => true,
'title' => __( 'Media w/ URL', 'redux-theme' ),
'compiler' => 'true',
'desc' => __( 'Basic media uploader with disabled URL input field.', 'redux-theme' ),
'subtitle' => __( 'Upload any media using the WordPress native uploader', 'redux-theme' ),
'default' => array( 'url' => 'http://s.wordpress.org/style/images/codeispoetry.png' ),
),
array(
'id'=>'opt-textarea',
'type' => 'textarea',
'title' => __('Textarea Option - HTML Validated Custom', 'redux-framework-demo'),
'subtitle' => __('Custom HTML Allowed (wp_kses)', 'redux-framework-demo'),
'desc' => __('This is the description field, again good for additional info.', 'redux-framework-demo'),
'validate' => 'html_custom',
'default' => '<br />Some HTML is allowed in here.<br />',
),
)
) );
 
Arriba