Standardize Go Pro button styling to match WordPress default button-primary colors
This commit is contained in:
@ -349,21 +349,7 @@
|
|||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Pro Buttons */
|
/* Pro Buttons now use standard WordPress .button-primary styles */
|
||||||
.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;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* More Details Link */
|
/* More Details Link */
|
||||||
.more-details {
|
.more-details {
|
||||||
|
@ -347,7 +347,7 @@ function wp_allstars_generate_plugin_cards($plugins) {
|
|||||||
$pro_plugins = wp_allstars_get_pro_plugins_config();
|
$pro_plugins = wp_allstars_get_pro_plugins_config();
|
||||||
foreach ($pro_plugins as $pro_plugin) {
|
foreach ($pro_plugins as $pro_plugin) {
|
||||||
if (isset($pro_plugin['free_slug']) && $pro_plugin['free_slug'] === $plugin->slug) {
|
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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user