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.
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, 1 month ago by khoavo.
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.