I need to modify the get_header(‘shop’) file in Woocommerce but don’t know where it’s located, if someone knows please help me out – thanks!
2 comments
Comments are closed.
I need to modify the get_header(‘shop’) file in Woocommerce but don’t know where it’s located, if someone knows please help me out – thanks!
Comments are closed.
get_header( $name )
is a WordPress function, that will try to load the fileheader-{$name}.php
from your theme’s root folder. If this file doesn’t exist, WordPress will load the defaultheader.php
file.get_header()
is a WordPress function (not a WooCommerce specific one) and if passed a parameter should load a file namedheader-<parameter>.php
from the theme root (or parent theme root). So there should be a file namedheader-shop.php
in the same directory asheader.php
orfooter.php
.