Jump to content
TNG Community
BobD

Template 14 in TNG v11.1.1

Recommended Posts

BobD

I am using template 14 for my home page and I'd like to switch the order of the name search boxes so you enter the Last Name first but I can't seen to find where it's done. I've looked at the css files but cant fine any references to First or Last name. Does anyone have any experience with this?

Share this post


Link to post
Share on other sites
Chris Lloyd

I presume you are using version 11.1.+?

Look in your template folder and open the template 14 index.php file.

Before you edit make a backup copy of the file.

There is a searchform section. Switch the order of the first and last name sections.

Save and upload to your server.

Bear in mind that you may need to re-edit if there are any upgrades affecting the templates.

Share this post


Link to post
Share on other sites
BobD

Thanks Chris, that worked but the cursor still starts in the "First Name" box which defeats the purpose of the switch. I could find no reference to the cursor that file.

Bob

Share this post


Link to post
Share on other sites
Chris Lloyd

Try something like this:

Example

Let the "First name" input field automatically get focus when the page loads:

<form action="/action_page.php">
  Last name: <input type="text" name="lname" autofocus><br>
  First name: <input type="text" name="fname" ><br>
 
  <input type="submit">
</form>
 
You will need to edit this to fit your template terms.

Share this post


Link to post
Share on other sites
BobD

Thanks Chris,

Took me a little while to figure out what you meant but I finally got it.  Much appreciate the help. I might figure out this TNG yet. (with a lot of help from the forum) !!

BobD

Share this post


Link to post
Share on other sites
Chris Lloyd

Cool - glad you got it working

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

×