Clodita Posted April 28, 2021 Posted April 28, 2021 Site URL: https://www.brigittematte.com/galerie Hi there, I'm using Squarespace 7.1 and I would like to change the color of a single word in the title of the gallery portfolio page. I managed to change the color of all titles with CSS code (see ref.picture) but I would like to apply this to all « vendue » word in that page. Is it possible to do that? Thanks! Site url : https://www.brigittematte.com/galerie password : bridg_vip
tuanphan Posted April 29, 2021 Posted April 29, 2021 First, add this code to Design > Custom CSS h3.portfolio-title span {color:red !important;} Next, edit title to this Laurentides, St-Donat, Pimbina — <span>Vendue</span> 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!)
Clodita Posted April 29, 2021 Author Posted April 29, 2021 Thank you for your help. So if I understand correctly, After adding the code , I should edit the title in this section? see ref. picture. If so, it's not working 😞
tuanphan Posted April 30, 2021 Posted April 30, 2021 Can you add span tag & CSS above? We can check easier 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!)
Clodita Posted April 30, 2021 Author Posted April 30, 2021 This is my first site, I can add custom CSS, but unfortunately I don't know how to add span tag.
tuanphan Posted May 1, 2021 Posted May 1, 2021 16 hours ago, Clodita said: This is my first site, I can add custom CSS, but unfortunately I don't know how to add span tag. You do in screenshot. I mean keep it & don't delete, we can check why it doesn't work easier 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!)
Clodita Posted May 3, 2021 Author Posted May 3, 2021 ok, I kept it https://www.brigittematte.com/galerie
tuanphan Posted May 4, 2021 Posted May 4, 2021 22 hours ago, Clodita said: ok, I kept it https://www.brigittematte.com/galerie ah okay, edit title to this, then let me know. I will give new code Laurentides, St-Donat, Pimbina | Vendue 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!)
tuanphan Posted May 7, 2021 Posted May 7, 2021 On 5/6/2021 at 5:22 AM, Clodita said: Hi, Do you have a new code? LMK 🙂 thanks! Change | to #, and add this code to Code Injection Footer <script> window.Squarespace.onInitialize(Y, () => { var title = document.querySelectorAll('.portfolio-title'); for (var sf = 0; sf < title.length; ++sf) { var item = title[sf]; item.innerHTML = item.innerText.replace(/#/g, '<br>'); } }); </script> Code by Sf.digital. https://sf.digital/squarespace-solutions/how-can-i-add-line-breaks-to-gallery-grid-titles 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!)
Recommended Posts
Archived
This topic is now archived and is closed to further replies.