Reply To: Need pickup and delivery selector in header

#33916
Alex
Keymaster

Hi,

You can call the code for showing the box anywhere you like, but keep in mind that it was tested only for the intended locations mentioned above. So in some cases it may have unexpected behavior.
So, for example, to show it right before the footer, you can use the following code:
add_action('get_footer', array('Lafka_Branch_Locations', 'show_change_branch'), 1);

You can hook it to different action, if you find one which better fits your needs.
You can also call the function directly from any template you like, like this:
Lafka_Branch_Locations::show_change_branch();

Just be sure you are doing it from a template copied to the child theme, so you don’t loose your change.

Regards,
Alex