To post a new support question, click the Post New Topic button below.
Current Version: 4.8.5 | Sytist Manual | Common  Issues | Feature Requests

Please log in or Create an account to post or reply to topics.
You will still receive notifications of replies to topics you are part of even if you do not subscribe to new topic emails.

Unable To Find Photo

K
77 posts
Tue Mar 12, 19 10:42 AM CST
Hi Tim

I posted this problem a while back which you resolved for my entire site "Unable to find photo" - however I keep getting this error from time to time when I refresh a page with an internal link.

So page https://www.studio27.phot ography/ads/modelling-portfolios/

has a button "Make an Enquiry" which triggers a href="form-001" - it goes to the location in the page where form-001 is - however it you refresh the page at that point, scroll to top clears the href so the page works ok, but a simple refresh caused the error "Unable to find Photo" on a blank page.

Hope this makes sense. Thanks Keith
16,148 posts (admin)
Tue Mar 12, 19 12:36 PM CST
This is because you are linking to an anchor with #form-001. The hash (#) is used to display photos and why that is happening.

You can do this instead.

1) Design -> Header & Footer -> <HEAD> SCRIPT add this code:

function scrolltoid(id) {
t = $("#"+id).offset().top;
t = t - 32;
$('html').animate({scrollTop:t+"px"}, 400);
$('body').animate({scrollTop:t+"px"}, 400);
}

2) Change the link for your button to this:

javascript:scrolltoid('form-001');
Tim Grissett, DIA - PicturesPro.com
My Email Address: info@picturespro.com
K
77 posts
Wed Mar 13, 19 5:28 AM CST
Thanks Tim


Works perfectly as always....
K
47 posts
Mon Aug 10, 20 7:52 PM CST
OK, so far so good. But there still are some problems:

a) when I put my mousepointer on al link it will change color as with [a] but the mousepointer will not change into the pointing finger icon.

b) What if I want to link from outside the document. This will not work:

[a name="menu14" onclick="javascript:scrolltoid('https://wandfoto.nl/info/voorwaarden/disclaimer')"]Disclaimer[/a]

Where disclaimer is an anchor made with [hr id="xxxxxx"]

c) is this standard HTML syntax to use # tot display photo's because I have never heard of this?

N.B.: [] stands for 'less then' and 'greater then'.

Thanks, Ko van Leeuwen
Edited Mon Aug 10, 20 11:57 PM by Ko van Leeuwen
4 total messages
Please log in or Create an account to post or reply to topics.
This post has been viewed 303 times
Category: Error
 
Loading more pages
Loading more pages

Sign up for email promotions.

Your information is safe with us and won't be shared.

Thank you for signing up!

 
©2003 - 2021 Grissett, LLC. All Rights Reserved.

By continuing to browse or by clicking Accept Cookies, you agree to the storing of cookies on your device necessary to provide you with the services available through our website.

    Accept   Privacy & Cookie Policy
Loading More Photos
Scroll To Top
Close Window
Loading
Close