Squarespace website fixes and updates
- or -
Post a project like this2182
£250(approx. $310)
- Posted:
- Proposals: 2
- Remote
- #1961246
- OPPORTUNITY
- Completed
Description
Experience Level: Intermediate
One of my clients has a website (markransom.co.uk) that doesn't work correctly and needs fixing.
The main problem is the "view in room" functionality, which is as far as I can tell is a customised variation of a lightbox plug in, as there is custom code injection (sample below)
The issue is:
–So if you go to the artists page, click an artist, then select a piece of art, you get an option to "View in room".It seems that If the image has not loaded, you get a 404 error. If you try again or wait, it then works.
There are other sizes that are triggered as well, for example: if a piece of work is tagged "large" it loads a different room view with the image at a different size. (see attachment).
The size and triggers need fixing and possibility of a loading graphic if the 404 is down to a file size issue.
Speeding up the loading process on the home page (by either replacing each home page image for lower res ones, or changing the way the images load)
Code injection
function RSD_Lightbox(){
$('.yui3-lightbox2 a[href="/share"]').addClass('RSD_Share');
$('.yui3-lightbox2 a[href="/viewinroom"]').addClass('RSD_View');
$(".RSD_View").on('click touchstart touchend', function(e){
e.preventDefault();
e.stopPropagation();
var imageTile = $(this).closest('.sqs-lightbox-slide').find('.summary-thumbnail-image.loaded').clone();
$(".rsd_view_inner").html(imageTile);
if(RSD_Img_Large.length > 0){
$('#RSD_View_Lightbox').addClass('large');
}
if(RSD_Img_Hung.length > 0){
$('#RSD_View_Lightbox').addClass('hung');
}
if(RSD_Img_Freestanding.length > 0){
$('#RSD_View_Lightbox').addClass('freestanding');
}
if(RSD_Img_Medium.length > 0){
$('#RSD_View_Lightbox').addClass('medium');
}
if(RSD_Img_Landscape_Medium.length > 0){
$('#RSD_View_Lightbox').addClass('landscape-medium');
}
if(RSD_Img_Landscape_Large.length > 0){
$('#RSD_View_Lightbox').addClass('landscape-large');
}
$('#RSD_View_Lightbox').fadeIn(300).addClass('zoomed');
});
The main problem is the "view in room" functionality, which is as far as I can tell is a customised variation of a lightbox plug in, as there is custom code injection (sample below)
The issue is:
–So if you go to the artists page, click an artist, then select a piece of art, you get an option to "View in room".It seems that If the image has not loaded, you get a 404 error. If you try again or wait, it then works.
There are other sizes that are triggered as well, for example: if a piece of work is tagged "large" it loads a different room view with the image at a different size. (see attachment).
The size and triggers need fixing and possibility of a loading graphic if the 404 is down to a file size issue.
Speeding up the loading process on the home page (by either replacing each home page image for lower res ones, or changing the way the images load)
Code injection
function RSD_Lightbox(){
$('.yui3-lightbox2 a[href="/share"]').addClass('RSD_Share');
$('.yui3-lightbox2 a[href="/viewinroom"]').addClass('RSD_View');
$(".RSD_View").on('click touchstart touchend', function(e){
e.preventDefault();
e.stopPropagation();
var imageTile = $(this).closest('.sqs-lightbox-slide').find('.summary-thumbnail-image.loaded').clone();
$(".rsd_view_inner").html(imageTile);
if(RSD_Img_Large.length > 0){
$('#RSD_View_Lightbox').addClass('large');
}
if(RSD_Img_Hung.length > 0){
$('#RSD_View_Lightbox').addClass('hung');
}
if(RSD_Img_Freestanding.length > 0){
$('#RSD_View_Lightbox').addClass('freestanding');
}
if(RSD_Img_Medium.length > 0){
$('#RSD_View_Lightbox').addClass('medium');
}
if(RSD_Img_Landscape_Medium.length > 0){
$('#RSD_View_Lightbox').addClass('landscape-medium');
}
if(RSD_Img_Landscape_Large.length > 0){
$('#RSD_View_Lightbox').addClass('landscape-large');
}
$('#RSD_View_Lightbox').fadeIn(300).addClass('zoomed');
});
Mark S.
100% (33)Projects Completed
25
Freelancers worked with
15
Projects awarded
47%
Last project
18 May 2020
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
it not 404 error it show url not found but i check the code
Is in Wprdpress with custom Plugin ?
620582
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies