Hei,
I am using Dazzling theme on my site, and I would like have a custom header and footer for index page? I have create a header_custom.php and footer_custom.php but header and footer not change with my custom template?
Thanks by advance for your help.
-
WordPress template files should be written as
header-custom.php
andfooter-custom.php
-
Depending on custom template you have created you will need to call for both custom header and footer using
get_footer
andget_footer
functions. Here you can read more about get_footerfunction and here about get_footer function. Both works the same way and you just need to specify$name
parameter.
Thanks a lot for the answer. Everything works now.