• Resolved gilbertomtnez

    (@gilbertomtnez)


    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

    (@masteriyo)

    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.

    Plugin Author masteriyo

    (@masteriyo)

    Hi @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.