• Resolved sujititc

    (@sujititc)


    I am using twenty twenty four theme, created a custom php template file and I want to get header and footer, I added get_header() but it’s not display actual theme.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • TT4 is a block theme, and block themes don’t have header.php for that template tag to work. You need to either include that header stuff in your custom PHP template, or call the header template part in your custom PHP template.

    Ditto for other theme components like the footer.

    Here’s a quick guide: https://fullsiteediting.com/lessons/how-to-use-php-templates-in-block-themes/

    Good luck!

    Thread Starter sujititc

    (@sujititc)

    @gappiah
    Thank you for your assistance and support. It resolved my issue of displaying the header and footer exactly as we designed in the theme editor. The problem arose from conflicting CSS between the theme and plugins, resulting in the responsive menu not opening on mobile devices.

    To open the responsive menu, I temporarily hardcoded a JavaScript script, but I believe this isn’t the ideal approach. It seems like there might be something missing that’s needed for it to function correctly.

    • This reply was modified 4 months, 3 weeks ago by sujititc.
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.