Hi,
Using Latest version 5.62
I learned how to insert a background image on the login page with BigProf Course in Udemy that I highly recommend but the only problem that I have is that on the new registrant the page the image that I inserted in the Footer Extras File does not show there, instead goes into a page with no background with only the form to register yourself.
How Can I insert a background image on the New Registration page?
How to enter a background image in the registration page?
-
- Veteran Member
- Posts: 90
- Joined: 2015-11-23 01:02
Re: How to enter a background image in the registration page?
to add an image to login page you should have a code like this in footer-extras file:
in the above code you are checking if the current page is the login page, you should add a check if its the registration page as well, so modify your code to be like that:
Code: Select all
$script_name = basename($_SERVER['PHP_SELF']);
if($script_name == 'index.php' && isset($_GET['signIn'])){
//a code to add a photo to login page background
}
Code: Select all
$script_name = basename($_SERVER['PHP_SELF']); // the url without the path
if ($script_name == 'index.php' && isset($_GET['signIn']) || $script_name=='membership_signup.php') {
//a code to add a photo to login page and registration page background
}
- Celson Aquino
- Posts: 27
- Joined: 2017-08-26 15:40
- Location: Salvador, Bahia - Brazil
Re: How to enter a background image in the registration page?
You can substitute the
for
Code: Select all
//a code to add a photo to login page background
Code: Select all
?>
<style>
body{
background: url("images_directory/image_filename.jpg") no-repeat fixed center center / cover;
}
</style>
<?php