I am trying to customize my login page and replace the WordPress logo.
Can you tell me how to programmatically get the url logo set with Enfold theme options, so I can set the background-image something like below?
In below, I want to get the code I need to put after the url and parentheses.
echo '<style type="text/css">
.login h1 a { background-image: url('.get_bloginfo('template_directory').'/images/custom-login-logo.png) !important; }
</style>';
Thank you!
Hey CharlieTh,
You could get the uploads directory URL, then /folder/logo.png for instance. Or you could just copy the full image URL?
Best regards,
Rikard
Very tactful!
I wanted to create a chunk of code I could literally just drop in for login stuff.
I, of course, can copy the full image url…but that makes it NOT drop-inable.
Knowing how clever Enfold is, I hoped for a function or a global variable that might store the chosen Logo image.
But there isn’t?
Hi,
Unfortunately no, what Rikard described is how things would work…
Best regards,
Basilis
Thank you.
Hi,
Thanks for the feedback. Please let us know if you should need any further help on the topic or if we can close it.
Best regards,
Rikard
Please close it.
Hi CharlieTh,
I’ll be closing this then.
Thanks for using Enfold and have a great day!
Best regards,
Nikko