Jump to content

Show/hide text and button if blog post is featured

Recommended Posts

Site URL: https://strawberry-lobster-ajlp.squarespace.com/listings/blog-post-title-two-t5jz2

I'm trying to hack the blog's "featured post" feature to easily toggle a listing as available (button prompts user to apply) or unavailable (button prompts user to join waitlist). The text on the button as well as the link would change for each case. Additionally there's a text box I'd like to hide when the post is not marked as featured. I've played around with code blocks and code injections, but can't figure out how to correctly query if a post is featured. Is this even possible?

Site PW: AardvarkBadgerCougar

Link to comment
  • 2 months later...
  • Replies 1
  • Views 517
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

On 9/3/2021 at 9:17 PM, CourtneyK said:

Site URL: https://strawberry-lobster-ajlp.squarespace.com/listings/blog-post-title-two-t5jz2

I'm trying to hack the blog's "featured post" feature to easily toggle a listing as available (button prompts user to apply) or unavailable (button prompts user to join waitlist). The text on the button as well as the link would change for each case. Additionally there's a text box I'd like to hide when the post is not marked as featured. I've played around with code blocks and code injections, but can't figure out how to correctly query if a post is featured. Is this even possible?

Site PW: AardvarkBadgerCougar

Have you solve this yet

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • 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.