Hello @gilbertomtnez,
Yes, that is a nice idea. In our updates soon, we will think of adding an option to change the different texts and button labels in the Masteriyo plugin.
Till then you can try one of the following solutions.
1. Using a child theme. In your child theme’s code, please add the following code in functions.php file.
/**
* Change the add to cart button text.
*
* @param string $text Add to cart button text.
* @return string
*/
function masteriyo_change_add_to_cart_button_text( $text ) {
return 'Enroll Now';
}
add_filter( 'masteriyo_add_to_cart_text', 'masteriyo_change_add_to_cart_button_text' );
Or
2. You can use the custom CSS (Appearrance->Customize->Additional CSS) and add the following CSS as a quick solution for your case.
/* Change 'Add to cart' text */
.masteriyo-time-btn .masteriyo-course--btn::after{
content: "Enroll Now";
position: absolute;
top:0;
right:0;
visibility:visible;
background-color: var(--masteriyo-color-primary);
border-color: var(--masteriyo-color-primary);
color: var(--masteriyo-color-white);
border-radius: 2px;
padding: 10px 24px;
}
.masteriyo-time-btn .masteriyo-course--btn:hover:after{
opacity: 0.9;
}
We suggest using option 1 if you are using child theme or intend to use one. However, option 2 is also fine to go with.
Hope this helps and thanks for using our plugin. ??
Thanks.
Sanjip S.