Jump to content

IdTaylor

Circle Member
  • Posts

    3
  • Joined

  • Last visited

1 Follower

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

IdTaylor's Achievements

Level 1

Level 1 (1/20)

0

Reputation

  1. Amazing thank you! I've removed that code and added an image block to the top of the post. Please could you share the code to move this block above the title and date? Thank you so much
  2. Hello! I am creating a paywall for a blog on my squarespace 7.1 site and have the business plan. When someone see's the preview of the blog, they see the Title, meta content, and excerpt. Is there a way to also include the featured image in the paywalled blogs preview content? I have already got the featured image to show at the top of blogs using the following in "blog item code injection": <style> div.blog-item-image-wrapper { margin-bottom:12px; } img.blog-item-image { width:100%; } </style> <script> const i = document.querySelector('meta[itemprop="image"]'); const u = !!i ? i.getAttribute('content') : ''; if (u) { const c1 = document.querySelector('.blog-item-inner-wrapper'); const c2 = document.querySelector('.blog-item-top-wrapper'); const ed = document.createElement('div'); ed.setAttribute('class','blog-item-image-wrapper'); const ei = document.createElement('img'); ei.setAttribute('class','blog-item-image'); ei.setAttribute('src',u); ed.appendChild(ei); c1.insertBefore(ed,c2); } </script> Thank you
  3. Thanks so much for this. I just have a follow on question. Now that squarespace allows blogs behind a paywall to show a preview with the title and the excerpt, is it also possible to include this featured image? Thank you! https://www.david-taylor.org/paid-blog/why-orchestras-stick-with-bad-decisions
×
×
  • 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.