Add background image or change background color for Login/Register page

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
vintoICT
User
Posts: 407

Add background image or change background color for Login/Register page

Post by vintoICT »

How can I add background image to the login page and registration page.
style="Background-image: ('Img/back.PNG');"
Not working


arbei
User
Posts: 9356

Post by arbei »

You better add your CSS under HTML -> Theme -> User tab. Press F12 in your browser to find out which HTML element you should add background image to. Also read CSS background-image.


vintoICT
User
Posts: 407

Post by vintoICT »

.wrapper .content-wrapper {
background-color: #fff;
min-height: calc(100vh - calc(3.3125rem + 1px) - calc(3.5rem + 1px));
}

affects the whole site. I could not get a unique element for login page .


arbei
User
Posts: 9356

Post by arbei »

You may change Config("BODY_CLASS") by Page_Load server event to add CSS class to the body tag to distinguish pages.


rvanore
User
Posts: 39

Post by rvanore »

I am trying to make an image the background of the left side menu area for the entire site. I need to add a custom class to uniquely identify a page with on the wrapper or the body.

and was trying this, Config("BODY_CLASS") by Page_Load

I added CurrentPageHeading()

<div class="wrapper ew-layout <?php echo CurrentPageHeading() ?>">

becomes

<div class="wrapper ew-layout Login">

We would like to use this but are unsure how to code it or perhaps a different method? Any assistance would be greatly appreciated.

Thank you.


mobhar
User
Posts: 11703

Post by mobhar »

You may simply use Page_Foot server event.


Post Reply