Jump to content
Sign in to follow this  
jamiewalden

Replacing search box with html for login box

Recommended Posts

jamiewalden

I'd like to replace the search box that is aligned with the main navs with a some html that pulls a username field and submit button. Any ideas? Thanks for your help. blog.americandatanetwork.com

Share this post


Link to post
Share on other sites
ricardo

Hi Jamie! Not sure you have enough space there for 2 text fields + button.... In any case I would say your best option is to use the selector in PlatformPro Settings > Header and Nav > Hide Search to hide the search form and then, either place the login form there with CSS absolute positioning or doing it by adding a hook to functions.php. Ricardo

Share this post


Link to post
Share on other sites
jamiewalden

Hey Ricardo, thanks for the response. I'm not much of a coder. Just have sort of learned a bit here and there. Could you expound on how I might implement after hiding the search box? This is the code I was provided for the login form: <form id="form1" runat="server"> <input type="text" name="username" id="username" onfocus="if (this.value == 'Enter Your Online ID') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Enter Your Online ID';}" /><input type="button" value="Login" /> </form> <script> document.getElementById("username").value = "Enter Your Online ID"; </script> Thanks again. I appreciate you taking the time.

Share this post


Link to post
Share on other sites
ricardo

???? where did that come from? Where do you want people to log in? Your wordpress site or somewhere else?

Share this post


Link to post
Share on other sites
jamiewalden

It's to a backend database of our, one of our data base guys provided it to me. They will then enter their password on on the next page.

Share this post


Link to post
Share on other sites
ricardo

Jamie, One of your database guys probably can do that for you. If not, you should hire someone. Ricardo

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×