Jump to content

George

Member
  • Posts

    9
  • Joined

  • Last visited

Everything posted by George

  1. Ok I solved this issue with limited drawbacks, so let me share the code I'm using for anyone looking for the same thing: <!-- Replace event title and image links with link in excerpt --> <script> $(".summary-title").click(function() { window.open($(this).siblings(".summary-excerpt").find('p a').attr('href'), '_blank'); return false; }); $('.summary-thumbnail-outer-container').click(function() { window.open($(this).siblings(".summary-content").find('.summary-excerpt p a').attr('href'), '_blank'); return false; }); </script> I added it to the footer of my site. Its purpose is to update the URL of the links for events displayed via the "Summary Grid" element. It's not meant to (and it doesn't) update the URL for the default event page. Here are the drawbacks on my end: The script pulls the URL not from the "Source URL" (it can't), but from a link you must have previously placed in the excerpt. Simply add a link in the excerpt with the destination URL you want, and the script will pick it up. You can then hide the link in the excerpt via CSS if you wish. My CSS is the following: .summary-item.summary-item-record-type-event .summary-excerpt.summary-excerpt-only a { display: none; } When the user hover over the event image or title, the URL preview in the browser shows the non-modified URL. However when the user clicks, they go directly to the URL from the excerpt link. Not an ideal user experience. Feel free to try it on your site, it will work as long as you have the same HTML structure as me, otherwise you will have to modify the class names in the script (and the CSS) according to your context. Best of luck
  2. Thank you @gibgib -- yes that's a way to work around Squarespace limitations and get a "meh okay" result. However it's a good move forward, because by adding the custom link into the excerpt, it should now be possible to use Javascript to take it and inject it in the event summary title and image, I presume? I don't know how to do that myself, but I'd be curious to hear from someone who knows JS well whether that's possible. Based on my understanding of JS, it should be as JS can modify the DOM, but I'm not 100% sure.
  3. @tuanphan Because I don't want my users to have to create a button, I'd rather them just having to enter the URL in the "Source URL" field. Less options, less room for error.
  4. Hi @tuanphan. Sorry to ask you this, but would you mind making that code for my page here https://www.holacracy.org/events/practitioner-training-test (pw: events) ? I tried using the scripts above, and changing the css class selectors to match my context (I want to place the Source URL underneath the content in the left sidebar - I will style with as a button later with CSS), but it didn't work and I'm not sure why... Thank you if you're willing
  5. And if it's not technically possible, I'd love to know that too (and why) so I can look elsewhere...
  6. @paul2009 Right now it's not live; i.e. "disabled", as I prefer to avoid search engines to index it or anyone to see it publicly. But there is no customization to it, I'm trying the feature; if you create an Events Page on your Squarespace site, it will be the same as what I have, with the dummy events, aside from some css differences. Only material difference is that I added an event for testing purposes, you can see it at the top. Let me know what you need to see if that's not enough Currently, the best option the previous webmaster has found is to create everything manually with blocks, add an image, a description, and the link to the event platform. Then remember to go delete them once the event is over. Needless to say, it's a little sad to manage it that way in 2022 😉 error prone, time consuming, and not scalable.
  7. Thank you for responding @paul2009. Sorry if I didn't explain myself clearly. No I am not trying to pull a list of events from a different platform. I am trying to use the Squarespace Events page so that various colleagues of mine can go and add new events to the list. Each event will have a URL that directs to the event platform where customers can register. The platform will vary depending on the events, so I can't use a simple integration e.g. Eventbrite's. So far so good, we can already do that. However, as of now, every new event added to the list needs to 1) first be opened by the visitor, which opens the event page on my (squarespace) website. 2) Then and only then can they find the link to the event platform to register. That's an extra step that causes several problems: Bad UX for visitors: they have to visit 2 pages instead of 1, to see duplicate content It's a lot of unnecessary work for my colleagues to duplicate the event description Instead, what I'm looking for is that each event in the list would link directly to the URL that my colleague entered as the "Source URL". There would be no "single event page" on my website, just the list. Does it make sense?
  8. 2+ year later, is there any solution to this problem? I'm trying to do the same thing. I need to publish a list of events, but I have no need for the single event page, I just need to link to the event platform where customers can register. I don't want to duplicate the content on my website, nor do I want to require my visitors to load one more page to finally access the page where they sign up.
×
×
  • 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.