redux-framework icon indicating copy to clipboard operation
redux-framework copied to clipboard

Problem setting up my first custom field

Open gabrielpadilha opened this issue 12 years ago • 2 comments

Hello I am having trouble creating a custom field to the Redux Framework, would like your help, the most practical way to help is to duplicate an existing field already, because the only thing you need to do is duplicate the inc / fields / inc slides / fields / slides-new.

I could do that and just changed the names of files and key phrases that would:

Original files:


ReduxCore> inc> fields> slides -field_slides.php -field_slides.js -field_slides.css

Duplicate files:


ReduxCore> inc> fields> slides-new -field_slides_new.php -field_slides_new.js -field_slides_new.css

++++++++++++++++++++++++++++++++

Original code:


1 if (! Class_exists ('ReduxFramework_slides')) { 2nd class {ReduxFramework_slides 3 ° wp_enqueue_script ( 'redux-field-slideshow-js' ReduxFramework :: $ _ url. 'inc / fields / slide / field_slides.js' array ('jquery-ui-core' 'jquery', 'jquery-ui-accordion', 'wp-color-picker') time (), true );

         wp_enqueue_style (
             'redux-field-slides-css',
             ReduxFramework :: $ _ url. 'inc / fields / slide / field_slides.css'
             time (),
             true
         );

Duplicate code:


1 if (! Class_exists ('ReduxFramework_slides_new')) { 2nd class {ReduxFramework_slides_new 3 ° wp_enqueue_script ( 'redux-field-slides-new-js' ReduxFramework :: $ _ url. 'inc / fields / slides-new / field_slides_new.js' array ('jquery-ui-core' 'jquery', 'jquery-ui-accordion', 'wp-color-picker') time (), true );

         wp_enqueue_style (
             'redux-field-slides-new-css',
             ReduxFramework :: $ _ url. 'inc / fields / slides-new / field_slides_new.css'
             time (),
             true
         );

++++++++++++++++++++++++++++++++++

With this process could duplicate, but in the wordpress admin he gets a few bugs, one thing I noticed doing this procedure is that it can not load the CSS from the field that would duplicate the slides-new ReduxCore file> inc> fields> > field_slides.css, and the "Delete Slide" button does not work ..

I've tried using the procedure of link: http://docs.reduxframework.com/core/advanced/add-a-custom-field/

And I found little information to be able to do, then follow the hint to use the options: https://github.com/ReduxFramework/extension-boilerplate https://github.com/ReduxFramework/redux-extensions-loader

I could not do for not having more detailed information on the subject and little support, so I am trying to contact you. Many people may think that this problem.

Help me ...

gabrielpadilha avatar Nov 11 '14 12:11 gabrielpadilha

Stop spamming to numerous boards and emailing me. We're not going to give you premium support for free. Support us or you're on your own.

dovy avatar Nov 11 '14 14:11 dovy

Not to pile on, but that includes hunting me down on Facebook. I tend to add only people I know (or really pretty girls) ;-)

kprovance avatar Nov 11 '14 20:11 kprovance