• Recently I started having this issue, in some of my pages the alexa certificate code is missing and most of these pages are using the wp-login.php template.
    How can I ad the alexa certificate code to the wp-login.php template?

Viewing 3 replies - 1 through 3 (of 3 total)
  • add the certification code in function format like below,

    function alexacertify()
    {
    //certifaction code
    }
    And hook the function to
    add_action(‘login_head’, ‘function_name’);

    Call the functions in your theme functions.php file.

    This might help you.

    Thread Starter joe9117

    (@joe9117)

    Thanks karthikskr I contact Alexa and they said may work, but I need from you if can give me more detailed instructions, I’m kind of new on this, I will appreciated if you can guide me trough.
    Thansk

    Hi Joe,

    Try the below functions.

    Copy and paste the below function in your theme functions.php file at the end of the file before the php end tag.

    function loginhead()
    {
    echo “i am in wp-login.php file”;
    }
    add_action(‘login_head’, ‘loginhead’);

    Save the file.

    And go ahead and open the url

    https://siteurl.com/wp-login.php

    You will see a below message on the top of the page.

    “i am in wp-login.php file”.

    Might this will be easy for you to understand.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add alexa code to wp-login.php’ is closed to new replies.