Advertisement
DidouS

Beaver Builder ACF URL links.

Jan 19th, 2020
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Beaver Builder doesn't allow setting the target for a link through ACF. Add a class 'external' to the module to make all
  2. // links target to a new tab
  3.  
  4. (function($) {
  5.    
  6.     $(document).ready( function() {
  7.        $('.external').find( 'a' ).attr( 'target' , '_blank');
  8.     });
  9. })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement