• I have activated my code snippet and placed the text! It appears on the login page as specified, and looks awesome! Only problem is that it shows up twice. How do I fix this? Link is https://ncesdigital.com/wp-admin

    Code snippet is below:
    /**
    * Add a message above the login / register form on my-account page
    */
    add_action( ‘woocommerce_before_customer_login_form’, ‘jk_login_message’ );
    function jk_login_message() {
    if ( get_option( ‘woocommerce_enable_myaccount_registration’ ) == ‘yes’ ) {
    ?>
    <div class=”woocommerce-info”>
    <p><?php _e( ‘Thank you for checking out NCES Digital.?<br><br>
    We know you love our products, but cabinets of paper are getting harder to maintain! <br><br>
    NCES Digital allows you greater access, from anywhere and any device! <br>We are moving new content into the system everyday, but with 20 years of development, well, there is a lot to get done.<br><br>
    We hope you enjoy the 14 day free trial. <br>Be assured, with each week NCES Digital gets ever richer.’ ); ?></p>
    </div>
    <?php
    }
    }

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter creoadmin

    (@creoadmin)

    Any update on this topic?

    Plugin Author Shea Bunge

    (@bungeshea)

    I’m no expert on WooCommerce, and it seems like this has to do with either the core WooCommerce plugin or the theme you are using. I would recommend asking this in more of a WooCommerce-specific forum.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Text in Code Snippet appears twice’ is closed to new replies.