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*

Schmalitz

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: Trying to add a phone number to the header area #8792
    Schmalitz
    Participant

    Hi all,

    @Sanjip Shah – I think there is a tiny little mistake in your code – line 6-7. Your code is:

    function attitude_remove_parent_function(){
    	remove_action( 'attitude_header', 'attitude_child_headerdetails', 10 );

    …which didn’t work for me. It should be like the following instead:

    function attitude_remove_parent_function(){
    	remove_action( 'attitude_header', 'attitude_headerdetails', 10 );

    That made it for me. Otherwise these lines are removing the action/function you actually want to add in the next lines. Do you agree?

    I’m not an expert at all but if you agree you could maybe change the orginal code on page 1 of this thread. It took me quite a while to find out. Thank you very muich for your help anyway!

    Kind regards
    Schmalitz

Viewing 1 post (of 1 total)