• Resolved satraptech

    (@satraptech)


    Hi there,

    First, let me start by saying a Great job on your plugin, it works really great.

    I have a suggestion for improving it a little, for those of us who manage many websites, that need to have the exact same login page. It would be awesome if the logo, background, or any other image could be pulled from an external source. This way when we need to make a change we just replace the image in one location, instead of having to do it on each website.

    I hope you can use this suggestion.

    Thanks

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

    (@abdulwahab610)

    Hey, @satraptech

    Thank you for showing your love for LoginPress. In the last release v1.5.7, we have created multiple filters for managing the backgrounds, and logo from URL.

    Here’s an example of how you can use the filter for changing the logo URL.

    function loginpress_form_logo_callback(){
        return https://anexternalsource.com/logo.webp;
    }
    
    add_filter( 'loginpress_form_logo', 'loginpress_form_logo_callback' );

    You can also see the whole list of filters that we have provided in the version 1.5.7 release => https://loginpress.pro/changelog/

    Let me know if you have any queries regarding LoginPress.

    Thank you.

    Thread Starter satraptech

    (@satraptech)

    Thanks for getting back quickly.

    I tested with your example replacing the URL.

    function loginpress_form_logo_callback(){
        return https://images.satraptech.eu/wplogin/satrap-logo-login.png;
    }
    
    add_filter( 'loginpress_form_logo', 'loginpress_form_logo_callback' );

    I get this error
    syntax error, unexpected token “:”, expecting “;”

    • This reply was modified 2 years, 5 months ago by satraptech.
    • This reply was modified 2 years, 5 months ago by satraptech.
    Plugin Contributor Abdul Wahab

    (@abdulwahab610)

    Hey, @satraptech

    You have to pass the string in return. Sorry, I forget it in my example code too. Here’s the updated code. Hopefully, it’ll work.

    function loginpress_form_logo_callback(){
        return 'https://images.satraptech.eu/wplogin/satrap-logo-login.png';
    }
    
    add_filter( 'loginpress_form_logo', 'loginpress_form_logo_callback' );

    Let me know if it works for you or not.

    Thread Starter satraptech

    (@satraptech)

    Aha why didn’t I see that LOL 🙂

    Hi @satraptech,

    It’s great to know the concern is sorted. You are requested to take 1 minute out of your precious time to post 5-star ratings and excellent comments at https://wordpress.org/support/view/plugin-reviews/loginpress

    It would really help us to get appreciated and work better and wiser!

    • This reply was modified 2 years, 5 months ago by Zainab Afaq.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Images from external source’ is closed to new replies.