aksoma15 Posted May 22 Share Posted May 22 Hello I'm looking to change my homepage by utilizing the negative space by adding some text since I have an odd amount of projects. The link to my site has the current layout and I have attached a picture of a rough idea of what I am trying to accomplish instead. I am pretty sure would have to inject custom code so would appreciate some help on this as I am a novice when it comes to coding. Thanks! Link to comment
sorca_marian Posted May 22 Share Posted May 22 Hello, Can you add the link of your site so I can have a look at the current state? aksoma15 1 👨🔧👨💻 Squarespace plugins 🙋♂️ Squarespace Custom Web Development & Design 📅 Notion alternative 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
sorca_marian Posted May 25 Share Posted May 25 @aksoma15, something like this? If you want this look only on the homepage add the below code in Page settings -> Advanced > Code injection <style> .portfolio-text { opacity : 1!important; padding-top : 5px!important; position : static!important; } </style> If you want it on all such components through the site add the below code in Custom CSS .portfolio-text { opacity : 1!important; padding-top : 5px!important; position : static!important; } 👨🔧👨💻 Squarespace plugins 🙋♂️ Squarespace Custom Web Development & Design 📅 Notion alternative 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
aksoma15 Posted May 25 Author Share Posted May 25 @sorca_marian No I don't need the titles underneath the images of the portfolio. I want to add text to the negative space to the top left of the grid to create a perfect looking grid. Please see the screenshot mockup for reference. Thanks! Link to comment
sorca_marian Posted May 25 Share Posted May 25 You want the text to fill the entire space on mouse hover? If you add the text from the control panel it should behave like that 👨🔧👨💻 Squarespace plugins 🙋♂️ Squarespace Custom Web Development & Design 📅 Notion alternative 📹 Squarespace Tutorials for free - YouTube📹 💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years 🙋♂️ Let's connect on LinkedIn Link to comment
aksoma15 Posted May 26 Author Share Posted May 26 @sorca_marian I would like the text to fill the entire space but not appear only on mouse hover actually. I want the text to appear in the negative space of the top right of the grid when opening the site, same as my header text. the challenge reaaranging the grid to my specifications and adding the text to the negative space as specified in my screenshot. Link to comment
Solution tuanphan Posted May 27 Solution Share Posted May 27 You can use this code to Website > Website Tools > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.0/jquery.min.js"></script> <script> $(document).ready(function(){ $('<a class="grid-item grid-custom-text"><span>You know what? It is beets. I have crashed into a beet truck. Jaguar shark! So tell me - does it really exist?</span></a>').prependTo('div#gridThumbs'); }); </script> <style> a.grid-item.grid-custom-text { position: relative; } a.grid-item.grid-custom-text span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 100%; } </style> 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
aksoma15 Posted May 27 Author Share Posted May 27 @tuanphan thank you for your help we are starting to get on the right track. I am looking to make another page with the same portfolio layout but the code-injected text from this page is showing up there as well and I would like that page to behave independently. Any idea how to do this? site password: aksomaiah Link to comment
tuanphan Posted May 29 Share Posted May 29 On 5/28/2024 at 6:34 AM, aksoma15 said: @tuanphan thank you for your help we are starting to get on the right track. I am looking to make another page with the same portfolio layout but the code-injected text from this page is showing up there as well and I would like that page to behave independently. Any idea how to do this? site password: aksomaiah You can move code to Page Header Code Injection. 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