Can I take the header.php out of the parts folder in my theme?
-
I am using Woocommerce plugin with Stripe Payment Gateway, and it needs the get_header call to trigger the scripts. The Starkers theme only has a folder called ‘parts’ and the get_header gets called like this:
<?php Starkers_Utilities::get_template_parts( array( ‘parts/shared/html-header’, ‘parts/shared/header’ ) ); ?>Question: Can I combine the header.php and html-header.php files and place them directly in the root folder so that I can use the get_header(); call?
Woothemes tech support says another option would be to add: do_action( ‘get_header’ );
But won’t that just call the header twice?Many thanks in advance!
Jane
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Can I take the header.php out of the parts folder in my theme?’ is closed to new replies.