私は数時間を費やしましたが、解決策はとてもシンプルで信じられないほどです. ブートストラップ テーマで、includes の下にある form.inc ファイルを検索します。このファイルではすべてフィールドはで上書きされます. したがって、ホームボックスはアクションと入力フィールドを検索していますが、誰も見つかりません。このクエリで else の戻り値を置き換えると、次のようになります。
if (isset($element['#id']) && in_array($element['#id'], $whitelist)) {
return '<input' . drupal_attributes($element['#attributes']) . ">\n"; // This line break adds inherent margin between multiple buttons
}
else {
return '<button' . drupal_attributes($element['#attributes']) . '>'. $label ."</button>\n"; // This line break adds inherent margin between multiple buttons
}
//この return '<input' . drupal_attributes($element['#attributes']) . ">\n";
改行により、複数のボタンの間に固有のマージンが追加されます
ホームボックスの作業を開始します。
よろしく、Internetagentur Münchenのアレックス