Jump to content

MarkDG

Member
  • Posts

    6
  • Joined

  • Last visited

Everything posted by MarkDG

  1. In essence, yes. Currently lists 15 blog posts and a button to view more but would rather have the section list the all blog posts.
  2. Site URL: https://ecan.squarespace.com/ Hi, I am looking to remove the pagination to show all blog posts as I've tried removing the element in hopes that it would fix the issue but had no success. Kind Regards
  3. Site URL: https://bartlett-schenk.squarespace.com/ Hey, I seem to be having an issue appending HTML into a blog section using Post Blog Item Code Injection. What I have done is fetched the data and was looking to loop through each post and create a class to render onto the page but when I look on the console logs, it seems I am getting errors but had no issue getting the data previously. This is the code which is also inserted in the code injection section for the main website : <script> fetch("https://bartlett-schenk.squarespace.com/insights?format=json-pretty") .then( response => response.json() ) .then((data) => { let output = ''; Object.values(data.items).forEach( (post) => { output += ` <div class="insight" style="background-image: url(${post.filename})"> <h1>${post.categories[0]}</h1> <h3>${post.title}</h3> </div> ` }) document.getElementsByClassName("BlogList").innerHTML = output; }) </script> I have also attached the logs.
  4. You don't happen to get this error by any chance do you? I am having the same issue : GET https://consent.trustarc.com/bannermsg?action=returns&domain=squarespace.com&behavior=implied&country=gb&language=en&rand=0.0511123231283912 net::ERR_BLOCKED_BY_CLIENT POST https://sentry.io/api/1363201/envelope/?sentry_key=5fa7b3ac571046d8a61aab5ff7649693&sentry_version=7 net::ERR_BLOCKED_BY_CLIENT
  5. I got it working but had to hard code in the HTML. I was hoping that I was able to use the section that was previously in place. Is there a way to access the JSON-T without going into developer mode? I'm quite new to Squarespace and trying to figure out how everything works.
  6. Site URL: https://andy-rantell.squarespace.com/ Hi, I seem to be having an issue with the testimonial carousel. I added a Jquery package called slick slider to add some animation to the slider which works until I try to append the arrows that are currently there into the package or use the arrows that come with the package. The only other way I was thinking of getting around this issue was create a custom HTML block and inject the JS in but I am not sure how to access the collections I am looking for. Would anyone be able to help point me in the right direction please. Kind Regards.
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.