Thanks @mldarshana I am very very nearly there. I followed the exact method here:
I have added the code but changed my ID’s to terms that suit my need and the columns are linking now and going to the correct section but they seem to be going halfway down each section. I have given each section an ID and if i click the title text which has links to the sections on the page it works fine but if i click on the column where the js and css is applied it goes to the sections but halfway down the section, not the top of the section. See my video here:
This happens because the point of reference for the section is the top of the page and not the end of your custom menu. You will need to modify the JS code and get the x,y location of your section minus the height of the total menu (navbar + custom menu).
Would you mind send us the url of your site so that we can check up correctly. We might be able to help you with your JS code issue.
To see the site that i am referring to, you will have to enter the following into your local host file and clear your browser cache and flush your dns as i am building it ready to replace a live site:
Can you elaborate on what you mean by broken site? This has me worried. The whole site? I am working on it fine with no issues at the moment. Did you amend your hosts files and clear cache and dns? Could it be your end? Its not fully live yet hence the ammendment to your local host file. When its ready to go live i just need to point the domain at the hosting server. Thanks for the code. I will update this and let you know.
It is now fixed. I am seeing your site correctly with no issues unlike an hour ago. Could you please provide which page do I have to look the column link you have applied?
Your setup is becoming complex, the column is clickable while the texts have links. It’s like linking as the column is clicked but also linking since there is a link and it creates conflict.
Before we go further, I like to clarify it first. Should it link or should just scroll? I may provide the last snippet and we can’t provide further customization.
It just needs to scroll to the section on the page like a normal anchor using IDs do. I don’t need separate links of the text as well as the column, just as long as you click anywhere in the column which i guess includes the text scrolls to the point on the page. I didn’t think it would be this much of a problem just trying to do a clickable kind of tab. Sorry guys.
I see, in that case, would you mind providing your admin login credentials? I’ll just create a sample in a separate page. Currently, I couldn’t make the code function due to other existing codes and even adding styling through browser developer is being reset.
Still not working because of the conflict with the page scroll built in the theme. The best and easiest way to resolve this is to increase the top and bottom padding of each section. By default, the padding is 45 pixel. Increasing it to 80 or 100 pixel would somehow make it work.
I do really appreciate all of your time on this one. I guess i may have to stick to just using the text as the links for now as adding so much padding would make it all look a bit lost. Thank you for trying fo me, its a shame that it didnt work. I guess would work obviously for links to different pages, just not to other parts of the page. Oh well. Thanks again.