Custom Fields
Re-Envisioned
Support General Bug: Color Picker field is showed below the Title field

This topic contains 3 replies, has 2 voices, and was last updated by  clientes@interficto.com 4 months, 1 week ago.

  • Creator
    Topic
  • #15160
    Resolved
    clientes@interficto.com
    Participant

    Hello I created a color picker but it is showed below the title, please see the image:

    View post on imgur.com

    I think is because Z-index porperty

    teh code is the follow:

    
    add_filter( 'rwmb_meta_boxes', 'your_prefix_register_meta_boxes' );
    function your_prefix_register_meta_boxes( $meta_boxes ) {
        $meta_boxes[] = array (
            'title' => 'Características',
            'id' => 'Proyecto_Caracteristicas',
            'post_types' => array(
                0 => 'proyectos',
            ),
            'context' => 'after_title',
            'priority' => 'high',
            'fields' => array(
                array (
                    'id' => 'logo',
                    'type' => 'single_image',
                    'name' => 'Logo del proyecto',
                    'force_delete' => 1,
                    'tab' => 'car_generales',
                ),
                array (
                    'id' => 'img_principal',
                    'type' => 'single_image',
                    'name' => 'Imagen Principal',
                    'required' => 1,
                    'tab' => 'car_generales',
                ),
                array (
                    'id' => 'color_principal',
                    'name' => 'Color Principal',
                    'type' => 'color',
                    'size' => 7,
                    'required' => 1,
                    'tab' => 'car_generales',
                ),
                array (
                    'id' => 'color_secundario',
                    'name' => 'Color Secundario',
                    'type' => 'color',
                    'size' => 7,
                    'required' => 1,
                    'tab' => 'car_generales',
                ),
            ),
            'tab_style' => 'left',
            'tabs' => array(
                'car_generales' => array(
                    'label' => 'General',
                    'icon' => '',
                ),
            ),
        );
        return $meta_boxes;
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #15213

    Hello Any news for it?

    #15216

    Anh Tran
    Keymaster

    Hi Clientes,

    I missed this topic. I’ve just fixed the bug here. Please try it. New version will come later.

    #15283

    Hello, now is correct, thank you very much Anh.

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.