Title: Customise buttons
Last modified: October 25, 2021

---

# Customise buttons

 *  Resolved [gilbertomtnez](https://wordpress.org/support/users/gilbertomtnez/)
 * (@gilbertomtnez)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/customise-buttons-3/)
 * Hello,
 * Is there a way to customise buttons?
 * I was thinking of something like “enrol” instead of “add to the cart”, to adapt
   it more to non-profit educational organizations.
 * Thanks

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [masteriyo](https://wordpress.org/support/users/masteriyo/)
 * (@masteriyo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/customise-buttons-3/#post-15007241)
 * Hello [@gilbertomtnez](https://wordpress.org/support/users/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.
 *  Plugin Author [masteriyo](https://wordpress.org/support/users/masteriyo/)
 * (@masteriyo)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/customise-buttons-3/#post-15031082)
 * Hi [@gilbertomtnez](https://wordpress.org/support/users/gilbertomtnez/),
 * As we haven’t heard back from you, we are marking this thread as ‘resolved’. 
   If you have any further queries on this matter you can always reply on this thread
   or open a new support thread and we will get back to you.
 * Thanks.
    Sanjip S.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Customise buttons’ is closed to new replies.

 * ![](https://ps.w.org/learning-management-system/assets/icon-256x256.gif?rev=3520181)
 * [Masteriyo LMS – LMS Course Builder, Quizzes & Certificates](https://wordpress.org/plugins/learning-management-system/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learning-management-system/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learning-management-system/)
 * [Active Topics](https://wordpress.org/support/plugin/learning-management-system/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learning-management-system/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learning-management-system/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [masteriyo](https://wordpress.org/support/users/masteriyo/)
 * Last activity: [4 years, 9 months ago](https://wordpress.org/support/topic/customise-buttons-3/#post-15031082)
 * Status: resolved