• Resolved milup25

    (@milup25)


    Hello

    I want to move of place the button “take this course” in my site, but I don’t see the code in the files php of the course for doing.

    For example, I would like put the button below of the course title.

    Somebody can you tell me how do it? Please

    Thanks a lot in advance.

    https://www.ads-software.com/plugins/learnpress/

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ken Nguyen

    (@kendy73)

    Hi milup25,

    Firstly, we have to remove the old button. Add the snippet into your current theme:

    function your_theme_update_learn_press_templates() {
    	remove_action( 'learn_press_course_landing_content', 'learn_press_course_enroll_button', 50 );
    
    }
    add_action( 'after_setup_theme', 'your_theme_update_learn_press_templates' );

    After that, override LearnPress templates add put the function in wherever you want. Follow the instruction to know how to do it https://github.com/LearnPress/LearnPress/wiki/How-to-override-LearnPress-templates.

    Regards,

    Ken

Viewing 1 replies (of 1 total)
  • The topic ‘how can i move the button "take this course" of place.?’ is closed to new replies.