Why this isn’t a squarespace feature already is beyond me. On my site, I have it parsing the DOM for tag- and category- classses then putting them on the page in front of the excerpt all linked up. This would include text blocks, images, blogs, and pages. I’m extremely rusty and hacked this together. After exporting product data, start exporting the content from your website. By the way, these text blocks are part of the image columns, and I just set 'margin-top: -35px' to eliminate the gap between the text and image blocks. You have to stuff this inside a DOMContentLoaded listener in the PAGE HEADER CODE INJECTION section for the main Product->Advanced section.Īnybody actually good at JS please feel free to correct me. As you can see in the below image, the text boxes arent the same height. There could be more than one especially with mobile-ready templates */Įxcerpt.innerHTML += "whatever you want" So here’s an example of two text blocks with custom (light gray via alpha) background. Note that if you put two Markdown blocks next to each other, Squarespace will automatically merge them for you into one Markdown block. Paste your Embedded Form Code which you copied from Salesforce and select Apply and then click SAVE on top left of block. * append to the element (it’s element zero here because there’s one and only one class. I have found that inserting a Markdown block allows you to insert divs with your own styling such as background colors. Var excerpt = document.getElementsB圜lassName('ProductItem-details-excerpt') ![]() Text Size - your options are S, M, L or custom of you click on the 3 dots. Text Style - you can select either Heading or Paragraph style. Moving the slider to the right will change the ‘wave’ of your text. I injected this code to get things working and need to revisit to clean but here’s the gist: Wave Intensity - the default is a straight line for the scrolling text block.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |