jaso
(Jason)
November 13, 2021, 1:35am
1
Adds Custom Login LOGO image
Attached link to file as I could paste the code here
GitHub post
1 Like
kwcjr
(Keith Crain)
November 13, 2021, 1:51am
2
@jaso Thanks for the contribution.
I moved your post to the correct category for your convenience.
jaso
(Jason)
November 13, 2021, 1:56am
3
which cat should I have chosen? plus, how do I add code here? Cheerzz
kwcjr
(Keith Crain)
November 13, 2021, 1:59am
4
@jaso Code like this belongs inside the “Dev > Custom Dashboard” category - however I believe that we have some stringent roles in place, which may account for you not being able to post code.
If you don’t see this you can’t post code snippets directly:
jaso
(Jason)
November 13, 2021, 2:01am
5
That shows, but when I added code, then SAVE, gave me an error: Screenshot by Lightshot
kwcjr
(Keith Crain)
November 13, 2021, 2:07am
6
What’s the error you get - 403? Yeah that’s crap has been popping up recently. We are trying to figure out why though.
Simply pasting the gist link though should show a preview
custom-wordpress-login-image.txt
/*Add the following code to yr themes child functions.php file or into Code Snippets plugin. remember to change the url*/
function login_logo() { ?>
<style type="text/css">
#login h1 a, .login h1 a {
background-image: url(https://mywebsite.com/wp-content/uploads/2021/10/my_image.png); /* this is the FULL path to your image*/
height:175px; /*You will have to test and play to make sure these measurements work with your image size*/
width:175px;
background-size: 175px 175px;
background-repeat: no-repeat;
This file has been truncated. show original
1 Like
system
(system)
Closed
December 13, 2021, 2:07am
7
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.