tuanphan Posted October 28 Posted October 28 If code doesn't work, you can send event page url, I will check again. #A. Specific Events #1. First, you need to find Event URL You can hover on each event > Click 3 dots > Settings and see URL here. In my example, we will have: /events-1/event-one /events-1/event-two /events-1/event-six #2. Use this code to Code Injection > Footer to change these events to external url <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('article:has(a[href="/events-1/event-one"]) a').attr('href','https://squarespace.com'); $('article:has(a[href="/events-1/event-two"]) a').attr('href','https://instagram.com'); $('article:has(a[href="/events-1/event-six"]) a').attr('href','https://google.com'); }); </script> #B. All Events Ideas Add external link in Event Excerpt Use code to turn event url to this external link #1. You can add a hyperlink in Event Excerpt > enter your external link We will have #2. Use this code to Code Injection Footer (or Event Page Header Injection) <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script> <script> $(document).ready(function(){ $('article.eventlist-event').each(function() { var cr = $(this).find('.eventlist-excerpt a'); $(this).find('a').attr('href', cr.attr('href')); }); }); </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!)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment