How to add other plugin in header - by Darul Muqarrabin Malaysia

This topic has 9 replies, 2 voices, and was last updated 1 years, 10 months ago ago by Rose Tyler

  • Avatar: Darul Muqarrabin Malaysia
    Darul Muqarrabin Malaysia
    Participant
    January 18, 2023 at 07:00

    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

    8 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 18, 2023 at 14:03

    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

    Avatar: Darul Muqarrabin Malaysia
    Darul Muqarrabin Malaysia
    Participant
    January 18, 2023 at 19:43

    please give me some example

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 19, 2023 at 08:08

    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

    Avatar: Darul Muqarrabin Malaysia
    Darul Muqarrabin Malaysia
    Participant
    January 19, 2023 at 18:40

    This is help?

    Please contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 20, 2023 at 09:52

    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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 20, 2023 at 14:51

    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

    Avatar: Darul Muqarrabin Malaysia
    Darul Muqarrabin Malaysia
    Participant
    January 20, 2023 at 20:47

    so, if i scroll down that announcment will appear too in header right?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    January 21, 2023 at 12:57

    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

  • Viewing 9 results - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.Log in/Sign up

8theme customization service
We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.