Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search


  • Content Count

  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi @bluebrindlemarketing! I'm happy to help. Here is new code you can use instead which will more similarly match your site's existing branding but retain the more actionable coloring of the new button's color. <div style="background:#ffffff;border-radius:0px 0px 0px 0px;font-family: futura-pt;letter-spacing: .1em;font-size: 15px;font-weight: 600;border:3px solid #ff5722;box-shadow:none;display: block;clear: both;line-height: 1;position:relative;cursor:pointer;text-align:center;color:#ff5722;padding: 21px 34px;text-decoration: none;z-index:1;" onclick="open_window('Nzg4ODA=','www.flipcause.com')">DONATE $30 GET AN AUTOGRAPHED COPY OF WORKIN’ OUR WAY HOME</div> It's also worth mentioning that simply changing this one line of code doesn't give you all the flexibility you were looking for. The button exists in a container limiting how wide the button can grow. The no-exit modal (pop-up) as well as the modal triggered by this button also bleed off the page and do not respond/resize well on mobile. I'd be happy to work through these with you if you're free. Feel free to message me directly and we can set up a screen sharing call and resolve these issues. Best regards, Brandon McConnell
  2. I am looking for a way to add user-friendly fields into some global location on the site's backend dashboard, and the ability to (1) reference that field data in pages, similar to how WordPress uses shortcodes (e.g. [admins-favorite-color]), and (2) be able to pull from and even loop through that data whether in my injected JavaScript code or in the template files via FTP. Normally, something like this would be possible on the server-side using a language like PHP or Node.js. Quick backstory/context— this is a feature I use frequently in my non-Squarespace programming, whether it be gas prices for a gas station website that a manager edits as the prices fluctuate or for church service times that the pastor can adjust as they change. In both example cases, my JavaScript reads the fields and their values and then executes code conditionally based on user input. Fields can be of different types, such as select, textarea, single-line input, checkboxes, radio buttons, sections, tabs, buttons, etc. The WordPress equivalent of this is the highly popular 3rd-party plugin, Advanced Custom Fields which offers free and "Pro" feature/pricing tiers. If this isn't currently possible out-of-the-box, I imagine a feature like this would be highly desired and would open the door to plenty of custom development that doesn't appear to be possible with Squarespace at the moment. In the meantime, what would be alternatives be to implement something like this? Would I have to build my own API/plugin hosted somewhere else along with a separate CMS for user's to edit the field values and then pull those scripts and that data via some AJAX call in JavaScript? I'm hoping there's a simpler—more native—solution, as the alternative seems awfully overkill. Thanks!
  • Create New...