Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

Remove skip_to_content_link and add custom function to replace it.

Home / Forums / Kadence Theme / Remove skip_to_content_link and add custom function to replace it.

This topic is: Resolved
[Resolved]
Posted in: Kadence Theme
December 16, 2022 at 1:22 pm

I’m trying to remove the skip_to_content_link function that is being added using add_filter in inc/components/accessibility/component.php.

function newview_kadence_remove_add_skip_to_content_link() {
remove_filter( 'kadence_before_header', 'skip_to_content_link', 10 );
add_filter( 'kadence_before_header', 'newview_custom_skip_to_content_link' );
}
add_action( 'init', 'newview_kadence_remove_add_skip_to_content_link' );

I’m not really sure why doing remove filter this way is not removing the original function. This adds my custom function in its place just fine. Any help would be appreciated.

  • The forum ‘Kadence Theme’ is closed to new topics and replies.