Support » Plugin: Theme My Login » putting checkbox in line

  • Resolved assthera

    (@assthera)


       // 領域
        tml_add_form_field( 'register', 'Field', array(
    	    'type' => 'custom',
            'label'=> '該当する領域にチェック',
            'priority' => 10,    
          ) );
       // 神経
            tml_add_form_field( 'register', 'nerve', array(
                'type' => 'checkbox',
                'label'=> '神経',
                'value'=> '1',
                'checked'=> tml_get_request_value( 'nerve', 'post' ),
                'priority' => 10,
                'class' => 'check',
    
                
                
            ) );  
       // 整形
            tml_add_form_field( 'register', 'Field', array(
                'type' => 'checkbox',
                'label'=> '整形',
                'value'=> '1',
                'checked' => tml_get_request_value( 'orthopaedy', 'post' ),
                'priority' => 10,
              
            ) );    
        // 呼吸器
            tml_add_form_field( 'register', 'Respiratory', array(
                'type' => 'checkbox',
                'label'=> '呼吸器',
                'value'=> '1',
                'checked'=> tml_get_request_value( 'respiratory', 'post' ),
                'priority' => 10,
            
            ) );
         // 心臓   
            tml_add_form_field( 'register', 'Heart', array(
                'type' => 'checkbox',
                'label'=> '心臓',
                'value'=>  '1',
                'checked'=>tml_get_request_value( 'heart', 'post' ),
                'priority' => 10,           
            ) );
        // 内部(呼吸器、心臓以外)
            tml_add_form_field( 'register', 'Internal', array(
                'type' => 'checkbox',
                'label'=> '内部(呼吸器、心臓以外)',
                'value'=> '1',
                'checked'=> tml_get_request_value( 'internal', 'post' ),
                'priority' => 10,       
            ) );
        // 小児
            tml_add_form_field( 'register', 'Child', array(
                'type' => 'checkbox',
                'label'=> '小児',
                'value'=> '1',
                'checked'=> tml_get_request_value( 'child', 'post' ),
                'priority' => 10,       
            ) );
        // 精神
            tml_add_form_field( 'register', 'Mental', array(
                'type' => 'checkbox',
                'label'=> '精神',
                'value'=> '1',
                'checked'=> tml_get_request_value( 'mental', 'post' ),
                'priority' => 10,       

    I am looking for a way to line the checkbox. I am writting the the code above in the theme_my_login_custom.

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeff Farthing

    (@jfarthing84)

    Are you asking how to align checkboxes, or how to put them all on the same line?

    Thank you for your quick reply!!
    I want to make it all on the same line.

    Plugin Author Jeff Farthing

    (@jfarthing84)

    One way would be to target the containers of those checkboxes using CSS. TML applies a class of tml-{$field_name}-wrap to each form field container. So, for instance:

    
    .tml-nerve-wrap {
        display: inline-block;
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.