Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • MIchael
    Member

    Update. fixed it.

    There is no priority assigned in the original function, so by adding “, 5” at the end of the remove action the removed action wont work. removed the priority and the remove action works great. t

    Thanks for the tip on init hook

    MIchael
    Member

    Sorry to say that didn’t work. I put in your code and nothing changes the original featured content is still in place.

    here is the code used for http://airstream.michaelsmithcreative.com
    // Removing the Default Action Hook
    function unhook_catchkathmandu_functions() {
    //Add in you hook here
    remove_action( ‘catchkathmandu_before_main’, ‘catchkathmandu_homepage_featured_position’, 5 );
    }
    add_action( ‘init’, ‘unhook_catchkathmandu_functions’ );

    function move_featured_content(){
    remove_action(‘catchkathmandu_before_main’,’catchkathmandu_homepage_featured_content’, 10);
    }
    add_action(‘catchkathmandu_special_content’,’move_featured_content’);
    add_action(‘catchkathmandu_special_content’,’catchkathmandu_homepage_featured_content’);

    in reply to: Move slide to new action hook? #46670
    MIchael
    Member

    Never mind, I figured it out.

Viewing 3 posts - 1 through 3 (of 3 total)