Would like to create custom course block style

Home Forums Legacy Support Support queries Styling issues Would like to create custom course block style

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #149666
    Tejas
    Spectator
    Hi, I would like to create custom course block style. Please point me to that info.   Screenshot: Screen shot I would like to create one of these(custom block style).
    #149699
    Anshuman Sahu
    Keymaster
    Hi, For creating your own custom featured block style, Please follow this tip. Refer : https://wplms.io/support/knowledge-base/creating-custom-featured-block-style/
    #150630
    Tejas
    Spectator
    This reply has been marked as private.
    #150722
    Anshuman Sahu
    Keymaster
    This reply has been marked as private.
    #150878
    Tejas
    Spectator
    This reply has been marked as private.
    #151004
    Anshuman Sahu
    Keymaster
    Hi, It seems you paste the above information without update it and this error is coming. Kindly re-check your code on the line mention in error.    
    #151023
    Tejas
    Spectator
    Please direct me to documentation where I can read and understand these functions better. Also, I couldn't understand what you meant in the previous comment. Also please let me know your working hours so that I can get in touch at right time. Thank you.
    #151112
    Anshuman Sahu
    Keymaster
    Hi, Please follow this tip : https://wplms.io/support/knowledge-base/creating-custom-featured-block-style/ And enter fields like this. Refer : http://prntscr.com/iv96dp
    #152272
    Tejas
    Spectator
    Thank you for your help. It was helpful indeed. Following things worked out for me and if anyone else is looking for the same, try these:
    // 1) Course image : $course_img = get_the_post_thumbnail($post->ID,'medium'); // 2) Post link : $post_link = get_permalink($post->ID); // 3) Course title : $post_title = $post->post_title; $post_title_len = strlen($post_title); $post_title_sub = $post_title; if($post_title_len > 15) { $post_title_sub = substr($post_title,0,13).'..'; } // 4) Course instructor : $instructor_name_len = strlen($instructor_name); $instructor_name_sub = $instructor_name; if($instructor_name_len > 15) { $instructor_name_sub = substr($instructor_name,0,13).'..'; } // 5) Instructor profile link: $instructor_link = bp_core_get_user_domain($post->post_author); // 6) Course rating :- $course_rating = bp_course_get_course_meta(); // 7) Course cost:- $course_cost = bp_course_get_course_credits($post->ID);
    Have a good one.
    #152299
    Anshuman Sahu
    Keymaster
    Hi, Welcome! Closing this topic as your problem is resolved.
Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Would like to create custom course block style’ is closed to new replies.