Skip to content

Instantly share code, notes, and snippets.

@MaximilianoRicoTabo
Created November 12, 2024 16:09
Show Gist options
  • Save MaximilianoRicoTabo/281b06d7e03bdc25cc6c38b9e0030ce0 to your computer and use it in GitHub Desktop.
Save MaximilianoRicoTabo/281b06d7e03bdc25cc6c38b9e0030ce0 to your computer and use it in GitHub Desktop.
Tweak pmpro buttons
<?php
/**
* This recipe tweak pmpro buttons
*
* You can add this recipe to your site by creating a custom plugin
* or using the Code Snippets plugin available for free in the WordPress repository.
* Read this companion article for step-by-step directions on either method.
* https://www.paidmembershipspro.com/create-a-plugin-for-pmpro-customizations/
*/
function pmpro_tweak_buttons () {
//Make buttons blue with white text and rounded corners. Darker blue on hover.
?>
<style>
.pmpro input.pmpro_btn {
background-color: #3871E0;
color: #fff;
border-radius: 30px;
}
.pmpro input.pmpro_btn:hover {
background-color: #2D5AB7;
}
</style>
<?php
}
add_filter( 'init', 'pmpro_tweak_buttons' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment