diff --git a/includes/admin.php b/includes/admin.php index 8c2ba57..6a6a814 100644 --- a/includes/admin.php +++ b/includes/admin.php @@ -417,6 +417,11 @@ class CWV2_Admin { 'name' => __( 'Background Opacity', 'content-warning-v2' ), 'desc' => __( 'Input a float value from 0-1, the latter being completely opaque.', 'content-warning-v2' ), 'type' => 'number', + 'options' => array( + 'step' => 0.1, + 'max' => 1, + 'min' => 0, + ), ), array( 'id' => 'bg_color', diff --git a/includes/settings.php b/includes/settings.php index f31e1b4..7255caa 100644 --- a/includes/settings.php +++ b/includes/settings.php @@ -1,11 +1,8 @@ $v ) { + $attributes .= $k . '="' . $v . '"'; + } + } + + ?>/>