• Resolved Sahil Dadwal

    (@jack2020)


    Hi Team,

    Try to remove wp logo from login page. try to use your snippet module but that’s not work. if try with function.php then its work.

    php Code:

    function custom_login_logo_removal() {
    echo ”;
    }
    add_action(‘login_enqueue_scripts’, ‘custom_login_logo_removal’);

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Sumit Singh

    (@sumitsingh)

    Hi @jack2020

    If you’re trying to remove the WordPress logo from the login page and using a snippets modules in this plugin , your current code may not work due to the use of smart quotes or because it doesn’t actually perform any removal.

    Try using this snippet instead — it works well when added via a snippets modules in WPE plugin

    function custom_login_logo_removal() {
    // Remove link and tooltip from the logo
    add_filter('login_headerurl', '__return_empty_string');
    add_filter('login_headertext', '__return_empty_string');

    // Visually hide the logo via CSS
    echo '<style>.login h1, .login h1 a { display: none !important; }</style>';
    }
    add_action('login_enqueue_scripts', 'custom_login_logo_removal');

    try this one then let me know please.

    Thread Starter Sahil Dadwal

    (@jack2020)

    Due to some glitch didn’t receive your reply here.. please reply again.

    Thread Starter Sahil Dadwal

    (@jack2020)

    Issue resolved by Sumit Singh. Thank you so much.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘PHP Snippet not work’ is closed to new replies.