BuddyBoss Home – Web Support Forums Themes Boss. theme Edit Course category

Viewing 11 posts - 1 through 11 (of 11 total)
  • Question

    #53222
    @adminchroncleproject-com

    Hi,
    We would like to edit the layout of the courses in the Course categories pages. We found out we need to edit the boss_edu_sensei_course_category_main_content action and we'd like to do it in our custom functions.php file but we first need to remove the Boss Sensei action. How can we do that?
    Thank you!

    Answers

    #53334
    @vapvarun

    Hi @adminchroncleproject-com following should work

    
    function remove_action_boss_edu()
    {
    global $boss_sensei;
    remove_action( 'sensei_course_category_main_content', array( $boss_sensei, 'boss_edu_sensei_course_category_main_content'), 10 );
    }
    add_action( 'bp_loaded', 'remove_action_boss_edu' )
    

    Regards
    Varun Dubey

    #53363
    @adminchroncleproject-com

    Hi Varun,
    Thank you for your reply. Unfortunately, this is not working. The courses are still showing.

    Thank you!

    #53453
    @vapvarun

    Hi @adminchroncleproject-com, I had just gave functions to remove action i was not sure what exactly you are trying to override.
    It seems you just need to override loop-course.php

    Regards
    Varun Dubey

    #53491
    @adminchroncleproject-com

    Hi Varun,
    I think what you gave me was exactly what I needed, but for some reason it is not working. I am indeed trying to remove the action boss_edu_sensei_course_category_main_content and to add my own instead. At the moment, I managed to add my own function but not to remove the original one (so the courses are showing twice). Do you have an idea why it is still showing?

    This is what I have in my functions.php file:

    function remove_action_boss_edu() {
            global $boss_sensei;
            remove_action( 'sensei_course_category_main_content', array( $boss_sensei, 'boss_edu_sensei_course_category_main_content'), 10 );
        }
        add_action( 'bp_loaded', 'remove_action_boss_edu' );
    	
    	
    	add_action( 'sensei_course_category_main_content', 'my_boss_edu_sensei_course_category_main_content', 9 );
    
        function my_boss_edu_sensei_course_category_main_content() { (...) }
    #54137
    @adminchroncleproject-com

    Hi,

    I would appreciate a follow-up on this question. Do you need any other information ?

    Thank you for you support on this

    #54361
    @vapvarun

    Hi @adminchroncleproject-com, Sorry for the delayed response
    I will provide you specific codes today after cross testing them.
    Regards
    Varun Dubey

    #55779
    @adminchroncleproject-com

    Hi Varun,
    We didn't had news from you about this issue. Have you found out something that could help us?
    Thank you!

    Please send your reply to [email protected] thank you!

    #55914

    Anonymous
    @

    Hi @adminchroncleproject-com, It is already submitted to developer to fix override options , which can let customer to override the plugin template files. These updates will be pushed with the plugin Boss-Sensei update.
    Regards

    #56069
    @adminchroncleproject-com

    Hi Pallavi,
    Thank you for your message.
    Do you have an idea when the update will be available?

    Thank you!

    #56173

    Anonymous
    @

    Hi @adminchroncleproject-com, It will be updated soon..

    Thanks

Viewing 11 posts - 1 through 11 (of 11 total)
  • The question ‘Edit Course category’ is closed to new replies.