• francescjp

    (@francescjp)


    Hello:

    I have created a Twenty Twenty-Five child theme. I would like to customize the header and footer in the child theme. How can I do this?

    Thanks in advance

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    You can edit the theme’s default header and footer patterns in the site editor. Or you can create your own pattern within the editor and include it on various page templates. Or add a .php pattern file to your child theme. If you want the same header and footer on all pages it’s best to edit the default patterns.

    Patterns are normally cached. If you add a pattern file to an active child theme, you’ll need to deactivate/reactivate for it to show up. Or add these to your wp-config.php file to bypass caching:

    define( 'WP_ENVIRONMENT_TYPE', 'development' ); 
    define( 'WP_DEVELOPMENT_MODE', 'theme' );
    Thread Starter francescjp

    (@francescjp)

    Hello @bcworkz :

    I will try what you say.
    Thank you very much.

    Hi @francescjp

    To customize header and footer into the child theme,

    • Copy header.html and footer.html parts from the parent theme (/wp-content/themes/twentytwentyfive/parts/)
      and paste into the child theme (/wp-content/themes/your-child-theme/parts/) and customize it.
    • also, you can copy style.css and theme.json file from parent to child theme and customize it for header and footer.

    Let me know if you face any issue.

    Thanks

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