Home › Forums › Support › Widget Support › Other Widgets › password protect
- This topic has 19 replies, 4 voices, and was last updated 7 years, 6 months ago by Anonymous.
- AuthorPosts
- January 4, 2017 at 10:28 am #12808AnonymousInactive
I am using the password protect widget in a site and would like to know if there is any chance to get the login button and highlight around the box in a straight RGB red, or if I can change it myself? It will be a great help!
January 4, 2017 at 1:36 pm #12821responsive-museKeymasterHello Sihan!
You can easily change it using this code (change color values as you want)
#botonlogin { background: #ee0000; border-bottom: 2px solid #ff00a9; }
You can use custom CSS by either using Object -> Insert HTML or putting it in the
tag by going to the Metadata tab of Page Properties (Page -> Page Properties).Kind regards.
January 4, 2017 at 3:57 pm #12839AnonymousInactiveHi, thanks for the info.
I have tried both ways. If I view in the browser it does not see the change, is it because I have to upload onto the server first?January 4, 2017 at 6:53 pm #12850responsive-museKeymasterYou should not need to upload it, but it may be your browser cache. Can you use a Chrome incognito window?
If you put it in a server URL maybe we can look at it.January 6, 2017 at 4:09 pm #12963AnonymousInactiveGreat, I will email you an url. dummy site now.
I can see the html. change in colour in firefox but it still does not show the change.January 6, 2017 at 4:52 pm #12966responsive-museKeymasterWe just checked it.
It seems there is missing style tags.
Remove previous code and try code below.<style> #botonlogin { background: #ee0000; border-bottom: 2px solid #ff00a9; } </style>
Tell us if it works, thank you!
February 7, 2017 at 11:29 pm #14677AnonymousInactiveThis actually works for the button!
But how to change the border-color (of the input-field, which remains turquoise) ?
February 9, 2017 at 12:59 am #14744responsive-museKeymasterDo you mean this active state color?
Try this:
<style> .formLogin input[type="password"]:focus{ box-shadow: 0 0 5px #000000; border: 1px solid #000000; } </style>
February 12, 2017 at 11:23 pm #14917AnonymousInactiveYes, that’s the one!
Doesnt work :/ Still turquoise…I’ve put it like this under Page/Page-properties/HTML for <head>:
<style>
#botonlogin {
background: #000000;
border-bottom: 2px solid #000000;
}.formLogin input[type=”password”]:focus{
box-shadow: 0 0 5px #000000;
border: 1px solid #000000;
}
</style>February 13, 2017 at 2:10 am #14925responsive-museKeymasterMmmm, that should work!.
Can you try with !important added?
.formLogin input[type=”password”]:focus{ box-shadow: 0 0 5px #000000!important; border: 1px solid #000000!important; }
If still does not work:
– What browser are you using?
– Do you have a live URL to check it?February 13, 2017 at 6:20 pm #14976AnonymousInactivethanks for response!
I’ve inserted your add-on like this:
<style>
#botonlogin {
background: #000000;
border-bottom: 2px solid #000000;
}.formLogin input[type=”password”]:focus{
box-shadow: 0 0 5px #000000!important;
border: 1px solid #000000!important;
}
</style>Still not working, atleast not in Chrome:
http://ferdesign.nl/icontest/exit.html (pw=test)February 13, 2017 at 6:22 pm #14977AnonymousInactive…Doesnt work in Firefox or Internet Explorer either.
Still turquoise.February 14, 2017 at 12:05 am #15002responsive-museKeymasterI cannot see any password in the URL you provided. Maybe you removed it?
February 14, 2017 at 11:30 am #15024AnonymousInactiveOops… I did.
Try again now =)February 14, 2017 at 1:50 pm #15033responsive-museKeymasterI discovered the problem, double quotes were not in correct format.
Please, replace old code with double quotes
.formLogin input[type=”password”]:focus{ box-shadow: 0 0 5px #000000!important; border: 1px solid #000000!important; }
For this one with single quotes
.formLogin input[type='password']:focus{ box-shadow: 0 0 5px #000000!important; border: 1px solid #000000!important; }
I hope this does the job!
- AuthorPosts
- The topic ‘password protect’ is closed to new replies.