Hello,
We will leave for you snippets of ready-2-use code so you could simply change the position of custom content in a few actions.
Example backend: https://prnt.sc/lTPT_3SNN8TY (xstore-child/functions.php)
Example frontend: https://prnt.sc/KheNLsEWtXWd
For now, all actions are commented so please, choose the best position of extra content to show it in the proper place.
A code snippet will be left below for other customers who will have an idea to implement something like you asked in this topic.
add_action('wp', function() {
// before whole desktop header
add_action('etheme_header', 'etheme_child_custom_header_banner', -999);
// before whole mobile header
add_action('etheme_header_mobile', 'etheme_child_custom_header_banner', -999)
// after whole desktop header
add_action('etheme_header', 'etheme_child_custom_header_banner', 999);
// after whole mobile header
add_action('etheme_header_mobile', 'etheme_child_custom_header_banner', 999);
// after top part of desktop header
add_action('etheme_header', 'etheme_child_custom_header_banner', 15);
// after top part of mobile header
add_action('etheme_header_mobile', 'etheme_child_custom_header_banner', 15);
// after main part of desktop header
add_action('etheme_header', 'etheme_child_custom_header_banner', 25);
// after main part of mobile header
add_action('etheme_header_mobile', 'etheme_child_custom_header_banner', 25);
});
function etheme_child_custom_header_banner() {
echo do_shortcode('[block id="2801"]');
}
Best Regards,
8Themes Team