MissMackay Posted March 17, 2022 Share Posted March 17, 2022 Site URL: https://uvehub.com/training-and-consulting/courses/foundations-03-2022 Want a new tab to open when user clicks on the Google Calendar or ICS links for an event. Is this possible? Link to comment
tuanphan Posted March 19, 2022 Share Posted March 19, 2022 On 3/17/2022 at 11:57 PM, MissMackay said: Site URL: https://uvehub.com/training-and-consulting/courses/foundations-03-2022 Want a new tab to open when user clicks on the Google Calendar or ICS links for an event. Is this possible? Add to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('li.eventitem-meta-item.eventitem-meta-export.event-meta-item a').attr('target','_blank'); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nikitaly Posted August 6, 2022 Share Posted August 6, 2022 That's great. How do you do the same for ical? thanks Link to comment
tuanphan Posted August 10, 2022 Share Posted August 10, 2022 On 8/6/2022 at 2:03 PM, Nikitaly said: That's great. How do you do the same for ical? thanks Use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('ul.eventitem-meta.event-meta.event-meta-addtocalendar-container a').attr('target','_blank'); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nikitaly Posted August 12, 2022 Share Posted August 12, 2022 Thanks Tuanphan but although this opens Outlook correctly it still leaves me on a blank page in the browser instead of the event detail page. Any ideas much appreciated. Niki Link to comment
Nikitaly Posted August 29, 2022 Share Posted August 29, 2022 Hello again, The scripts above have stopped working. Have tried to pin them down without success so far. Can anyone help? thanks Link to comment
tuanphan Posted August 29, 2022 Share Posted August 29, 2022 5 hours ago, Nikitaly said: Hello again, The scripts above have stopped working. Have tried to pin them down without success so far. Can anyone help? thanks What is your site url? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nikitaly Posted August 30, 2022 Share Posted August 30, 2022 Sorry: https://rebelrebel.squarespace.com/testpage?p thanks for taking a look. Link to comment
tuanphan Posted August 31, 2022 Share Posted August 31, 2022 22 hours ago, Nikitaly said: Sorry: https://rebelrebel.squarespace.com/testpage?p thanks for taking a look. Thank you. I don't see google calendar on event page https://rebelrebel.squarespace.com/events Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nikitaly Posted August 31, 2022 Share Posted August 31, 2022 On 3/19/2022 at 8:47 AM, tuanphan said: Add to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> <script> $(document).ready(function() { $('li.eventitem-meta-item.eventitem-meta-export.event-meta-item a').attr('target','_blank'); }); </script> Hi, there's no calendar, just the links to add to google calendar or ics link thanks again for looking Link to comment
tuanphan Posted September 3, 2022 Share Posted September 3, 2022 On 8/31/2022 at 4:54 PM, Nikitaly said: Hi, there's no calendar, just the links to add to google calendar or ics link thanks again for looking Can you share link to page where I can find gg/ic link? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nikitaly Posted September 15, 2022 Share Posted September 15, 2022 Sorry again. Been away awhile. Scheduling isn't active now on the test site but here's a sample page: https://walrus-springtail-ljhd.squarespace.com/workshop-events/novemberworkshop?p pw: 1mageproblem. Link to comment
Nikitaly Posted September 15, 2022 Share Posted September 15, 2022 ...pw without the fullstop at the end Link to comment
tuanphan Posted September 18, 2022 Share Posted September 18, 2022 On 9/15/2022 at 4:18 PM, Nikitaly said: Sorry again. Been away awhile. Scheduling isn't active now on the test site but here's a sample page: https://walrus-springtail-ljhd.squarespace.com/workshop-events/novemberworkshop?p pw: 1mageproblem. Add this to Last Line in Code Injection > Footer <script> $(document).ready(function() { $('ul.event-meta-addtocalendar-container a').attr('target','_blank'); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Nikitaly Posted September 22, 2022 Share Posted September 22, 2022 Hi Tuanphan, Thanks for the above but my problem is that this leaves a completely blank page instead of remaining on the same page where the user clicked the export link. I don't know how to do that. Your help as always much appreciated. thanks Link to comment
mdesa12 Posted June 23, 2023 Share Posted June 23, 2023 Was there ever a solution found for this, maybe on another forum post? I'm dealing with the same blank page issue and struggling to get a new tab open at all. Link to comment
tuanphan Posted June 25, 2023 Share Posted June 25, 2023 On 6/23/2023 at 10:42 AM, mdesa12 said: Was there ever a solution found for this, maybe on another forum post? I'm dealing with the same blank page issue and struggling to get a new tab open at all. Have you tried above code yet? If it doesn't work, can you share link to event? Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
mdesa12 Posted June 25, 2023 Share Posted June 25, 2023 yeah, i gave that a shot -- https://www.mitchellsinmanhattan.com/save-the-date thank you! Link to comment
tuanphan Posted June 26, 2023 Share Posted June 26, 2023 7 hours ago, mdesa12 said: yeah, i gave that a shot -- https://www.mitchellsinmanhattan.com/save-the-date thank you! Add this to Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script> $(document).ready(function() { $('a.eventlist-meta-export-ical').attr('target','_blank'); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
mdesa12 Posted June 26, 2023 Share Posted June 26, 2023 Still just loads in the same tab :( Link to comment
tuanphan Posted June 26, 2023 Share Posted June 26, 2023 9 hours ago, mdesa12 said: Still just loads in the same tab :( It worked to me. You try checking it again Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
tuanphan Posted June 26, 2023 Share Posted June 26, 2023 1 hour ago, mdesa12 said: for the google calendar? That code for ICS, if you need both, use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script> $(document).ready(function() { $('li.eventlist-meta-item.eventlist-meta-export.event-meta-item a').attr('target','_blank'); }); </script> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
mdesa12 Posted June 26, 2023 Share Posted June 26, 2023 13 minutes ago, tuanphan said: That code for ICS, if you need both, use this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.3/jquery.min.js"></script> <script> $(document).ready(function() { $('li.eventlist-meta-item.eventlist-meta-export.event-meta-item a').attr('target','_blank'); }); </script> ahh, there we go. thanks a ton!! Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment