Fix Pricing buttons to always use green styling with dedicated class and CSS rules
This commit is contained in:
@ -970,6 +970,31 @@ body.wp-admin .button.button-secondary:hover {
|
|||||||
justify-content: center !important;
|
justify-content: center !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Specific styling for Pricing buttons */
|
||||||
|
.pricing-button,
|
||||||
|
a.button.pricing-button,
|
||||||
|
body.wp-admin .button.pricing-button,
|
||||||
|
#pro a.button.pricing-button,
|
||||||
|
#hosting a.button.pricing-button,
|
||||||
|
#tools a.button.pricing-button,
|
||||||
|
#readme a.button.pricing-button {
|
||||||
|
color: #219653 !important;
|
||||||
|
border-color: #219653 !important;
|
||||||
|
background-color: transparent !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pricing-button:hover,
|
||||||
|
a.button.pricing-button:hover,
|
||||||
|
body.wp-admin .button.pricing-button:hover,
|
||||||
|
#pro a.button.pricing-button:hover,
|
||||||
|
#hosting a.button.pricing-button:hover,
|
||||||
|
#tools a.button.pricing-button:hover,
|
||||||
|
#readme a.button.pricing-button:hover {
|
||||||
|
color: #1b7b42 !important;
|
||||||
|
border-color: #1b7b42 !important;
|
||||||
|
background-color: rgba(33, 150, 83, 0.05) !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Read Me Tab Panel */
|
/* Read Me Tab Panel */
|
||||||
#readme .wpa-pro-plugins {
|
#readme .wpa-pro-plugins {
|
||||||
display: block;
|
display: block;
|
||||||
|
@ -46,6 +46,10 @@ class WP_Allstars_Hosting_Manager {
|
|||||||
} else {
|
} else {
|
||||||
// Add green styling to secondary buttons
|
// Add green styling to secondary buttons
|
||||||
$button_class .= ' green-button-secondary';
|
$button_class .= ' green-button-secondary';
|
||||||
|
// Special handling for Pricing buttons
|
||||||
|
if ($button['text'] === 'Pricing') {
|
||||||
|
$button_class .= ' pricing-button';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">
|
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">
|
||||||
|
@ -100,6 +100,10 @@ class WP_Allstars_Pro_Plugins_Manager {
|
|||||||
} else {
|
} else {
|
||||||
// Add green styling to secondary buttons
|
// Add green styling to secondary buttons
|
||||||
$button_class .= ' green-button-secondary';
|
$button_class .= ' green-button-secondary';
|
||||||
|
// Special handling for Pricing buttons
|
||||||
|
if ($button['text'] === 'Pricing') {
|
||||||
|
$button_class .= ' pricing-button';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">
|
<a href="<?php echo esc_url($button['url']); ?>" target="_blank" class="<?php echo esc_attr($button_class); ?>">
|
||||||
|
Reference in New Issue
Block a user