Ordering options from child theme
-
I am able to override my parent theme’s options using the Redux API as shown below. Is there a parameter that can be used to keep the order the same? In the parent theme the option/fields are the “3rd” from the top. However implementing the below it goes to the bottom of the page…
add_action('after_setup_theme', 'child_load_redux_settings'); function child_load_redux_settings(){ if ( class_exists( 'Redux' ) ) { $opt_name = "my_opt_name"; Redux::setField($opt_name, array( 'section_id' => 'page_options', 'id' => 'my_options', 'type' => 'select', 'title' => esc_html__( 'Child theme custom', 'my_theme' ), 'data' => 'taxonomies', 'args' => array( 'object_type' => array( 'post', 'page', ) ), )); } }
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Ordering options from child theme’ is closed to new replies.