separate pages do not target home...

User 2590668 Photo


Registered User
40 posts

This is an interesting portfolio template I'm developing. I am using the fixed background option
http://www.mojo-themes.com/item/simple/demo/

In the top page menu click "portfolio" and then click on one of the areas in the matrix. If you get to open another page about portfolio details you'll see the same menu at the top. Click on these items and note where the page topics open. You'll notice some open near the target but not exactly. Some go to a totally different topic that the menu item says. . A couple are right on. But it's annoying to have to click on the menu twice do get the topic area to display entirely. I don't know what to do here as the seller has not replied. I read up on anchors but this seems to be different ball of wax....

much appreciated.
Jim
James Kershaw |Reminiscence Facilitator
jim@momentostudio.info | http://ca.linkedin.com/in/reminiscence
289-501-4026 | www.momentostudio.info

User 187934 Photo


Senior Advisor
20,271 posts

It's because the links on pages away from the index area setup absolute.
simple/fixed-bg/index.html#PORTFOLIO
and the index is setup with a smooth scroll using js.
$(".navbar-nav>li>a, .about_b").click(function() {
$(this).parent().addClass("active");
$(".navbar-nav li a").not(this).parent().removeClass("active");
var TargetId = $(this).attr('href');
$('html, body').animate({
scrollTop: $(TargetId).offset().top - 50
}, 1000, 'swing');
return false;
});

I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2590668 Photo


Registered User
40 posts

Thanks . Are you suggesting that if the pages away were set up with smooth scrolling the linking would be correct?
James Kershaw |Reminiscence Facilitator
jim@momentostudio.info | http://ca.linkedin.com/in/reminiscence
289-501-4026 | www.momentostudio.info

User 187934 Photo


Senior Advisor
20,271 posts

It looks like the script has an offset value of 50 px and that's where the true difference is mostly coming from.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2590668 Photo


Registered User
40 posts

I would really like to understand more about this.
James Kershaw |Reminiscence Facilitator
jim@momentostudio.info | http://ca.linkedin.com/in/reminiscence
289-501-4026 | www.momentostudio.info

User 187934 Photo


Senior Advisor
20,271 posts

This contains the offset.
scrollTop: $(TargetId).offset().top - 50
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2590668 Photo


Registered User
40 posts

I've already purchased the template but I can't find the script we're discussing.
James Kershaw |Reminiscence Facilitator
jim@momentostudio.info | http://ca.linkedin.com/in/reminiscence
289-501-4026 | www.momentostudio.info

User 2590668 Photo


Registered User
40 posts

I found the script and ran the index using 10 and 100 instead of 50 no change in behaviour
James Kershaw |Reminiscence Facilitator
jim@momentostudio.info | http://ca.linkedin.com/in/reminiscence
289-501-4026 | www.momentostudio.info

User 187934 Photo


Senior Advisor
20,271 posts

It's hard saying without seeing the actual page.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2590668 Photo


Registered User
40 posts

I'll upload the site so you can see what's happening with what I've done so far.
James Kershaw |Reminiscence Facilitator
jim@momentostudio.info | http://ca.linkedin.com/in/reminiscence
289-501-4026 | www.momentostudio.info


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.