hot to insert button here ?

Home Forums Legacy Support Support queries How-to & Troubleshooting hot to insert button here ?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6590
    trapaniettech
    Spectator
    hi , i want to insert this form <form action="<?php echo get_permalink($course_id); ?>" method="post"> <input type="submit" name="review_course" class="review_course unit_button full button" value="<?php _e('REVIEW COURSE ', 'vibe'); ?>" /> <?php wp_nonce_field($course_id, 'review'); ?> </form> like in image http://prntscr.com/8y7lry there is an hook to insert the code here ? thanks
    #6722
    Anshuman Sahu
    Keymaster
    Add the given code in your wplms-customizer.php file in wplms customizer plugin : if (!function_exists('vibe_course_button')) { function vibe_course_button( $atts, $content = null ) { extract(shortcode_atts(array( 'id'   => '' ), $atts));   if(!is_numeric($id)) return;   ob_start(); if(!empty($id)){ the_course_button($id); }else{ global $post; the_course_button($post->ID); }   $html = ob_get_clean(); return $html; } add_shortcode('course_button', 'vibe_course_button');   } And then use the shortcode  : [course_button id="course_id "] 
    #6758
    trapaniettech
    Spectator
    thanks so much, but where i insert the shortcode ?
    #6774
    sandy
    Member
    Add the given code in your wplms-customizer.php file in wplms customizer plugin. For more info : https://wplms.io/support/knowledge-base/how-to-use-coding-tips/  
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘hot to insert button here ?’ is closed to new replies.