Indi Posted March 7, 2023 Share Posted March 7, 2023 How to add smaller text next to a portfolio heading like in this image: Link to comment
Ziggy Posted March 7, 2023 Share Posted March 7, 2023 This is possible with code, HTML and CSS, or potentially just CSS and ::after with content, it would depend on your setup. Can you share your website URL and this page? 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! 📈 SEO Space (Referral link) Ⓜ️ Will Myers' Plugins & Tutorials (Referral link) 🔌 Ghost Squarespace Plugins (Referral link) ⬛ SquareWebsites Plugins (Referral link) 🔲SQSP Themes (Referral link) ✨ Spark Plugin (Referral link) 🖼️Pinch-to-Zoom Gallery Lightbox Plugin (Referral link) ☕ Did I help? Buy me a coffee? Link to comment
EjD Posted March 7, 2023 Share Posted March 7, 2023 A #UNIQUESQUARESPACEID h1::after { content: "smaller type message here"; font-size: small; margin-top: -10px; /* other alignment rules likely needed */ } Without seeing your site we would need to make several assumptions here, but something like this should work. Link to comment
Indi Posted March 8, 2023 Author Share Posted March 8, 2023 (edited) Sorry, my website is: https://www.rotaterecordings.com Edited March 8, 2023 by Indi adding website url Link to comment
Indi Posted March 8, 2023 Author Share Posted March 8, 2023 This is the code I tried using: /* Add subtitle */ h1.portfolio-title:after { font-size: 20px; color: black; } a.portfolio-hover-item[href="/grid-simple/project-one-efc56"] h1:after { content: “FRESH”; } because I wanted to use different subtitles for each portfolio title Link to comment
tuanphan Posted March 11, 2023 Share Posted March 11, 2023 On 3/8/2023 at 8:47 AM, Indi said: This is the code I tried using: /* Add subtitle */ h1.portfolio-title:after { font-size: 20px; color: black; } a.portfolio-hover-item[href="/grid-simple/project-one-efc56"] h1:after { content: “FRESH”; } because I wanted to use different subtitles for each portfolio title Did you solve with this code or still need help? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Indi Posted March 22, 2023 Author Share Posted March 22, 2023 @tuanphan Still need help, this code didn't work. Link to comment
Solution tuanphan Posted March 25, 2023 Solution Share Posted March 25, 2023 On 3/23/2023 at 6:51 AM, Indi said: @tuanphan Still need help, this code didn't work. Use this new code .portfolio-hover-items-list>a span:after { display: block; font-size: 24px; } .portfolio-hover-items-list>a:nth-child(1) span:after { content: "new records 1"; } .portfolio-hover-items-list>a:nth-child(2) span:after { content: "2 text"; } .portfolio-hover-items-list>a:nth-child(3) span:after { content: "3 text"; } .portfolio-hover-items-list>a:nth-child(4) span:after { content: "4 text"; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Indi Posted May 3, 2023 Author Share Posted May 3, 2023 @tuanphan Thank you, that worked perfectly. Do you know how I could move the text so it was above the main heading word? Like in the image attached? Link to comment
tuanphan Posted May 6, 2023 Share Posted May 6, 2023 On 5/3/2023 at 1:11 PM, Indi said: @tuanphan Thank you, that worked perfectly. Do you know how I could move the text so it was above the main heading word? Like in the image attached? Change top code .portfolio-hover-items-list>a span:after { display: inline; font-size: 20px; } to this .portfolio-hover-items-list>a span:after { display: inline; font-size: 20px; position: relative; top: -30px; } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment