Forum Replies Created
-
AuthorPosts
-
November 21, 2014 at 8:44 pm in reply to: Move catchkathmandu_homepage_featured_content to new action hook #47882MIchaelMember
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
November 21, 2014 at 7:17 pm in reply to: Move catchkathmandu_homepage_featured_content to new action hook #47876MIchaelMemberSorry 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’);MIchaelMemberNever mind, I figured it out.
-
AuthorPosts