badget

Biggest Sale! Special Offer!

Get 30% discount on all of our single themes with this coupon code: #30%SALE

Hurry up! *Limited time offer*

Reply To: How to add an additional div in the header?

#19022
spectrum_7
Participant

Okay, thanks.

I had the priority wrong on my unhook function….

And… I was hoping there was a simpler way than adding and hooking the 800+ lines of code from interface_headercontent_details() into my functions.php.

Here’s the unhook:

`//Remove the original headercontenct_details

function remove_interface_header_details() {
remove_action( ‘interface_header’, ‘interface_headercontent_details’, 10 );
}
add_action(‘interface_header’,’remove_interface_header_details’ , 9 );

//here’s the custom hook
add_action( ‘interface_header’, ‘my_interface_headercontent_details’, 10 );
function my_interface_headercontent_details() { THE FUNCTION GOES HERE }’