Standardize Go Pro button styling to match WordPress default button-primary colors

This commit is contained in:
Marcus Quinn
2025-03-16 05:06:42 +00:00
parent fd5ac94d03
commit 46ab1e3d40
2 changed files with 2 additions and 16 deletions

View File

@ -349,21 +349,7 @@
margin-top: 0;
}
/* Pro Buttons */
.go-pro-button {
background: #ff8c00 !important;
border-color: #ff7b00 !important;
color: #fff !important;
box-shadow: 0 1px 0 #ff7b00 !important;
text-shadow: 0 -1px 1px #ff7b00, 1px 0 1px #ff7b00, 0 1px 1px #ff7b00, -1px 0 1px #ff7b00 !important;
}
.go-pro-button:hover,
.go-pro-button:focus {
background: #ff9d1c !important;
border-color: #ff7b00 !important;
color: #fff !important;
}
/* Pro Buttons now use standard WordPress .button-primary styles */
/* More Details Link */
.more-details {

View File

@ -347,7 +347,7 @@ function wp_allstars_generate_plugin_cards($plugins) {
$pro_plugins = wp_allstars_get_pro_plugins_config();
foreach ($pro_plugins as $pro_plugin) {
if (isset($pro_plugin['free_slug']) && $pro_plugin['free_slug'] === $plugin->slug) {
echo '<li><a class="button go-pro-button" href="' . esc_url($pro_plugin['url']) . '" target="_blank">' . esc_html__('Go Pro', 'wp-allstars') . '</a></li>';
echo '<li><a class="button button-primary" href="' . esc_url($pro_plugin['url']) . '" target="_blank">' . esc_html__('Go Pro', 'wp-allstars') . '</a></li>';
break;
}
}