• Resolved khoavo

    (@khoavo)


    Hi there,

    The Copyright Note box can’t accept shortcodes? https://prnt.sc/r60uwl

    I inserted [now_date] to display the latest year with a function in Child theme, but it doesn’t work in your Copyright Note box in footer of the login screen. I works on my theme footer though.

    Let me know. Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hello, @khoavo

    Shortcode isn’t supported at Copyright Note Box right now.
    We’re going to create a filter at that point. After that, you can change the copyright note with that.

    Thank you.

    Thread Starter khoavo

    (@khoavo)

    Alright Thanks. I’ll wait for the next plugin update. Then I’ll reinsert my [year] shortcode.

    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hello, @khoavo

    The plugin release sent v(1.4.3).
    We’ve created a filter naming loginpress_footer_copyright through this you can extend the functionality of footer. Helping Documentation.

    Thank you.

    Thread Starter khoavo

    (@khoavo)

    Hey Thanks, it works BUT I have to click inside the Copyright Note box, then tap the space bar once so the cursor moves one notch to the right, then it displays fine: https://prnt.sc/r8o3ua

    If I don’t tap the space bar once and leave the Copyright Note box completely blank, then it displays a duplicate line of text, not sure where it’s coming from: https://prnt.sc/r8nvxf

    I added your filter to my function.php (Child Theme):
    // LoginPress Plugin – Allows shortcode for the year display inthe footer copyight section
    add_filter( ‘loginpress_footer_copyright’, ‘loginpress_footer_copyright_callback’ );
    function loginpress_footer_copyright_callback( $content ) {
    return $content . do_shortcode( ‘? [year] Hoofbeatz Audio. All rights reserved.‘ );
    }

    • This reply was modified 4 years, 9 months ago by khoavo.
    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hey, @khoavo

    Remove the variable $content when you return it. Your callback function will be.

    add_filter( 'loginpress_footer_copyright', 'loginpress_footer_copyright_callback' );
    function loginpress_footer_copyright_callback( $content ) {
        return '? ' . do_shortcode( '[year]' ) . 'Hoofbeatz Audio. All rights reserved.';
    }

    Don’t need to return the default value of content in your case.

    Thank you.

    Thread Starter khoavo

    (@khoavo)

    Perrrrrfect! Thank you so much.

    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Awesome!

    You are welcome.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Shortcode for Copyright Note Box?’ is closed to new replies.