I have seen some FAQ pages where when we click on a question, it goes to a particular part of the same page. Can anyone explain how we can do it ?
You just target the area you want to go to with a link to the ID of the div: <a href="#div1">Go to div1</a> <div id="div1">This is div1</div> Code (markup):
Thanks @malky66 Can I use it for menu items ? I mean, I am trying to make a single page WordPress page. Wondering if I can use it on menu so that If someone clicks on About Us it goes to that part of the page. Just want to make it clear that I can use it on menu as well. If it needs some extra code, please do add that as well.
You can use it anywhere in your html, no extra code needed. On a side note why would you want to use the bloated, unsecure pile of crap like turdpress for a single page website?, Sounds like overkill to me and something that could be done much better with pure html.
I just said the exact same thing in a far less polite manner on another thread... If it's a single page site, what the blue blazes does it need a CMS for, much less a full blown blogging system? Talk about waste of time and code for NOTHING.
It is what my friend needs. He is prefers WordPress and suggested me some themes as well. So it is always their choice I have little say in those.
Sounds more like they THINK they need it -- big difference; such thinking typical of people who think they can get tech advice from the pages of Forbes, which is akin to taking financial advice from the pages of Popular Electronics. To be frank, if it's a single page site and they 'think' they need turdpress for it, they don't know enough about the Internet to be allowed to have a website, much less make decisions about one; I would suggest telling them that, or backing away from the project until they have a clue. ANYONE making a decision like that, isn't worth having as a client.
I am just helping him, free of charge. He is a good friend of mine. It may be that we can use a single page HTML template, but he wants option to expand it at a later date. That may be the reason he chose WP or may be he is familiar with it.