I have been remaking an old network on 3.0 and wanted to add some more style to the signup and signin pages. This tip will insert an image above the normal stuff and a few small tweaks to your network info. Animated GIFs look good too. I'm also working on the ability to insert a div and play videos instead of pictures... when I get a minute.
Add the code below to your CSS, and adjust to your needs.
Enjoy :)
FT
/***-----About Network Tweaks---- ***/
.aboutNetwork {border: groove 2px #fff; border-radius:5px;
padding:10px;
background:#fff;
text-align: center;
-moz-box-shadow:0px 1px 12px 5px rgba(0,0,0,.2),0px -2px 15px rgba(0,0,0,.4) inset;-webkit-box-shadow:0px 1px 12px 5px rgba(0,0,0,.2),0px -2px 15px rgba(0,0,0,.4) inset;box-shadow:0px 1px 12px 5px rgba(0,0,0,.2),0px -2px 15px rgba(0,0,0,.4) inset;
}
.aboutNetwork-title {
font-weight: bold;
text-align: center;
text-decoration: underline;}
.aboutNetwork-networkIcon {
margin-left: 40%;
margin-right: 40%;
margin-bottom: 10px;}
/***-----Pics Above Signin---- ***/
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 35em;
width: 100%;
border: groove 2px #fff; border-radius:5px;
margin: 0 0 2em 0;
background:url('http://YOUR_IMAGE_URL_GOES_HERE');background-size:100% 100%;
-moz-box-shadow:0px 2px 10px rgba(0,0,0,.8);-webkit-box-shadow:0px 2px 10px rgba(0,0,0,.8);box-shadow:0px 2px 10px rgba(0,0,0,.8);
}
/***-----Resize for Mobile---- ***/
@media screen and (min-width:60px) and (max-width:430px) {
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 16.5em;}
}
@media screen and (min-width:430px) and (max-width:550px) {
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 23em;}
}
@media screen and (min-width:550px) and (max-width:650px) {
.module-actions.cf.signUpPage-signInLink.cf::before,.module-actions.cf.signInPage-signUpLink.cf::before {
height: 28em;}
}
Replies
Hi there. I had this on my network and the code worked and now it ain't showing anymore. Please help!
Hi there!
Thank you for letting us know about the issue. I`ve passed this query to Kyryl, so he will contact you once he checks the code.
Please let us know if you have any questions in the meantime.
Best regards,
Anastasia
Hi there!
Yep, this tip won't be working anymore, as the sign-up/sign in pages were redesigned and teh new classes are now used, there. So it;'s necessary to make some changes top this tip to make it work as it was before.
Best regards,
Ning team.
Oh ok :( Is it possiable you can make a new code for us?
Hi there!
As you may notice, the sign in/up page now looks quite different now, so could you please specify, do you wish to change it with the code completely to the old version, or just place the picture? If the second one, please provide us with the screenshot of your sign in/up page and outline the place where you wish the picture to be.
Looking forward to your reply!
Best regards,
The NING Team
Hi there. we can do the second one. I took a screen shot where I will like the picture to be.
Hi there!
I`ve passed your screenshot to Alex, the code will be corrected in the nearest future. You will receive an email once it's done.
Please let us know if you have any questions in the meantime.
Best regards,
The NING Team
Yay!!!! Oh one more thing. Can I add random line of members with their sexuality and their location underneath the picture and they can choose if they want to be on front of the page or not.
Hi there!
Thank you for your patience!
You have already contacted us via LiveChat, but I will leave the code here in the comments anyway in case someone else wants to have it as well.
Regarding your question - I am afraid I can`t be 100% certain and answer you right away. Once Kyryl comes back from vacation he will check your request and get in touch with you.
Best regards,
The NING Team
/ Background for Sign Up page on Desktop /
@media screen and (min-width: 768px){
div.sign_form > div.lf-block > div.lf-block_left {
background-image: url(http://URL_OF_YOUR_IMAGE);
background-size: 363px, auto;
background-repeat: no-repeat;
background-position-y: bottom;
}
}
/ Background for Sign In page on Desktop /
@media screen and (min-width: 768px){
div.sign_form.signin_page > div.lf-block > div.lf-block_left {
background-image: url(http://URL_OF_YOUR_IMAGE);
background-size: 363px, auto;
background-repeat: no-repeat;
background-position-y: center;
}
}
/ Background for Sign In and Sign Up page on Mobile /
@media screen and (max-width: 767px){
.lf-block_left::before {
background-image: url(http://URL_OF_YOUR_IMAGE);
background-size: 363px, auto;
background-repeat: no-repeat;
background-position-y: center;
height: 250px; /*The height depends on the picture's height in proportions to the width 363px*/
content: "";
}
}