Navigation issues- from blog main page/blog page to contact

khm's picture
khm
Tue, 10/27/2015 - 15:29
#1
Navigation issues- from blog main page/blog page to contact

Hi

if one clicks link to contact while in blog, either main page or an individualk blog post, the page first

- change to one page mode, stops at a section, then after approx 1 sec

- scrolls down to the contact section

I would like to ti go directly to the contact form/section.

Thanks

phuonght's picture
phuonght
Thu, 10/29/2015 - 00:53

Hi,

Could you describe more? We do not understand clearly about problem.

phuonght's picture
phuonght
Fri, 11/06/2015 - 02:24

Please open file scripts.js (md_max/js/scripts.js)

- Line 78, find code of scrolling (above comment code / -------- scroll ------------ / )

Insert the following:

 if ($("#main-nav a").click(function () {

- Line 143 ( above code $('#main-nav li:first a').click(function () { )

insert : 

})) ;

Save and clear cache.

phuonght's picture
phuonght
Fri, 11/06/2015 - 04:29

Just checked it again and we realized that we were wrong.

From Blog, when clicking Contact, site goes to Contact directly but site data is not load fully so you can see Contact displays first then site scrolls and goes to Contact again. Actually, upper sections after loading fully, they push Contact down so we have feel that it is a wrong scrolling behavior but it is not

So the only way to make it go to Contact without scrolling is getting site without scrolling behavior.

khm's picture
khm
Fri, 11/06/2015 - 04:40

Phoung

Does this mean it is not possible to make to 

1. go to top of page and then

2. scroll down to contact? 

it would look and function much better 
Would it be possible to load contact in any other way?

Thanks

cindy's picture
cindy
Fri, 11/06/2015 - 06:03

Hi,

We will check and reply ASAP :)

(P/s: We have 2 weekend days off this week. We will be back on next Monday. So, please understand for us if you do not receive any reply. Thank you very much for your patience)

khm's picture
khm
Fri, 11/06/2015 - 06:16

Excellent, HIGHLY appreciate your follow-up on this and other matters. 

Have a nice weekend! :)

cindy's picture
cindy
Mon, 11/09/2015 - 02:29
  • please open file scripts.js in folder md_max/js/scripts.js

  • Search the code scroll in line 78 (comment code / -------- scroll ------------ / )

  • Adding the code:

if ($("#main-nav a").click(function () {
  • Go to 143 ( code $('#main-nav li:first a').click(function () { )

and add 

 })) ;
  • Save and clear cache

phuonght's picture
phuonght
Mon, 11/09/2015 - 23:10

Khm,

Please check if it ok :)

khm's picture
khm
Tue, 11/10/2015 - 03:04

Hey, this is awesome! 

Out of curiosity, what did you do, or what was the solution?

One more thing, when it loads the contact form it is a wee bit above the form itself.

Is it possible to adjust move the anchor for the view/panel element? Where are the anchors hidden? Thanks!

phuonght's picture
phuonght
Tue, 11/10/2015 - 03:47

It is the best way we have. Please open file script.js in your theme and check line 76, we edited it.

khm's picture
khm
Tue, 11/10/2015 - 04:18

ok thanks :) Case closed.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.