This topic has 9 replies, 2 voices, and was last updated 1 years, 11 months ago ago by Rose Tyler
Hi, i installed ticker news for my website. but i want to put it to header between Main header and second header. can you help me.
https://u.pcloud.link/publink/show?code=XZeHe9VZAb5vKeBvkThh62vrcfHqHBrUg3GX
Hello,
Unfortunately, it is not possible to add something between the top and main or main and bottom header area in a straightforward manner, as it would disrupt the header structure. To implement this, you can request additional customization services, or you can provide us with your admin and FTP details in the private content area, and we will attempt to add an example to your website.
Kind Regards,
8Themes Team
please give me some example
Hello,
Thanks for the reply.
We need FTP access also.
If you are unsure of how to create FTP access, please contact your hosting provider. They will be able to assist you with the necessary steps.
Best Regards,
8Themes Team
This is help?
Thank you for providing FTP access.
Another specialist will get back to you after a detailed review.
Please be patient and do not modify the access.
Best Regards,
8Themes Team
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
so, if i scroll down that announcment will appear too in header right?
Hello,
We don’t think so because sticky parts are only headers’ parts but this one is not a header part, but anyway you should test it from your side and according to the position you will like to use. We described in the first answer that it would disrupt the header structure -> https://prnt.sc/80Yh9HeLYWNR so that extra feature is on your hands, we just gave you an idea of how to add it there.
Please note that additional customization of code is outside the scope of our basic support.
Best Regards,
8Themes Team
Tagged: adding, customization, header, plugins, template, woocommerce, wordpress
You must be logged in to reply to this topic.Log in/Sign up