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*

Header extension widget

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #41581
    gregorybishop42
    Participant

    Hi,

    You used to have this action in header-extensions.php
    do_action( 'interface_header_widgets' );

    I’m adding a widget area on that hook but since I updated I can’t find it anymore so it’s not working.

    Any suggestions?

    Thanks a lot

    #41615

    Hi gregorybishop42,

    While updating to our new version, if you made direct changes in the code then all your customized code will be lost. So you need to create a child theme so that you will be safe from data loss.
    First unhook the function and then customize the code in your child theme. you can add this action hook under child theme or customize the code but each and every time you update a theme, you need to add the same thing again and again.

    Thank you!

    #41625
    gregorybishop42
    Participant

    Hi,

    Thanks for the quick reply.

    I already have a child theme. I just don’t know on which hook I should call my widget area now.
    Do you have any suggestions regarding a hook ?

    Thanks again

    #41671

    Hi gregorybishop42,

    just go to header.php and you use below hook if you want
    `do_action( ‘interface_before’ );
    do_action( ‘interface_before_header’ );
    do_action( ‘interface_after_header’ );
    do_action( ‘interface_before_main’ );`

    You can call on this hook.

    Thank you!

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.