@jonatandor35 , yes, I just resolved my first issue. I had forgotten to remove the simple page-to-page link I had attached to vectorImage4. So, now the backward facing arrow on the first slide of Page E (https://www.balletswithatwist. com/btwist-insta-bright-lights) links back to the last slide on Page D (https://www.balletswithatwist. com/btwist-insta-mixology). Phew.
I am, however, still receiving a “parsing error” message when I try to add two separate wixLocation snippets to a single page. On Page E , for instance, this is the code progression I attempted to use:
import wixLocation from"wix-location";
$w.onReady(()=>{
$w("#vectorImage4").onClick(()=>{
wixLocation.to("/btwist-insta-the-mixology?last-slide=true");
})
})
import wixLocation from"wix-location";
let query = wixLocation.query;
let target= query["last-slide"];
$w.onReady(()=>{
if(target){
if(target ==="true"){
$w("#slideshow2").changeSlide(9);
}
}
})
The second snippet was supposed to facilitate the transition from the backward facing arrow on Page F (https://www.balletswithatwist. com/b-twist-insta-big-sounds) to the last slide on Page E. This is the code progression I used on Page F:
import wixLocation from"wix-location";
$w.onReady(()=>{
$w("#vectorImage4").onClick(()=>{
wixLocation.to("/btwist-insta-bright-lights?last-slide=true");
})
})
import wixLocation from"wix-location";
let query = wixLocation.query;
let target= query["last-slide"];
$w.onReady(()=>{
if(target){
if(target ==="true"){
$w("#slideshow3").changeSlide(4);
}
}
})
I ran into the same problem when I tried to link Page G (https://www.balletswithatwist. com/b-twist-insta-portfolio) back to Page F. The code on Page G was as follows:
import wixLocation from"wix-location";
$w.onReady(()=>{
$w("#vectorImage4").onClick(()=>{
wixLocation.to("/btwist-insta-big-sounds?last-slide=true");
})
})
And just to confirm, my slide numbers were correct. Page D has 13 slides, Page E has 10, and Page F has 5, so I used the numbers 12, 9, and 4, respectively.
Note that I have since deleted the codes from Page F and Page G (along with the second snippet from Page E) because they were not functioning.
I apologize for needing to be walked through this. I am definitely out of my comfort zone, here.