Jump to content

Collection ID's & Custom CSS When Transferring a Template

Go to solution Solved by JayVanDyke,

Recommended Posts

Hello, I'm creating a template that I'm going to be selling however as I'm testing it when I transfer it the custom css is lost for any #ids. I've used #collection and #block ids to tweak some elements (e.g the leaf graphics I've added a -10px margin). Is there anyway of transferring a duplicated site over and keeping the same collection IDs, or an alternative way of targeting id's that will transfer accross.

Site is: https://wild-wood.squarespace.com/

An example would be this strip should be flush with the top of the page and I've used CSS to do this https://wild-wood.squarespace.com/links . But in the copied site it's gone back to the middle as below:

Screenshot 2023-10-18 at 15.46.28.png

Edited by CharlotteWilderness
Updated
Link to comment
  • Replies 3
  • Views 1.4k
  • Created
  • Last Reply

Top Posters In This Topic

3 minutes ago, CharlotteWilderness said:

Hello, I'm creating a template that I'm going to be selling however as I'm testing it when I transfer it the custom css is lost for any #ids. I've used #collection and #block ids to tweak some elements (e.g the leaf graphics I've added a -10px margin). Is there anyway of transferring a duplicated site over and keeping the same collection IDs, or an alternative way of targeting id's that will transfer accross.

Site is: https://wild-wood.squarespace.com/

An example would be this strip should be flush with the top of the page and I've used CSS to do this https://wild-wood.squarespace.com/links . But in the copied site it's gone back to the middle as below:

Screenshot 2023-10-18 at 15.46.28.png

 

There is no option to keeping same ID. Those will be change. You need to put IDs manually for the new site on your CSS. 

If my comments are useful, please like and mark my solution as answer. It will encourage me. Thanks

MD Rofik
Website Designer and Digital Marketer

Am I helpful? Want to offer me a coffee?
Send me a message if needed any help. I'll try to reply as soon as possible.


 

Link to comment
  • Solution

@CharlotteWilderness you probably need to make your CSS more generic if its at all possible. For things like this I usually use classes from the color schemes, sometimes attribute selectors looking for specific section heights or widths or even nth-child type selectors. It might be worth purchasing someone else's template just to see how that all works!

  Did I help you? Buy me a coffee!

👨‍💻 Bergen Design Co.

💻  I'm for hire on Upwork!

🕸️ Squarespace Experts  

🖥️ 99Designs

Link to comment
  • 2 weeks later...

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.