Forum Replies Created
-
AuthorPosts
-
Scott
ParticipantThank you Geoff, it works perfectly! Excellent support!
Scott
ParticipantUnfortunately that breaks the site, not all the pages, but most. When I try and go to the events page it show nothing but a blank page. Weird. I can live with it but maybe this is an option you could build into the next version where you have the option to open the link in a new window. If you have time to think of another way to do it, great! But if it’s something to do with my theme, I understand.
Scott
Scott
ParticipantHi Cliff, I am still lost. I have this at the bottom of my functions.php file:
/* * The Events Calendar Open gCal Links in New Windows * @version 3.10 */ add_action( 'tribe_events_single_event_after_the_meta', 'tribe_open_gcal_new_tab' ); function tribe_open_gcal_new_tab() { echo '<script> /* Open gCal Links in New Windows */ jQuery("a.tribe-events-gcal") .addClass("external") .click( function() { window.open(this.href); return false; }); </script>'; } <?php /** * From https://gist.github.com/cliffordp/3584b8aee70cde484700 * * Open Event Website links in new window (not Organizer or Venue website links) * Filter is found in * /wp-content/plugins/the-events-calendar/src/functions/template-tags/link.php * and * /wp-content/plugins/events-calendar-pro/src/functions/template-tags/general.php */ add_filter( 'tribe_get_venue_website_link_target', 'cliff_open_event_venue_links_in_new_window' ); function cliff_open_event_venue_links_in_new_window() { return '_blank'; }And yet the only link that opens in a new window is the Details website. What am I missing?
Thank you,
Scott
For some reason when I posted this it changed the code but I have copied and made the changes as per this discussion. Example page: https://www.coconutgrovechamber.com/event/starlight-movie-classics-sunday-march-6/
Scott
ParticipantOn the link.php I was able to change
apply_filters( 'tribe_get_event_website_link_target', '_self' ),to
apply_filters( 'tribe_get_event_website_link_target', '_blank' ),and it worked perfectly. I tried the same thing with general.php but did not have the same effect for Organizer or Venue website links. How can we have those open in new windows as well?
Scott
ParticipantThanks Mathew! I really like your suggestion for obscuring email and will use that in the future since I have already gone through all the trouble of putting it all over the site.
Your CSS did not work but I added this and now everything works great:
.tribe-events-meta-group-organizer {width: 300px !important;}Thank you George, Mathew and MT for helping me look good!
Scott
Scott
ParticipantThanks again George,
That didn’t do it entirely, not sure if I followed the instructions correctly but I did figure out it is actually the organizer.php file that I had to modify. I don’t mind modifying theme files, I’ve done to for some time now. And it works! What I also discovered was I can add the right sidebar to event pages. This will make my client very happy. But in doing so is “scrunches” the email and website names. See: http://66.147.244.188/~coconva1/event/golden-coconut-awards-2016/
I tried using css to remove the 3rd column:
.tribe-events-meta-group-other {display: none !important;}
and/or
.tribe-events-meta-group.tribe-events-meta-group-other {display: none !important;}And it would be removed but not expand the previous two columns. So, how do I do that? So the Details and Organizer take up the whole width of the info box?
Thanks for all the help,
Scott
Scott
ParticipantThanks George, but I don’t need it to be clickable. I’m trying to cut down on spam. What I would really like to be able to do is enter this into the email address area:
<span class="code direction">MOC.LIAME@UOY</span>But when I do all I get is this: MOC.LIAME@UOY because the plugin strips away the span HTML. I use this code all over the site but I can’t seem to get it to work with your plugin.
How about this, has anyone had success using one of the obfuscating plugins? I would use one of those but I can’t seem to get them to work. I would like to use my method if I could. Or any suggestions you may have.
Thanks, Scott
Scott
ParticipantHello George,
I am speaking about the email for the Organizer. I used the link you provided the help obfuscate the emails (https://wordpress.org/plugins/tags/obfuscate). I tried PHPEnkoder and I believe Email Encoder Bundle. The latter I couldn’t figure out of if I was supposed to add code to the files. Seemed confusing to me.
Most, what I would like to do is to be able to add HTML to the Organizer’s email. I hope that makes sense.
Thanks,
Scott
Scott
ParticipantI just want to add that I did see the link to add plugins to obscure the email address but for whatever reason, I could not got the to work.
Thanks again,
Scott
-
AuthorPosts
