Page 1 of 1

How to enter a background image in the registration page?

Posted: 2017-11-16 01:58
by nycwebmaster
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?

Re: How to enter a background image in the registration page?

Posted: 2017-11-21 08:40
by Abeer
to add an image to login page you should have a code like this in footer-extras file:

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 
	
	}
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']); // 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 	
        
         }

Re: How to enter a background image in the registration page?

Posted: 2018-01-10 11:00
by Celson Aquino
You can substitute the

Code: Select all

//a code to add a photo to login page background 
for

Code: Select all

?>
	<style>
		body{
			background: url("images_directory/image_filename.jpg") no-repeat fixed center center / cover;
		}
	</style>
<?php