Skip to content

Commit

Permalink
Update button styling
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Jan 16, 2025
1 parent d2e5455 commit db76f6d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 29 deletions.
46 changes: 23 additions & 23 deletions admin/class-convertkit-admin-settings-restrict-content.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,22 @@ public function register_fields() {
)
);

// All.
add_settings_field(
'subscribe_button_label',
__( 'Subscribe Button Label', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
array(
'name' => 'subscribe_button_label',
'label_for' => 'subscribe_button_label',
'description' => array(
__( 'The text to display for the call to action button to subscribe.', 'convertkit' ),
),
)
);

// Restrict by Product.
add_settings_field(
'subscribe_heading',
Expand Down Expand Up @@ -208,28 +224,12 @@ public function register_fields() {
)
);

// All.
add_settings_field(
'subscribe_button_label',
__( 'Subscribe Button Label', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
array(
'name' => 'subscribe_button_label',
'label_for' => 'subscribe_button_label',
'description' => array(
__( 'The text to display for the call to action button to subscribe.', 'convertkit' ),
),
)
);

add_settings_field(
'email_text',
__( 'Email Text', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
$this->name . '-products',
array(
'name' => 'email_text',
'label_for' => 'email_text',
Expand All @@ -244,7 +244,7 @@ public function register_fields() {
__( 'Email Heading', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
$this->name . '-products',
array(
'name' => 'email_heading',
'label_for' => 'email_heading',
Expand All @@ -259,7 +259,7 @@ public function register_fields() {
__( 'Email Field Description', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
$this->name . '-products',
array(
'name' => 'email_description_text',
'label_for' => 'email_description_text',
Expand All @@ -274,7 +274,7 @@ public function register_fields() {
__( 'Email Button Label', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
$this->name . '-products',
array(
'name' => 'email_button_label',
'label_for' => 'email_button_label',
Expand All @@ -289,7 +289,7 @@ public function register_fields() {
__( 'Email Check Heading', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
$this->name . '-products',
array(
'name' => 'email_check_heading',
'label_for' => 'email_check_heading',
Expand All @@ -304,7 +304,7 @@ public function register_fields() {
__( 'Email Check Text', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
$this->name . '-products',
array(
'name' => 'email_check_text',
'label_for' => 'email_check_text',
Expand All @@ -319,7 +319,7 @@ public function register_fields() {
__( 'No Access Text', 'convertkit' ),
array( $this, 'text_callback' ),
$this->settings_key,
$this->name,
$this->name . '-products',
array(
'name' => 'no_access_text',
'label_for' => 'no_access_text',
Expand Down
13 changes: 7 additions & 6 deletions resources/backend/css/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,11 @@ body.settings_page__wp_convertkit_settings .wrap .postbox h2 {
body.settings_page__wp_convertkit_settings .wrap .postbox p {
font-size: 14px;
}
body.settings_page__wp_convertkit_settings .wrap .postbox p.submit {
body.settings_page__wp_convertkit_settings p.submit {
margin-bottom: 20px;
padding: 0;
}
body.settings_page__wp_convertkit_settings .wrap .postbox .button {
body.settings_page__wp_convertkit_settings .button {
margin: 0 5px 0 0;
padding: 4px 12px;
font-size: 14px;
Expand All @@ -119,21 +120,21 @@ body.settings_page__wp_convertkit_settings .wrap .postbox .button {
text-shadow: none;
box-shadow: none;
}
body.settings_page__wp_convertkit_settings .wrap .postbox .button-primary {
body.settings_page__wp_convertkit_settings .button-primary {
background: #1e1e1e;
border-color: #1e1e1e;
color: #fff;
}
body.settings_page__wp_convertkit_settings .wrap .postbox .button-primary:hover {
body.settings_page__wp_convertkit_settings .button-primary:hover {
background: #3d3d3d;
border-color: #3d3d3d;
}
body.settings_page__wp_convertkit_settings .wrap .postbox .button-secondary {
body.settings_page__wp_convertkit_settings .button-secondary {
background: #f0f0f0;
border-color: #f0f0f0;
color: #3d3d3d;
}
body.settings_page__wp_convertkit_settings .wrap .postbox .button-secondary:hover {
body.settings_page__wp_convertkit_settings .button-secondary:hover {
background: #ddd;
border-color: #ddd;
}
Expand Down

0 comments on commit db76f6d

Please sign in to comment.