Jump to content

dafydd61

Member
  • Posts

    6
  • Joined

  • Last visited

dafydd61's Achievements

  1. Thank you @Lesum and @creedon for your responses. Yes, I foresee some trickiness with content updates, and would love to avoid that as much as possible. It sounds like I'm working with the best option that doesn't involve installing new stuff, so for the time being I'm going to go with what I have, but am very excited to learn about twcsl, and will likely set up your plugin, @creedon, in the not-too-distant future.
  2. Hey forum! My client has been asking for a lot of customization involving moving things around on the page, or adding new content. I've been able to resolve all their requests using code injection by creating new nodes or duplicating existing ones and attaching them to elements in the DOM. While it's working fine, I'm wondering if it's the best way to accomplish this in Squarespace 7.1. I can't share the site password on the forum, as my client doesn't want to have their work out in the wild quite yet, even in a closed circle like this, but I can share a representative example, with three edits that all use code injection/custom CSS. Category title moved from its usual location at the top of the content section to inside the products container New text added, based on the category title Custom "all" link, to a category called "all" - the actual "all" link is hidden using CSS Please excuse the messy JS - I want to make sure it's worth keeping before making it elegant. This is the code for 1 & 2: const artistDescriptions = { "judycade": "it’s all about the daydream", "kevinhearn": "a wild variety of characters from an imagined world", "hughmarsh": "i like noize, organized or otherwize", "kurtswinghammer": "This is Kurt's description.", "martintielli": "ROCK n’ ROLL AND Pen ‘n Ink" } const artistTitleText = document.querySelector('.nested-category-title').textContent.trim(); const artistDescriptionKey = artistTitleText.replace(' ', ''); const artistDescriptionText = artistDescriptions[artistDescriptionKey]; console.log(artistDescriptions); console.log(artistDescriptionText); const productsContainer = document.querySelector('.products-flex-container'); const artistHeader = document.createElement('div'); artistHeader.classList.add('artistHeader'); const artistTitle = document.createElement('h2'); artistTitle.textContent = artistTitleText; const artistDescription = document.createElement('p'); artistDescription.textContent = artistDescriptionText; artistTitle.classList.add('artist-title'); artistHeader.append(artistTitle); artistHeader.append(artistDescription); productsContainer.prepend(artistHeader); My questions: Is this the best way to pull this off? Is there a way to do this that makes it possible for the client to edit the content in 2? Thanks for any advice.
  3. I started with generated code from a gallery, then simplified it for easier styling. The gallery page is still there - I'd very much like to see the solution you're proposing, if you're willing to share.
  4. @tuanphan I got carried away and added some markup using code injection - is this what you had in mind? I'm hoping there's a way to import a gallery from the associative nav page automatically, so my client doesn't need to call me every time they add a new category.
  5. Thanks @tuanphan for your reply, and your offer to help. I've added a page titled Associative nav to my Not Linked section. I'm assuming you can access the site's settings - it's here: https://papaya-seahorse-4p9n.squarespace.com/?p Password is tilt
  6. Hi all - I'm relatively new to Squarespace and so worried I'm just asking my questions in the wrong way:) I'm helping a client explore the possibilities of using Squarespace for their site, and am having trouble figuring out how to add a piece of content to either all product pages, or a subset of product pages determined by category. I believe I'm working with Squarespace 7.1. The client would like to be able to automatically include an associative nav - links with thumbnail images to each category - below the main section of the product page (see attached, using the Montclaire teplate). I can create a gallery block that'll do what we need (unless anyone has a better suggestion, of course!), but the only way I can see to attach it to the product page is by adding a gallery block to the Additional Info section in Edit Product - as far as I understand, this needs to be done manually for each product. Furthermore, I can't see a way to get Additional Info to load up saved blocks, so the block needs to be recreated from scratch each time. Instead, I'd like to have the block pre-built into the page template. My questions: Is what I've summarized above true? Is there a way of accomplishing what I'm after? Will other themes offer this feature out-of-the-box, or are Squarespace themes limited to changes in typography, colour &c.? Thanks in advance for any advice.
×
×
  • 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.