• Hi.

    I want to modify a little the footer by using a child theme but When I copy there required files they don’t work, The footer is still taken the files from the parent theme and the child.

    any help?

    thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello @dbogarin,

    footer.php falls under the template hierarchy so if you have to modify the footer section you can directly create the footer.php in your child theme and begin modifying that file . Also the theme will first read the child theme file then only parent theme file.

    If this does not help you can mention the part that you want to modify with clear explanation further so that we could help you.

    If you want more dedicated and swift support on the theme, please visit the theme’s official support forum where the theme’s official support team are stand by to answer each and every one of your questions.

    https://themepalace.com/forum/biography/

    Best regards.

    Have a good week ahead.

    Thread Starter dbogarin

    (@dbogarin)

    Thanks for your answer.

    What I did was the following:
    -Copy the footer.php from the parent theme to the child-theme.
    – In the child theme I create: child-theme/inc/hooks.
    – In child-theme/inc/hooks I copied the footer.php from the parent theme.
    – In child-theme/inc I copy the file init.php
    – I modify the lines in init.php
    — require trailingslashit(get_stylesheet_directory_uri()).’inc/hooks/footer.php’;

    It was what I did, but the theme reflects to the parent theme.

    thanks

    Thread Starter dbogarin

    (@dbogarin)

    I just want to modify the html a little bit.

    Maybe you can tell me how to add a dummy label and I will do the rest.

    thanks

    Hello @dbogarin,

    To modify the footer html, in you child theme’s functions.php, put the following code and modify as you require:

    https://pastebin.com/mipLyB29

    Hope this helps. Let us know of any other issues.

    Regards,
    Theme Palace

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I cant not replace footer.php in childtheme’ is closed to new replies.