Jump to content

Custom Code to make Embeded Pinterest profile responsive

Recommended Posts

 

Website password: NewlinWrites

I have an embedded Pinterest profile that I added to my client's site following the directions at: https://developers.pinterest.com/docs/add-ons/profile-widget/

I would like to make this responsive instead of giving it a set size. I am wondering if anyone knows what code I would add to achieve this, or if it is possible at all? 

This is my current code:

<script
    type="text/javascript"
    async defer src="//assets.pinterest.com/js/pinit.js"
></script>
<a data-pin-do="embedBoard" data-pin-board-width="400" data-pin-scale-height="320" data-pin-scale-width="80" href="https://www.pinterest.com/metanewlinwrites/blog"></a>

Thank you!

Screenshot 2024-03-07 at 11.19.21 AM.png

Screenshot 2024-03-07 at 11.18.48 AM.png

Link to comment
  • Replies 3
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Posted Images

You could try changing the width from 400 to 100% and see what change that makes.

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

Link to comment

Yes, interesting, what a strange embed code. Did it come directly from Pinterest?

Please like and upvote if my comments were helpful to you. Cheers!

Zygmunt Spray
Squarespace Website Designer
Contact me: 
https://squarefortytwo.com 
Hire me on Upwork!

🔌 Ghost Squarespace Plugins (Referral link)
📈 SEO Space (Referral link)
 SquareWebsites Plugins (Referral link)
 🔲 SQSP Themes (Referral link) 
Spark Plugin (Referral link) 
 🖼️ Gallery Lightbox Plugin (Referral link) 

 Did I help? Buy me a coffee?

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.