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*

theme child

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #45048
    famarinu
    Participant

    Hi,
    I need to add a div in the template header. I created a child theme, with regard to the changes in to the CSS files are recognized, while changes to the file “attitude / library / structure / header-extensions.php” are not recognized, why?
    Thank you
    Manuela

    #45061

    Hi famarinu,

    Making the same structure on child theme will not overwrite the parent theme. What you need to do is first unhook the functions and then only customize the code. We have replied many time on how to unhook the functions. View example below which is just an example.

    // Unhook default Thematic functions
    function unhook_thematic_functions() {
        // Don't forget the position number if the original function has one
    
    add_action( 'attitude_header', 'attitude_headercontent_details', 10 );
    }
    
    add_action('init','unhook_thematic_functions'); // removes the header content by using hook attitude_header
    
    add_action( 'attitude_headercontent_details', 'attitude_child_headercontent_details', 10 );
    funtion attitude_child_headercontent_details(){
    // your stuff
    }

    Thank you!

    #45063
    famarinu
    Participant

    Where should I put this code? within which file in the child theme?
    Can You put the link of where you talk about this subject? thank you!

    #45065

    Hi famarinu,

    You create a child theme and also create a functions.php file too. Under functions.php file you need to unhook the functions. Remember above code is just only to unhook page error 404.php. On the same way you need to first unhook the header-extension.php functions and then again add the action with your child theme.

    If you are unable to fix it then you need to hire a developer because it needs a bit more code for customization.

    Thank you!

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